Package javafx.scene.web
Class WebView
java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.web.WebView
- All Implemented Interfaces:
LayoutMeasurable,LayoutMeasurableMixin,HasBlendModeProperty,HasClipProperty,HasEffectProperty,HasLayoutXProperty,HasLayoutYProperty,HasManagedProperty,HasMouseTransparentProperty,HasOnMouseClickedProperty,HasOpacityProperty,HasParentProperty,HasVisibleProperty,Styleable,EventTarget,INode
- Author:
- Bruno Salmon
-
Property Summary
PropertiesTypePropertyDescriptionHeight of thisWebView.Maximum height property.Maximum width property.Minimum height property.Minimum width property.final ObjectProperty<Color>Preferred height property.Preferred width property.Width of thisWebView.Properties inherited from class javafx.scene.Parent
needsLayoutProperties inherited from class javafx.scene.Node
blendMode, cacheHint, cache, clip, cursor, disabled, disable, effect, eventDispatcher, focused, focusTraversable, hover, id, layoutBounds, layoutX, layoutY, managed, mouseTransparent, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onScroll, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, opacity, parent, pressed, rotate, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, visible -
Field Summary
Fields inherited from interface javafx.scene.INode
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal doubleGets the value of theheightproperty.Gets the value of theloadContentproperty.final doubleGets the value of themaxHeightproperty.final doubleGets the value of themaxWidthproperty.final doubleGets the value of theminHeightproperty.final doubleGets the value of theminWidthproperty.final ColorGets the value of thepageFillproperty.final doubleGets the value of theprefHeightproperty.final doubleGets the value of theprefWidthproperty.getUrl()Gets the value of theurlproperty.final doublegetWidth()Gets the value of thewidthproperty.Height of thisWebView.impl_computeGeomBounds(BaseBounds bounds, BaseTransform tx) This set is used to track all of the children of this group which are dirty.booleanfinal doublemaxHeight(double width) Called during layout to determine the maximum height for this node.Maximum height property.final doublemaxWidth(double height) Called during layout to determine the maximum width for this node.Maximum width property.final doubleminHeight(double width) Called during layout to determine the minimum height for this node.Minimum height property.final doubleminWidth(double height) Called during layout to determine the minimum width for this node.Minimum width property.final ObjectProperty<Color>final doubleprefHeight(double width) Called during layout to determine the preferred height for this node.Preferred height property.final doubleprefWidth(double height) Called during layout to determine the preferred width for this node.Preferred width property.voidresize(double width, double height) voidsetLoadContent(String loadContent) Sets the value of theloadContentproperty.final voidsetMaxHeight(double value) Sets the value of themaxHeightproperty.voidsetMaxSize(double maxWidth, double maxHeight) Convenience method for setting maximum width and height.final voidsetMaxWidth(double value) Sets the value of themaxWidthproperty.final voidsetMinHeight(double value) Sets the value of theminHeightproperty.voidsetMinSize(double minWidth, double minHeight) Convenience method for setting minimum width and height.final voidsetMinWidth(double value) Sets the value of theminWidthproperty.final voidsetPageFill(Color value) Sets the value of thepageFillproperty.final voidsetPrefHeight(double value) Sets the value of theprefHeightproperty.voidsetPrefSize(double prefWidth, double prefHeight) Convenience method for setting preferred width and height.final voidsetPrefWidth(double value) Sets the value of theprefWidthproperty.voidSets the value of theurlproperty.Width of thisWebView.Methods inherited from class javafx.scene.Parent
computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBaselineOffset, getChildren, getChildrenUnmodifiable, getManagedChildren, impl_minHeight, impl_minWidth, impl_prefHeight, impl_prefWidth, isNeedsLayout, layout, layoutChildren, needsLayoutProperty, requestLayout, requestParentLayout, setLayoutFlag, setNeedsLayout, setSceneRootMethods inherited from class javafx.scene.Node
addEventFilter, addEventHandler, autosize, blendModeProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, createLayoutMeasurable, cursorProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAllNodeTransforms, getBoundsInLocal, getCacheHint, getCursor, getEventDispatcher, getId, getLayoutMeasurable, getNodePeer, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseDragged, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnScroll, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOrCreateAndBindNodePeer, getProperties, getRotate, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleClass, getTransforms, getTranslateX, getTranslateY, getUserData, hasProperties, hoverProperty, idProperty, impl_computeLayoutBounds, impl_getLayoutBounds, impl_isTreeVisible, impl_maxHeight, impl_maxWidth, impl_traverse, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isPressed, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToScene, localToScene, localToScreen, localToScreen, localToScreen, localToScreen, managedProperty, mouseTransparentProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDraggedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onNodePeerReady, onPeerSizeChanged, onScrollProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, opacityProperty, parentProperty, parentToLocal, pressedProperty, removeEventFilter, removeEventHandler, requestFocus, requestPeerFocus, rotateProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, setCache, setCacheHint, setCursor, setDisable, setDisabled, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setNodePeer, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseDragged, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnScroll, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setPressed, setRotate, setScaleX, setScaleY, setScaleZ, setScene, setStyle, setTranslateX, setTranslateY, setUserData, shouldUseLayoutMeasurable, snapshot, startDragAndDrop, styleProperty, toBack, toFront, translateXProperty, translateYProperty, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasBlendModeProperty
getBlendMode, setBlendModeMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasClipProperty
getClip, setClipMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasEffectProperty
getEffect, setEffectMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasLayoutXProperty
getLayoutX, setLayoutXMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasLayoutYProperty
getLayoutY, setLayoutYMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasManagedProperty
isManaged, setManagedMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMouseTransparentProperty
isMouseTransparent, setMouseTransparentMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasOnMouseClickedProperty
getOnMouseClicked, setOnMouseClickedMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasOpacityProperty
getOpacity, setOpacityMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasParentProperty
getParent, setParentMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasVisibleProperty
isVisible, setVisibleMethods inherited from interface javafx.scene.INode
getContentBias, relocate, resizeRelocateMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.emul_coupling.LayoutMeasurableMixin
clearCache, getLayoutBounds
-
Property Details
-
width
Width of thisWebView.- See Also:
-
height
Height of thisWebView.- See Also:
-
url
- See Also:
-
loadContent
-
minWidth
Minimum width property. -
minHeight
Minimum height property. -
prefWidth
Preferred width property. -
prefHeight
Preferred height property. -
maxWidth
Maximum width property. -
maxHeight
Maximum height property. -
pageFill
-
-
Constructor Details
-
WebView
public WebView()
-
-
Method Details
-
getWidth
public final double getWidth()Gets the value of thewidthproperty.- Property description:
- Width of this
WebView. - Returns:
- the value of the
widthproperty - See Also:
-
widthProperty
Width of thisWebView.- Returns:
- the width property
- See Also:
-
getHeight
public final double getHeight()Gets the value of theheightproperty.- Property description:
- Height of this
WebView. - Returns:
- the value of the
heightproperty - See Also:
-
heightProperty
Height of thisWebView.- Returns:
- the height property
- See Also:
-
setUrl
Sets the value of theurlproperty.- Property description:
- Parameters:
url- the value for theurlproperty- See Also:
-
getUrl
Gets the value of theurlproperty.- Property description:
- Returns:
- the value of the
urlproperty - See Also:
-
urlProperty
- Returns:
- the
urlproperty - See Also:
-
setLoadContent
Sets the value of theloadContentproperty.- Property description:
- Parameters:
loadContent- the value for theloadContentproperty- See Also:
-
getLoadContent
Gets the value of theloadContentproperty.- Property description:
- Returns:
- the value of the
loadContentproperty - See Also:
-
loadContentProperty
- Returns:
- the
loadContentproperty - See Also:
-
getEngine
-
isResizable
public boolean isResizable() -
resize
public void resize(double width, double height) -
minWidth
public final double minWidth(double height) Called during layout to determine the minimum width for this node.- Returns:
- the minimum width that this node should be resized to during layout
-
minHeight
public final double minHeight(double width) Called during layout to determine the minimum height for this node.- Returns:
- the minimum height that this node should be resized to during layout
-
prefWidth
public final double prefWidth(double height) Called during layout to determine the preferred width for this node.- Returns:
- the preferred width that this node should be resized to during layout
-
prefHeight
public final double prefHeight(double width) Called during layout to determine the preferred height for this node.- Returns:
- the preferred height that this node should be resized to during layout
-
maxWidth
public final double maxWidth(double height) Called during layout to determine the maximum width for this node.- Returns:
- the maximum width that this node should be resized to during layout
-
maxHeight
public final double maxHeight(double width) Called during layout to determine the maximum height for this node.- Returns:
- the maximum height that this node should be resized to during layout
-
minWidthProperty
Minimum width property.- Returns:
- the minWidth property
- See Also:
-
setMinWidth
public final void setMinWidth(double value) Sets the value of theminWidthproperty.- Property description:
- Minimum width property.
- Parameters:
value- the value for theminWidthproperty- See Also:
-
getMinWidth
public final double getMinWidth()Gets the value of theminWidthproperty.- Property description:
- Minimum width property.
- Returns:
- the value of the
minWidthproperty - See Also:
-
minHeightProperty
Minimum height property.- Returns:
- the minHeight property
- See Also:
-
setMinHeight
public final void setMinHeight(double value) Sets the value of theminHeightproperty.- Property description:
- Minimum height property.
- Parameters:
value- the value for theminHeightproperty- See Also:
-
getMinHeight
public final double getMinHeight()Gets the value of theminHeightproperty.- Property description:
- Minimum height property.
- Returns:
- the value of the
minHeightproperty - See Also:
-
setMinSize
public void setMinSize(double minWidth, double minHeight) Convenience method for setting minimum width and height.- Parameters:
minWidth- the minimum widthminHeight- the minimum height
-
prefWidthProperty
Preferred width property.- Returns:
- the prefWidth property
- See Also:
-
setPrefWidth
public final void setPrefWidth(double value) Sets the value of theprefWidthproperty.- Property description:
- Preferred width property.
- Parameters:
value- the value for theprefWidthproperty- See Also:
-
getPrefWidth
public final double getPrefWidth()Gets the value of theprefWidthproperty.- Property description:
- Preferred width property.
- Returns:
- the value of the
prefWidthproperty - See Also:
-
prefHeightProperty
Preferred height property.- Returns:
- the prefHeight property
- See Also:
-
setPrefHeight
public final void setPrefHeight(double value) Sets the value of theprefHeightproperty.- Property description:
- Preferred height property.
- Parameters:
value- the value for theprefHeightproperty- See Also:
-
getPrefHeight
public final double getPrefHeight()Gets the value of theprefHeightproperty.- Property description:
- Preferred height property.
- Returns:
- the value of the
prefHeightproperty - See Also:
-
setPrefSize
public void setPrefSize(double prefWidth, double prefHeight) Convenience method for setting preferred width and height.- Parameters:
prefWidth- the preferred widthprefHeight- the preferred height
-
maxWidthProperty
Maximum width property.- Returns:
- the maxWidth property
- See Also:
-
setMaxWidth
public final void setMaxWidth(double value) Sets the value of themaxWidthproperty.- Property description:
- Maximum width property.
- Parameters:
value- the value for themaxWidthproperty- See Also:
-
getMaxWidth
public final double getMaxWidth()Gets the value of themaxWidthproperty.- Property description:
- Maximum width property.
- Returns:
- the value of the
maxWidthproperty - See Also:
-
maxHeightProperty
Maximum height property.- Returns:
- the maxHeight property
- See Also:
-
setMaxHeight
public final void setMaxHeight(double value) Sets the value of themaxHeightproperty.- Property description:
- Maximum height property.
- Parameters:
value- the value for themaxHeightproperty- See Also:
-
getMaxHeight
public final double getMaxHeight()Gets the value of themaxHeightproperty.- Property description:
- Maximum height property.
- Returns:
- the value of the
maxHeightproperty - See Also:
-
setMaxSize
public void setMaxSize(double maxWidth, double maxHeight) Convenience method for setting maximum width and height.- Parameters:
maxWidth- the maximum widthmaxHeight- the maximum height
-
impl_computeGeomBounds
Description copied from class:ParentThis set is used to track all of the children of this group which are dirty. It is only used in cases where the number of children is > some value (currently 10). For very wide trees, this can provide a very important speed boost. For the sake of memory consumption, this is null unless the number of children ever crosses the threshold where it will be activated.- Overrides:
impl_computeGeomBoundsin classParent
-
setPageFill
Sets the value of thepageFillproperty.- Property description:
- Parameters:
value- the value for thepageFillproperty- See Also:
-
getPageFill
Gets the value of thepageFillproperty.- Property description:
- Returns:
- the value of the
pageFillproperty - See Also:
-
pageFillProperty
- Returns:
- the
pageFillproperty - See Also:
-