|
|
@ -182,7 +182,8 @@ public class NewModernUIPane<T> extends ModernUIPane<T> { |
|
|
|
public void disposeBrowser() { |
|
|
|
public void disposeBrowser() { |
|
|
|
|
|
|
|
|
|
|
|
if (browser != null) { |
|
|
|
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> { |
|
|
|
public static class Builder<T> extends ModernUIPane.Builder<T> { |
|
|
|
|
|
|
|
|
|
|
|
private NewModernUIPane<T> pane; |
|
|
|
private NewModernUIPane<T> pane = new NewModernUIPane<>(); |
|
|
|
|
|
|
|
|
|
|
|
@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); |
|
|
|