public class SeparatorMenuItem extends CustomMenuItem
A MenuItem
that as the name suggests allows for a horizontal Separator to be embedded within it,
by assigning a Separator
to the content
property of the CustomMenuItem
This is provided for convenience as groups of menuitems
can be separated
by a separator. Instead of a creating a CustomMenuItem
for this purpose, the user
can use this class as indicated below.
SeparatorMenuItem separatorMenuItem = new SeparatorMenuItem();
CustomMenuItem
,
MenuItem
,
Menu
content, hideOnClick
accelerator, disable, graphic, id, mnemonicParsing, onAction, onMenuValidation, parentMenu, parentPopup, style, text, visible
MENU_VALIDATION_EVENT
Constructor and Description |
---|
SeparatorMenuItem()
Creates a default SeparatorMenuItem instance.
|
contentProperty, getContent, hideOnClickProperty, isHideOnClick, setContent, setHideOnClick
acceleratorProperty, addEventHandler, buildEventDispatchChain, disableProperty, fire, getAccelerator, getCssMetaData, getGraphic, getId, getOnAction, getOnMenuValidation, getParentMenu, getParentPopup, getProperties, getPseudoClassStates, getStyle, 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, toString, visibleProperty
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.