Package com.teamdev.jxbrowser.browser
Class CloseOptions.Builder
java.lang.Object
com.teamdev.jxbrowser.browser.CloseOptions.Builder
- Enclosing interface:
- CloseOptions
A builder of
CloseOptions.
Builders are created by invoking CloseOptions.newBuilder(). Each of the setter methods
modifies the state of the builder and returns the same instance. Builders are not thread-safe
and should not be used concurrently from multiple threads without external synchronization.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newCloseOptionsinstance built from the current state of this builder.Specifies whether thebeforeunloadandunloadJavaScript events should be fired if they were registered when closing a browser instance.
-
Method Details
-
fireBeforeUnload
Specifies whether thebeforeunloadandunloadJavaScript events should be fired if they were registered when closing a browser instance.- Returns:
- this builder
-
build
Returns a newCloseOptionsinstance built from the current state of this builder.- Returns:
- a new
CloseOptionsinstance
-