Class WebView
- All Implemented Interfaces:
-
Styleable,EventTarget
public final class WebView extends Parent
WebView is a Node that manages a WebEngine and displays its content. The associated WebEngine is created automatically at construction time and cannot be changed afterwards. WebView handles mouse and some keyboard events, and manages scrolling automatically, so there's no need to put it into a ScrollPane. WebView objects must be created and accessed solely from the FX thread.
- Since:
- JavaFX 2.0
Property Summary
| Type | Property | Description |
|---|---|---|
final BooleanProperty |
contextMenuEnabled |
Specifies whether context menu is enabled. |
DoubleProperty |
fontScale |
Specifies scale factor applied to font. |
final ObjectProperty<FontSmoothingType> |
fontSmoothingType |
Specifies a requested font smoothing type : gray or LCD. |
ReadOnlyDoubleProperty |
height |
Height of this WebView. |
DoubleProperty |
maxHeight |
Maximum height property. |
DoubleProperty |
maxWidth |
Maximum width property. |
DoubleProperty |
minHeight |
Minimum height property. |
DoubleProperty |
minWidth |
Minimum width property. |
final ObjectProperty<Color> |
pageFill |
Specifies the background color of the web page. |
DoubleProperty |
prefHeight |
Preferred height property. |
DoubleProperty |
prefWidth |
Preferred width property. |
ReadOnlyDoubleProperty |
width |
Width of this WebView. |
final DoubleProperty |
zoom |
The current zoom factor applied to the entire page contents. |
Properties declared in class javafx.scene.Parent
needsLayout
Properties declared in class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, 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, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
Field Summary
Fields declared in class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT
Constructor Summary
| Constructor | Description |
|---|---|
WebView() |
Creates a WebView object. |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
final BooleanProperty |
contextMenuEnabledProperty() |
Specifies whether context menu is enabled. |
DoubleProperty |
fontScaleProperty() |
Specifies scale factor applied to font. |
final ObjectProperty<FontSmoothingType> |
fontSmoothingTypeProperty() |
Specifies a requested font smoothing type : gray or LCD. |
static List<CssMetaData<? extends Styleable, |
getClassCssMetaData() |
Gets the CssMetaData associated with this class, which may include the CssMetaData of its superclasses. |
List<CssMetaData<? extends Styleable, |
getCssMetaData() |
This method should delegate to Node.getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection. |
final WebEngine |
getEngine() |
Returns the WebEngine object. |
final double |
getFontScale() |
Gets the value of the fontScale property. |
final FontSmoothingType |
getFontSmoothingType() |
Gets the value of the fontSmoothingType property. |
final double |
getHeight() |
Gets the value of the height property. |
final double |
getMaxHeight() |
Gets the value of the maxHeight property. |
final double |
getMaxWidth() |
Gets the value of the maxWidth property. |
final double |
getMinHeight() |
Gets the value of the minHeight property. |
final double |
getMinWidth() |
Gets the value of the minWidth property. |
final Color |
getPageFill() |
Gets the value of the pageFill property. |
final double |
getPrefHeight() |
Gets the value of the prefHeight property. |
final double |
getPrefWidth() |
Gets the value of the prefWidth property. |
final double |
getWidth() |
Gets the value of the width property. |
final double |
getZoom() |
Gets the value of the zoom property. |
ReadOnlyDoubleProperty |
heightProperty() |
Height of this WebView. |
final boolean |
isContextMenuEnabled() |
Gets the value of the contextMenuEnabled property. |
final double |
maxHeight |
Called during layout to determine the maximum height for this node. |
DoubleProperty |
maxHeightProperty() |
Maximum height property. |
final double |
maxWidth |
Called during layout to determine the maximum width for this node. |
DoubleProperty |
maxWidthProperty() |
Maximum width property. |
final double |
minHeight |
Called during layout to determine the minimum height for this node. |
DoubleProperty |
minHeightProperty() |
Minimum height property. |
final double |
minWidth |
Called during layout to determine the minimum width for this node. |
DoubleProperty |
minWidthProperty() |
Minimum width property. |
final ObjectProperty<Color> |
pageFillProperty() |
Specifies the background color of the web page. |
final double |
prefHeight |
Called during layout to determine the preferred height for this node. |
DoubleProperty |
prefHeightProperty() |
Preferred height property. |
final double |
prefWidth |
Called during layout to determine the preferred width for this node. |
DoubleProperty |
prefWidthProperty() |
Preferred width property. |
final void |
setContextMenuEnabled |
Sets the value of the contextMenuEnabled property. |
final void |
setFontScale |
Sets the value of the fontScale property. |
final void |
setFontSmoothingType |
Sets the value of the fontSmoothingType property. |
final void |
setMaxHeight |
Sets the value of the maxHeight property. |
void |
setMaxSize |
Convenience method for setting maximum width and height. |
final void |
setMaxWidth |
Sets the value of the maxWidth property. |
final void |
setMinHeight |
Sets the value of the minHeight property. |
void |
setMinSize |
Convenience method for setting minimum width and height. |
final void |
setMinWidth |
Sets the value of the minWidth property. |
final void |
setPageFill |
Sets the value of the pageFill property. |
final void |
setPrefHeight |
Sets the value of the prefHeight property. |
void |
setPrefSize |
Convenience method for setting preferred width and height. |
final void |
setPrefWidth |
Sets the value of the prefWidth property. |
final void |
setZoom |
Sets the value of the zoom property. |
ReadOnlyDoubleProperty |
widthProperty() |
Width of this WebView. |
final DoubleProperty |
zoomProperty() |
The current zoom factor applied to the entire page contents. |
Methods declared in class javafx.scene.Parent
computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBaselineOffset, getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
Methods declared in class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookup, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, queryAccessibleAttribute, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods declared in interface javafx.css.Styleable
getStyleableNode
Property Details
width
public ReadOnlyDoubleProperty widthProperty
WebView.- See Also:
height
public ReadOnlyDoubleProperty heightProperty
WebView.- See Also:
zoom
public final DoubleProperty zoomProperty
- Default value:
- 1.0
- Since:
- JavaFX 8.0
- See Also:
fontScale
public DoubleProperty fontScaleProperty
- Default value:
- 1.0
- See Also:
minWidth
public DoubleProperty minWidthProperty
minHeight
public DoubleProperty minHeightProperty
prefWidth
public DoubleProperty prefWidthProperty
prefHeight
public DoubleProperty prefHeightProperty
maxWidth
public DoubleProperty maxWidthProperty
maxHeight
public DoubleProperty maxHeightProperty
fontSmoothingType
public final ObjectProperty<FontSmoothingType> fontSmoothingTypeProperty
- Default value:
- FontSmoothingType.LCD
- Since:
- JavaFX 2.2
- See Also:
pageFill
public final ObjectProperty<Color> pageFillProperty
With this property, the WebView control's background can have any solid color, including some or complete level of transparency. However, if the HTML content being loaded sets its own background color, that color will take precedence.
- Default value:
Color.WHITE- Since:
- 18
- See Also:
contextMenuEnabled
public final BooleanProperty contextMenuEnabledProperty
- Default value:
- true
- Since:
- JavaFX 2.2
- See Also:
Constructor Details
WebView
public WebView()
WebView object.Method Details
getEngine
public final WebEngine getEngine()
WebEngine object.- Returns:
- the WebEngine
getWidth
public final double getWidth()
width property.- Property description:
- Width of this
WebView. - Returns:
- the value of the
widthproperty - See Also:
widthProperty
public ReadOnlyDoubleProperty widthProperty()
WebView.- Returns:
- the width property
- See Also:
getHeight
public final double getHeight()
height property.- Property description:
- Height of this
WebView. - Returns:
- the value of the
heightproperty - See Also:
heightProperty
public ReadOnlyDoubleProperty heightProperty()
WebView.- Returns:
- the height property
- See Also:
setZoom
public final void setZoom(double value)
zoom property.- Property description:
- The current zoom factor applied to the entire page contents.
- Default value:
- 1.0
- Parameters:
-
value- the value for thezoomproperty - Since:
- JavaFX 8.0
- See Also:
getZoom
public final double getZoom()
zoom property.- Property description:
- The current zoom factor applied to the entire page contents.
- Default value:
- 1.0
- Returns:
- the value of the
zoomproperty - Since:
- JavaFX 8.0
- See Also:
zoomProperty
public final DoubleProperty zoomProperty()
- Default value:
- 1.0
- Returns:
- the zoom property
- Since:
- JavaFX 8.0
- See Also:
setFontScale
public final void setFontScale(double value)
fontScale property.- Property description:
- Specifies scale factor applied to font. This setting affects text content but not images and fixed size elements.
- Default value:
- 1.0
- Parameters:
-
value- the value for thefontScaleproperty - See Also:
getFontScale
public final double getFontScale()
fontScale property.- Property description:
- Specifies scale factor applied to font. This setting affects text content but not images and fixed size elements.
- Default value:
- 1.0
- Returns:
- the value of the
fontScaleproperty - See Also:
fontScaleProperty
public DoubleProperty fontScaleProperty()
- Default value:
- 1.0
- Returns:
- the
fontScaleproperty - See Also:
minWidth
public final double minWidth(double height)
- Overrides:
-
minWidthin classNode - Parameters:
-
height- the height that should be used if minimum width depends on it - Returns:
- the minimum width that this node should be resized to during layout
- See Also:
minHeight
public final double minHeight(double width)
- Overrides:
-
minHeightin classNode - Parameters:
-
width- the width that should be used if minimum height depends on it - Returns:
- the minimum height that this node should be resized to during layout
- See Also:
prefWidth
public final double prefWidth(double height)
- Overrides:
-
prefWidthin classNode - Parameters:
-
height- the height that should be used if preferred width depends on it - Returns:
- the preferred width that this node should be resized to during layout
- See Also:
prefHeight
public final double prefHeight(double width)
- Overrides:
-
prefHeightin classNode - Parameters:
-
width- the width that should be used if preferred height depends on it - Returns:
- the preferred height that this node should be resized to during layout
- See Also:
maxWidth
public final double maxWidth(double height)
- Overrides:
-
maxWidthin classNode - Parameters:
-
height- the height that should be used if maximum width depends on it - Returns:
- the maximum width that this node should be resized to during layout
- See Also:
maxHeight
public final double maxHeight(double width)
- Overrides:
-
maxHeightin classNode - Parameters:
-
width- the width that should be used if maximum height depends on it - Returns:
- the maximum height that this node should be resized to during layout
- See Also:
minWidthProperty
public DoubleProperty minWidthProperty()
- Returns:
- the minWidth property
- See Also:
setMinWidth
public final void setMinWidth(double value)
minWidth property.- Property description:
- Minimum width property.
- Parameters:
-
value- the value for theminWidthproperty - See Also:
getMinWidth
public final double getMinWidth()
minWidth property.- Property description:
- Minimum width property.
- Returns:
- the value of the
minWidthproperty - See Also:
minHeightProperty
public DoubleProperty minHeightProperty()
- Returns:
- the minHeight property
- See Also:
setMinHeight
public final void setMinHeight(double value)
minHeight property.- Property description:
- Minimum height property.
- Parameters:
-
value- the value for theminHeightproperty - See Also:
getMinHeight
public final double getMinHeight()
minHeight property.- Property description:
- Minimum height property.
- Returns:
- the value of the
minHeightproperty - See Also:
setMinSize
public void setMinSize(double minWidth, double minHeight)
- Parameters:
-
minWidth- the minimum width -
minHeight- the minimum height
prefWidthProperty
public DoubleProperty prefWidthProperty()
- Returns:
- the prefWidth property
- See Also:
setPrefWidth
public final void setPrefWidth(double value)
prefWidth property.- Property description:
- Preferred width property.
- Parameters:
-
value- the value for theprefWidthproperty - See Also:
getPrefWidth
public final double getPrefWidth()
prefWidth property.- Property description:
- Preferred width property.
- Returns:
- the value of the
prefWidthproperty - See Also:
prefHeightProperty
public DoubleProperty prefHeightProperty()
- Returns:
- the prefHeight property
- See Also:
setPrefHeight
public final void setPrefHeight(double value)
prefHeight property.- Property description:
- Preferred height property.
- Parameters:
-
value- the value for theprefHeightproperty - See Also:
getPrefHeight
public final double getPrefHeight()
prefHeight property.- Property description:
- Preferred height property.
- Returns:
- the value of the
prefHeightproperty - See Also:
setPrefSize
public void setPrefSize(double prefWidth, double prefHeight)
- Parameters:
-
prefWidth- the preferred width -
prefHeight- the preferred height
maxWidthProperty
public DoubleProperty maxWidthProperty()
- Returns:
- the maxWidth property
- See Also:
setMaxWidth
public final void setMaxWidth(double value)
maxWidth property.- Property description:
- Maximum width property.
- Parameters:
-
value- the value for themaxWidthproperty - See Also:
getMaxWidth
public final double getMaxWidth()
maxWidth property.- Property description:
- Maximum width property.
- Returns:
- the value of the
maxWidthproperty - See Also:
maxHeightProperty
public DoubleProperty maxHeightProperty()
- Returns:
- the maxHeight property
- See Also:
setMaxHeight
public final void setMaxHeight(double value)
maxHeight property.- Property description:
- Maximum height property.
- Parameters:
-
value- the value for themaxHeightproperty - See Also:
getMaxHeight
public final double getMaxHeight()
maxHeight property.- Property description:
- Maximum height property.
- Returns:
- the value of the
maxHeightproperty - See Also:
setMaxSize
public void setMaxSize(double maxWidth, double maxHeight)
- Parameters:
-
maxWidth- the maximum width -
maxHeight- the maximum height
setFontSmoothingType
public final void setFontSmoothingType(FontSmoothingType value)
fontSmoothingType property.- Property description:
- Specifies a requested font smoothing type : gray or LCD. The width of the bounding box is defined by the widest row. Note: LCD mode doesn't apply in numerous cases, such as various compositing modes, where effects are applied and very large glyphs.
- Default value:
- FontSmoothingType.LCD
- Parameters:
-
value- the value for thefontSmoothingTypeproperty - Since:
- JavaFX 2.2
- See Also:
getFontSmoothingType
public final FontSmoothingType getFontSmoothingType()
fontSmoothingType property.- Property description:
- Specifies a requested font smoothing type : gray or LCD. The width of the bounding box is defined by the widest row. Note: LCD mode doesn't apply in numerous cases, such as various compositing modes, where effects are applied and very large glyphs.
- Default value:
- FontSmoothingType.LCD
- Returns:
- the value of the
fontSmoothingTypeproperty - Since:
- JavaFX 2.2
- See Also:
fontSmoothingTypeProperty
public final ObjectProperty<FontSmoothingType> fontSmoothingTypeProperty()
- Default value:
- FontSmoothingType.LCD
- Returns:
- the
fontSmoothingTypeproperty - Since:
- JavaFX 2.2
- See Also:
setPageFill
public final void setPageFill(Color value)
pageFill property.- Property description:
- Specifies the background color of the web page.
With this property, the
WebViewcontrol's background can have any solid color, including some or complete level of transparency. However, if the HTML content being loaded sets its own background color, that color will take precedence. - Default value:
Color.WHITE- Parameters:
-
value- the value for thepageFillproperty - Since:
- 18
- See Also:
getPageFill
public final Color getPageFill()
pageFill property.- Property description:
- Specifies the background color of the web page.
With this property, the
WebViewcontrol's background can have any solid color, including some or complete level of transparency. However, if the HTML content being loaded sets its own background color, that color will take precedence. - Default value:
Color.WHITE- Returns:
- the value of the
pageFillproperty - Since:
- 18
- See Also:
pageFillProperty
public final ObjectProperty<Color> pageFillProperty()
With this property, the WebView control's background can have any solid color, including some or complete level of transparency. However, if the HTML content being loaded sets its own background color, that color will take precedence.
- Default value:
Color.WHITE- Returns:
- the
pageFillproperty - Since:
- 18
- See Also:
setContextMenuEnabled
public final void setContextMenuEnabled(boolean value)
contextMenuEnabled property.- Property description:
- Specifies whether context menu is enabled.
- Default value:
- true
- Parameters:
-
value- the value for thecontextMenuEnabledproperty - Since:
- JavaFX 2.2
- See Also:
isContextMenuEnabled
public final boolean isContextMenuEnabled()
contextMenuEnabled property.- Property description:
- Specifies whether context menu is enabled.
- Default value:
- true
- Returns:
- the value of the
contextMenuEnabledproperty - Since:
- JavaFX 2.2
- See Also:
contextMenuEnabledProperty
public final BooleanProperty contextMenuEnabledProperty()
- Default value:
- true
- Returns:
- the
contextMenuEnabledproperty - Since:
- JavaFX 2.2
- See Also:
getClassCssMetaData
public static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
CssMetaData associated with this class, which may include the CssMetaData of its superclasses.- Returns:
- the
CssMetaData - Since:
- JavaFX 8.0
getCssMetaData
public List<CssMetaData<? extends Styleable,?>> getCssMetaData()
Node.getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.- Specified by:
-
getCssMetaDatain interfaceStyleable - Overrides:
-
getCssMetaDatain classNode - Returns:
- The CssMetaData associated with this node, which may include the CssMetaData of its superclasses.
- Since:
- JavaFX 8.0
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.