Spec-Zone .ru
спецификации, руководства, описания, API
|
public final class WebViewBuilder extends ParentBuilder<WebViewBuilder> implements Builder<WebView>
WebView
class.Constructor and Description |
---|
WebViewBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(WebView view)
Applies initialized values to the properties of the
WebView class. |
WebView |
build()
Creates an instance of the
WebView class
based on the properties set on this builder. |
WebViewBuilder |
confirmHandler(Callback<java.lang.String,java.lang.Boolean> value)
Sets the
confirmHandler
property for the engine
property of the instance constructed by this builder. |
static WebViewBuilder |
create()
Creates new builder for the
WebView class. |
WebViewBuilder |
createPopupHandler(Callback<PopupFeatures,WebEngine> value)
Sets the
createPopupHandler
property for the engine
property of the instance constructed by this builder. |
WebViewBuilder |
fontScale(double value)
Sets the
fontScale
property for the instance constructed by this builder. |
WebViewBuilder |
location(java.lang.String value)
|
WebViewBuilder |
maxHeight(double value)
Sets the
maxHeight
property for the instance constructed by this builder. |
WebViewBuilder |
maxWidth(double value)
Sets the
maxWidth
property for the instance constructed by this builder. |
WebViewBuilder |
minHeight(double value)
Sets the
minHeight
property for the instance constructed by this builder. |
WebViewBuilder |
minWidth(double value)
Sets the
minWidth
property for the instance constructed by this builder. |
WebViewBuilder |
onAlert(EventHandler<WebEvent<java.lang.String>> value)
|
WebViewBuilder |
onResized(EventHandler<WebEvent<Rectangle2D>> value)
|
WebViewBuilder |
onStatusChanged(EventHandler<WebEvent<java.lang.String>> value)
Sets the
onStatusChanged
property for the engine
property of the instance constructed by this builder. |
WebViewBuilder |
onVisibilityChanged(EventHandler<WebEvent<java.lang.Boolean>> value)
Sets the
onVisibilityChanged
property for the engine
property of the instance constructed by this builder. |
WebViewBuilder |
prefHeight(double value)
Sets the
prefHeight
property for the instance constructed by this builder. |
WebViewBuilder |
prefWidth(double value)
Sets the
prefWidth
property for the instance constructed by this builder. |
WebViewBuilder |
promptHandler(Callback<PromptData,java.lang.String> value)
Sets the
promptHandler
property for the engine
property of the instance constructed by this builder. |
applyTo, stylesheets, stylesheets
applyTo, blendMode, cache, cacheHint, clip, cursor, depthTest, disable, effect, eventDispatcher, focusTraversable, id, inputMethodRequests, layoutX, layoutY, managed, mouseTransparent, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScroll, onScrollFinished, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoom, onZoomFinished, onZoomStarted, opacity, pickOnBounds, rotate, rotationAxis, scaleX, scaleY, scaleZ, style, styleClass, styleClass, transforms, transforms, translateX, translateY, translateZ, userData, visible
public static WebViewBuilder create()
WebView
class.WebViewBuilder
objectpublic WebView build()
WebView
class
based on the properties set on this builder.public void applyTo(WebView view)
WebView
class.view
- the WebView
object to initializepublic WebViewBuilder fontScale(double value)
fontScale
property for the instance constructed by this builder.value
- new value of the fontScale
propertypublic WebViewBuilder maxHeight(double value)
maxHeight
property for the instance constructed by this builder.value
- new value of the maxHeight
propertypublic WebViewBuilder maxWidth(double value)
maxWidth
property for the instance constructed by this builder.value
- new value of the maxWidth
propertypublic WebViewBuilder minHeight(double value)
minHeight
property for the instance constructed by this builder.value
- new value of the minHeight
propertypublic WebViewBuilder minWidth(double value)
minWidth
property for the instance constructed by this builder.value
- new value of the minWidth
propertypublic WebViewBuilder prefHeight(double value)
prefHeight
property for the instance constructed by this builder.value
- new value of the prefHeight
propertypublic WebViewBuilder prefWidth(double value)
prefWidth
property for the instance constructed by this builder.value
- new value of the prefWidth
propertypublic WebViewBuilder confirmHandler(Callback<java.lang.String,java.lang.Boolean> value)
confirmHandler
property for the engine
property of the instance constructed by this builder.value
- new value of the confirmHandler
propertypublic WebViewBuilder createPopupHandler(Callback<PopupFeatures,WebEngine> value)
createPopupHandler
property for the engine
property of the instance constructed by this builder.value
- new value of the createPopupHandler
propertypublic WebViewBuilder onAlert(EventHandler<WebEvent<java.lang.String>> value)
value
- new value of the onAlert
propertypublic WebViewBuilder onResized(EventHandler<WebEvent<Rectangle2D>> value)
value
- new value of the onResized
propertypublic WebViewBuilder onStatusChanged(EventHandler<WebEvent<java.lang.String>> value)
onStatusChanged
property for the engine
property of the instance constructed by this builder.value
- new value of the onStatusChanged
propertypublic WebViewBuilder onVisibilityChanged(EventHandler<WebEvent<java.lang.Boolean>> value)
onVisibilityChanged
property for the engine
property of the instance constructed by this builder.value
- new value of the onVisibilityChanged
propertypublic WebViewBuilder promptHandler(Callback<PromptData,java.lang.String> value)
promptHandler
property for the engine
property of the instance constructed by this builder.value
- new value of the promptHandler
propertypublic WebViewBuilder location(java.lang.String value)
value
- new value of the location
propertyCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to