- java.lang.Object
-
- javafx.scene.control.MenuItem
-
- javafx.scene.control.CustomMenuItem
-
- javafx.scene.control.SeparatorMenuItem
-
- All Implemented Interfaces:
Styleable
,EventTarget
public class SeparatorMenuItem extends CustomMenuItem
A
MenuItem
that as the name suggests allows for a horizontal Separator to be embedded within it, by assigning aSeparator
to thecontent
property of theCustomMenuItem
This is provided for convenience as groups ofmenuitems
can be separated by a separator. Instead of a creating aCustomMenuItem
for this purpose, the user can use this class as indicated below.SeparatorMenuItem separatorMenuItem = new SeparatorMenuItem();
- Since:
- JavaFX 2.0
- See Also:
CustomMenuItem
,MenuItem
,Menu
-
-
Property Summary
-
Properties declared in class javafx.scene.control.CustomMenuItem
content, hideOnClick
-
Properties declared in class javafx.scene.control.MenuItem
accelerator, disable, graphic, id, mnemonicParsing, onAction, onMenuValidation, parentMenu, parentPopup, style, text, visible
-
-
Field Summary
-
Fields declared in class javafx.scene.control.MenuItem
MENU_VALIDATION_EVENT
-
-
Constructor Summary
Constructors Constructor Description SeparatorMenuItem()
Creates a default SeparatorMenuItem instance.
-
Method Summary
-
Methods declared in class javafx.scene.control.CustomMenuItem
contentProperty, getContent, hideOnClickProperty, isHideOnClick, setContent, setHideOnClick
-
Methods declared in interface javafx.event.EventTarget
buildEventDispatchChain
-
Methods declared in class javafx.scene.control.MenuItem
acceleratorProperty, addEventHandler, disableProperty, fire, getAccelerator, getGraphic, getOnAction, getOnMenuValidation, getParentMenu, getParentPopup, getProperties, getPseudoClassStates, getStyleableParent, getStyleClass, getText, getTypeSelector, getUserData, graphicProperty, idProperty, isDisable, isMnemonicParsing, isVisible, mnemonicParsingProperty, onActionProperty, onMenuValidationProperty, parentMenuProperty, parentPopupProperty, removeEventHandler, setAccelerator, setDisable, setGraphic, setId, setMnemonicParsing, setOnAction, setOnMenuValidation, setParentMenu, setParentPopup, setStyle, setText, setUserData, setVisible, styleProperty, textProperty, visibleProperty
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface javafx.css.Styleable
getCssMetaData, getId, getStyle, getStyleableNode
-
-