|
|
@ -182,8 +182,7 @@ public class NewModernUIPane<T> extends ModernUIPane<T> { |
|
|
|
public void disposeBrowser() { |
|
|
|
public void disposeBrowser() { |
|
|
|
|
|
|
|
|
|
|
|
if (browser != null) { |
|
|
|
if (browser != null) { |
|
|
|
browser.close(); |
|
|
|
browser.engine().close(); |
|
|
|
browser = null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -204,7 +203,13 @@ public class NewModernUIPane<T> extends ModernUIPane<T> { |
|
|
|
|
|
|
|
|
|
|
|
public static class Builder<T> extends ModernUIPane.Builder<T> { |
|
|
|
public static class Builder<T> extends ModernUIPane.Builder<T> { |
|
|
|
|
|
|
|
|
|
|
|
private NewModernUIPane<T> pane = new NewModernUIPane<>(); |
|
|
|
private NewModernUIPane<T> pane; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public ModernUIPane.Builder<T> init() { |
|
|
|
|
|
|
|
this.pane = new NewModernUIPane<>(); |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public NewModernUIPane.Builder<T> prepare(InjectJsCallback callback) { |
|
|
|
public NewModernUIPane.Builder<T> prepare(InjectJsCallback callback) { |
|
|
|
pane.browser.set(InjectJsCallback.class, callback); |
|
|
|
pane.browser.set(InjectJsCallback.class, callback); |
|
|
|