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
TypePropertyDescriptionHeight 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
needsLayout
Properties 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
-
Method Summary
Modifier and TypeMethodDescriptionfinal double
Gets the value of theheight
property.Gets the value of theloadContent
property.final double
Gets the value of themaxHeight
property.final double
Gets the value of themaxWidth
property.final double
Gets the value of theminHeight
property.final double
Gets the value of theminWidth
property.final Color
Gets the value of thepageFill
property.final double
Gets the value of theprefHeight
property.final double
Gets the value of theprefWidth
property.getUrl()
Gets the value of theurl
property.final double
getWidth()
Gets the value of thewidth
property.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.boolean
final double
maxHeight
(double width) Called during layout to determine the maximum height for this node.Maximum height property.final double
maxWidth
(double height) Called during layout to determine the maximum width for this node.Maximum width property.final double
minHeight
(double width) Called during layout to determine the minimum height for this node.Minimum height property.final double
minWidth
(double height) Called during layout to determine the minimum width for this node.Minimum width property.final ObjectProperty<Color>
final double
prefHeight
(double width) Called during layout to determine the preferred height for this node.Preferred height property.final double
prefWidth
(double height) Called during layout to determine the preferred width for this node.Preferred width property.void
resize
(double width, double height) void
setLoadContent
(String loadContent) Sets the value of theloadContent
property.final void
setMaxHeight
(double value) Sets the value of themaxHeight
property.void
setMaxSize
(double maxWidth, double maxHeight) Convenience method for setting maximum width and height.final void
setMaxWidth
(double value) Sets the value of themaxWidth
property.final void
setMinHeight
(double value) Sets the value of theminHeight
property.void
setMinSize
(double minWidth, double minHeight) Convenience method for setting minimum width and height.final void
setMinWidth
(double value) Sets the value of theminWidth
property.final void
setPageFill
(Color value) Sets the value of thepageFill
property.final void
setPrefHeight
(double value) Sets the value of theprefHeight
property.void
setPrefSize
(double prefWidth, double prefHeight) Convenience method for setting preferred width and height.final void
setPrefWidth
(double value) Sets the value of theprefWidth
property.void
Sets the value of theurl
property.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, setSceneRoot
Methods 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, visibleProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasBlendModeProperty
getBlendMode, setBlendMode
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasClipProperty
getClip, setClip
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasEffectProperty
getEffect, setEffect
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasLayoutXProperty
getLayoutX, setLayoutX
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasLayoutYProperty
getLayoutY, setLayoutY
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasManagedProperty
isManaged, setManaged
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMouseTransparentProperty
isMouseTransparent, setMouseTransparent
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasOnMouseClickedProperty
getOnMouseClicked, setOnMouseClicked
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasOpacityProperty
getOpacity, setOpacity
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasParentProperty
getParent, setParent
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasVisibleProperty
isVisible, setVisible
Methods inherited from interface javafx.scene.INode
getContentBias, relocate, resizeRelocate
Methods 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 thewidth
property.- Property description:
- Width of this
WebView
. - Returns:
- the value of the
width
property - See Also:
-
widthProperty
Width of thisWebView
.- Returns:
- the width property
- See Also:
-
getHeight
public final double getHeight()Gets the value of theheight
property.- Property description:
- Height of this
WebView
. - Returns:
- the value of the
height
property - See Also:
-
heightProperty
Height of thisWebView
.- Returns:
- the height property
- See Also:
-
setUrl
Sets the value of theurl
property.- Property description:
- Parameters:
url
- the value for theurl
property- See Also:
-
getUrl
Gets the value of theurl
property.- Property description:
- Returns:
- the value of the
url
property - See Also:
-
urlProperty
- Returns:
- the
url
property - See Also:
-
setLoadContent
Sets the value of theloadContent
property.- Property description:
- Parameters:
loadContent
- the value for theloadContent
property- See Also:
-
getLoadContent
Gets the value of theloadContent
property.- Property description:
- Returns:
- the value of the
loadContent
property - See Also:
-
loadContentProperty
- Returns:
- the
loadContent
property - 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 theminWidth
property.- Property description:
- Minimum width property.
- Parameters:
value
- the value for theminWidth
property- See Also:
-
getMinWidth
public final double getMinWidth()Gets the value of theminWidth
property.- Property description:
- Minimum width property.
- Returns:
- the value of the
minWidth
property - See Also:
-
minHeightProperty
Minimum height property.- Returns:
- the minHeight property
- See Also:
-
setMinHeight
public final void setMinHeight(double value) Sets the value of theminHeight
property.- Property description:
- Minimum height property.
- Parameters:
value
- the value for theminHeight
property- See Also:
-
getMinHeight
public final double getMinHeight()Gets the value of theminHeight
property.- Property description:
- Minimum height property.
- Returns:
- the value of the
minHeight
property - 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 theprefWidth
property.- Property description:
- Preferred width property.
- Parameters:
value
- the value for theprefWidth
property- See Also:
-
getPrefWidth
public final double getPrefWidth()Gets the value of theprefWidth
property.- Property description:
- Preferred width property.
- Returns:
- the value of the
prefWidth
property - See Also:
-
prefHeightProperty
Preferred height property.- Returns:
- the prefHeight property
- See Also:
-
setPrefHeight
public final void setPrefHeight(double value) Sets the value of theprefHeight
property.- Property description:
- Preferred height property.
- Parameters:
value
- the value for theprefHeight
property- See Also:
-
getPrefHeight
public final double getPrefHeight()Gets the value of theprefHeight
property.- Property description:
- Preferred height property.
- Returns:
- the value of the
prefHeight
property - 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 themaxWidth
property.- Property description:
- Maximum width property.
- Parameters:
value
- the value for themaxWidth
property- See Also:
-
getMaxWidth
public final double getMaxWidth()Gets the value of themaxWidth
property.- Property description:
- Maximum width property.
- Returns:
- the value of the
maxWidth
property - See Also:
-
maxHeightProperty
Maximum height property.- Returns:
- the maxHeight property
- See Also:
-
setMaxHeight
public final void setMaxHeight(double value) Sets the value of themaxHeight
property.- Property description:
- Maximum height property.
- Parameters:
value
- the value for themaxHeight
property- See Also:
-
getMaxHeight
public final double getMaxHeight()Gets the value of themaxHeight
property.- Property description:
- Maximum height property.
- Returns:
- the value of the
maxHeight
property - 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:Parent
This 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_computeGeomBounds
in classParent
-
setPageFill
Sets the value of thepageFill
property.- Property description:
- Parameters:
value
- the value for thepageFill
property- See Also:
-
getPageFill
Gets the value of thepageFill
property.- Property description:
- Returns:
- the value of the
pageFill
property - See Also:
-
pageFillProperty
- Returns:
- the
pageFill
property - See Also:
-