|
|
|
@ -11,20 +11,45 @@ import com.teamdev.jxbrowser.event.Observer;
|
|
|
|
|
* 封装jxbrwoser v6/v7的构建方式的差异 |
|
|
|
|
* |
|
|
|
|
* @author hades |
|
|
|
|
* @version 10.0 |
|
|
|
|
* Created by hades on 2021/6/13 |
|
|
|
|
* @see {@link JxUIPane} |
|
|
|
|
* @since 10.0 |
|
|
|
|
* Created on 2021/6/13 |
|
|
|
|
* @deprecated 6在下个版本弃用 |
|
|
|
|
*/ |
|
|
|
|
@Deprecated |
|
|
|
|
public interface BuilderDiff<T> { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* v6准备工作 |
|
|
|
|
* |
|
|
|
|
* @param contextListener 上下文监听器 |
|
|
|
|
* @return 构造器 |
|
|
|
|
*/ |
|
|
|
|
ModernUIPane.Builder<T> prepareForV6(ScriptContextListener contextListener); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* v6准备工作 |
|
|
|
|
* |
|
|
|
|
* @param loadListener 加载监听器 |
|
|
|
|
* @return 构造器 |
|
|
|
|
*/ |
|
|
|
|
ModernUIPane.Builder<T> prepareForV6(LoadListener loadListener); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* v7准备工作 |
|
|
|
|
* |
|
|
|
|
* @param callback 注入js回调器 |
|
|
|
|
* @return 构造器 |
|
|
|
|
*/ |
|
|
|
|
ModernUIPane.Builder<T> prepareForV7(InjectJsCallback callback); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* v7准备工作 |
|
|
|
|
* |
|
|
|
|
* @param event 事件 |
|
|
|
|
* @param listener 监听器 |
|
|
|
|
* @return 构造器 |
|
|
|
|
*/ |
|
|
|
|
ModernUIPane.Builder<T> prepareForV7(Class event, Observer listener); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|