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