|
|
|
@ -182,8 +182,7 @@ public class NewModernUIPane<T> extends ModernUIPane<T> {
|
|
|
|
|
public void disposeBrowser() { |
|
|
|
|
|
|
|
|
|
if (browser != null) { |
|
|
|
|
browser.close(); |
|
|
|
|
browser = null; |
|
|
|
|
browser.engine().close(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -204,7 +203,13 @@ public class NewModernUIPane<T> extends ModernUIPane<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) { |
|
|
|
|
pane.browser.set(InjectJsCallback.class, callback); |
|
|
|
|