Top Description Fields Constructors Methods
com.sun.javafx.fxml.builder.web

public final Class WebViewBuilder

extends ParentBuilder<WebViewBuilder>
implements Builder<WebView>
Class Inheritance
All Implemented Interfaces
javafx.util.Builder
Annotations
@Deprecated
Imports
javafx.util.Builder, .Callback, javafx.event.EventHandler, javafx.geometry.Rectangle2D, javafx.scene.web.PopupFeatures, .PromptData, .WebEngine, .WebEvent, .WebView

Deprecated

This class is deprecated and will be removed in the next version

The builder for the WebView class.
Author
Sergey Malenkov
Since
JavaFX 2.0

Field Summary

Modifier and TypeField and Description
private WebEngineBuilder
engineBuilder

References Deprecated WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.
private double
private boolean
private double
private boolean
private double
private boolean
private double
private boolean
private double
private boolean
private double
private boolean
private double
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
applyTo(WebView
the WebView object to initialize
view
)

Applies initialized values to the properties of the WebView class.

public WebView
build()

Implements javafx.util.Builder.build.

Creates an instance of the WebView class based on the properties set on this builder.

public WebViewBuilder

Returns:

this builder
confirmHandler
(Callback<String, Boolean>
new value of the confirmHandler property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the confirmHandler property for the engine property of the instance constructed by this builder.

public static WebViewBuilder

Returns:

the WebViewBuilder object
create
()
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Creates new builder for the WebView class.

public WebViewBuilder

Returns:

this builder
createPopupHandler
(Callback<PopupFeatures, WebEngine>
new value of the createPopupHandler property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the createPopupHandler property for the engine property of the instance constructed by this builder.

private WebEngineBuilder
engineBuilder()
References Deprecated WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

public WebViewBuilder

Returns:

this builder
fontScale
(double
new value of the fontScale property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the fontScale property for the instance constructed by this builder.

public WebViewBuilder

Returns:

this builder
location
(String
new value of the location property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the location property for the engine property of the instance constructed by this builder.

public WebViewBuilder

Returns:

this builder
maxHeight
(double
new value of the maxHeight property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the maxHeight property for the instance constructed by this builder.

public WebViewBuilder

Returns:

this builder
maxWidth
(double
new value of the maxWidth property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the maxWidth property for the instance constructed by this builder.

public WebViewBuilder

Returns:

this builder
minHeight
(double
new value of the minHeight property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the minHeight property for the instance constructed by this builder.

public WebViewBuilder

Returns:

this builder
minWidth
(double
new value of the minWidth property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the minWidth property for the instance constructed by this builder.

public WebViewBuilder

Returns:

this builder
onAlert
(EventHandler<WebEvent<String>>
new value of the onAlert property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the onAlert property for the engine property of the instance constructed by this builder.

public WebViewBuilder

Returns:

this builder
onResized
(EventHandler<WebEvent<Rectangle2D>>
new value of the onResized property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the onResized property for the engine property of the instance constructed by this builder.

public WebViewBuilder

Returns:

this builder
onStatusChanged
(EventHandler<WebEvent<String>>
new value of the onStatusChanged property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the onStatusChanged property for the engine property of the instance constructed by this builder.

public WebViewBuilder

Returns:

this builder
onVisibilityChanged
(EventHandler<WebEvent<Boolean>>
new value of the onVisibilityChanged property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the onVisibilityChanged property for the engine property of the instance constructed by this builder.

public WebViewBuilder

Returns:

this builder
prefHeight
(double
new value of the prefHeight property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the prefHeight property for the instance constructed by this builder.

public WebViewBuilder

Returns:

this builder
prefWidth
(double
new value of the prefWidth property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the prefWidth property for the instance constructed by this builder.

public WebViewBuilder

Returns:

this builder
promptHandler
(Callback<PromptData, String>
new value of the promptHandler property
value
)
References Deprecated WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the promptHandler property for the engine property of the instance constructed by this builder.

Inherited from com.sun.javafx.fxml.builder.web.ParentBuilder:
applyTostylesheetsstylesheets

Field Detail

engineBuilderback to summary
private WebEngineBuilder engineBuilder

References Deprecated

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

fontScaleback to summary
private double fontScale
fontScaleSetback to summary
private boolean fontScaleSet
maxHeightback to summary
private double maxHeight
maxHeightSetback to summary
private boolean maxHeightSet
maxWidthback to summary
private double maxWidth
maxWidthSetback to summary
private boolean maxWidthSet
minHeightback to summary
private double minHeight
minHeightSetback to summary
private boolean minHeightSet
minWidthback to summary
private double minWidth
minWidthSetback to summary
private boolean minWidthSet
prefHeightback to summary
private double prefHeight
prefHeightSetback to summary
private boolean prefHeightSet
prefWidthback to summary
private double prefWidth
prefWidthSetback to summary
private boolean prefWidthSet

Constructor Detail

WebViewBuilderback to summary
public WebViewBuilder()

Method Detail

applyToback to summary
public void applyTo(WebView view)

Applies initialized values to the properties of the WebView class.

Parameters
view:WebView

the WebView object to initialize

buildback to summary
public WebView build()

Implements javafx.util.Builder.build.

Creates an instance of the WebView class based on the properties set on this builder.

Returns:WebView

Doc from javafx.util.Builder.build.

the object

Annotations
@Override
confirmHandlerback to summary
public WebViewBuilder confirmHandler(Callback<String, Boolean> value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the confirmHandler property for the engine property of the instance constructed by this builder.

Parameters
value:Callback<String, Boolean>

new value of the confirmHandler property

Returns:WebViewBuilder

this builder

Since
JavaFX 2.1
createback to summary
public static WebViewBuilder create()

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Creates new builder for the WebView class.

Returns:WebViewBuilder

the WebViewBuilder object

createPopupHandlerback to summary
public WebViewBuilder createPopupHandler(Callback<PopupFeatures, WebEngine> value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the createPopupHandler property for the engine property of the instance constructed by this builder.

Parameters
value:Callback<PopupFeatures, WebEngine>

new value of the createPopupHandler property

Returns:WebViewBuilder

this builder

Since
JavaFX 2.1
engineBuilderback to summary
private WebEngineBuilder engineBuilder()

References Deprecated

WebEngineBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

fontScaleback to summary
public WebViewBuilder fontScale(double value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the fontScale property for the instance constructed by this builder.

Parameters
value:double

new value of the fontScale property

Returns:WebViewBuilder

this builder

locationback to summary
public WebViewBuilder location(String value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the location property for the engine property of the instance constructed by this builder.

Parameters
value:String

new value of the location property

Returns:WebViewBuilder

this builder

Since
JavaFX 2.1
maxHeightback to summary
public WebViewBuilder maxHeight(double value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the maxHeight property for the instance constructed by this builder.

Parameters
value:double

new value of the maxHeight property

Returns:WebViewBuilder

this builder

maxWidthback to summary
public WebViewBuilder maxWidth(double value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the maxWidth property for the instance constructed by this builder.

Parameters
value:double

new value of the maxWidth property

Returns:WebViewBuilder

this builder

minHeightback to summary
public WebViewBuilder minHeight(double value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the minHeight property for the instance constructed by this builder.

Parameters
value:double

new value of the minHeight property

Returns:WebViewBuilder

this builder

minWidthback to summary
public WebViewBuilder minWidth(double value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the minWidth property for the instance constructed by this builder.

Parameters
value:double

new value of the minWidth property

Returns:WebViewBuilder

this builder

onAlertback to summary
public WebViewBuilder onAlert(EventHandler<WebEvent<String>> value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the onAlert property for the engine property of the instance constructed by this builder.

Parameters
value:EventHandler<WebEvent<String>>

new value of the onAlert property

Returns:WebViewBuilder

this builder

Since
JavaFX 2.1
onResizedback to summary
public WebViewBuilder onResized(EventHandler<WebEvent<Rectangle2D>> value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the onResized property for the engine property of the instance constructed by this builder.

Parameters
value:EventHandler<WebEvent<Rectangle2D>>

new value of the onResized property

Returns:WebViewBuilder

this builder

Since
JavaFX 2.1
onStatusChangedback to summary
public WebViewBuilder onStatusChanged(EventHandler<WebEvent<String>> value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the onStatusChanged property for the engine property of the instance constructed by this builder.

Parameters
value:EventHandler<WebEvent<String>>

new value of the onStatusChanged property

Returns:WebViewBuilder

this builder

Since
JavaFX 2.1
onVisibilityChangedback to summary
public WebViewBuilder onVisibilityChanged(EventHandler<WebEvent<Boolean>> value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the onVisibilityChanged property for the engine property of the instance constructed by this builder.

Parameters
value:EventHandler<WebEvent<Boolean>>

new value of the onVisibilityChanged property

Returns:WebViewBuilder

this builder

Since
JavaFX 2.1
prefHeightback to summary
public WebViewBuilder prefHeight(double value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the prefHeight property for the instance constructed by this builder.

Parameters
value:double

new value of the prefHeight property

Returns:WebViewBuilder

this builder

prefWidthback to summary
public WebViewBuilder prefWidth(double value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the prefWidth property for the instance constructed by this builder.

Parameters
value:double

new value of the prefWidth property

Returns:WebViewBuilder

this builder

promptHandlerback to summary
public WebViewBuilder promptHandler(Callback<PromptData, String> value)

References Deprecated

WebViewBuilder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Sets the promptHandler property for the engine property of the instance constructed by this builder.

Parameters
value:Callback<PromptData, String>

new value of the promptHandler property

Returns:WebViewBuilder

this builder

Since
JavaFX 2.1