public interface MenuItemBase
Modifier and Type | Method and Description |
---|---|
ObjectProperty<KeyCombination> |
acceleratorProperty() |
BooleanProperty |
disableProperty() |
void |
fire()
Fires a new ActionEvent.
|
void |
fireValidation()
Fires when the accelerator for this MenuItem is invoked.
|
KeyCombination |
getAccelerator() |
Node |
getGraphic() |
java.lang.String |
getId() |
EventHandler<ActionEvent> |
getOnAction() |
java.lang.String |
getText() |
ObjectProperty<Node> |
graphicProperty() |
StringProperty |
idProperty() |
boolean |
isDisable() |
boolean |
isMnemonicParsing() |
boolean |
isVisible() |
BooleanProperty |
mnemonicParsingProperty() |
ObjectProperty<EventHandler<ActionEvent>> |
onActionProperty() |
void |
setAccelerator(KeyCombination value) |
void |
setDisable(boolean value) |
void |
setGraphic(Node value)
An optional graphic for the menu item This will normally be
an
ImageView node, but there is no requirement for this to be
the case. |
void |
setId(java.lang.String value)
*
Properties *
*
|
void |
setMnemonicParsing(boolean value)
MnemonicParsing property to enable/disable text parsing.
|
void |
setOnAction(EventHandler<ActionEvent> value)
The action, which is invoked whenever the MenuItemBase is fired.
|
void |
setText(java.lang.String value)
The text to display in the menu item.
|
void |
setVisible(boolean value) |
StringProperty |
textProperty() |
BooleanProperty |
visibleProperty() |
void setId(java.lang.String value)
java.lang.String getId()
StringProperty idProperty()
void setText(java.lang.String value)
java.lang.String getText()
StringProperty textProperty()
void setGraphic(Node value)
ImageView
node, but there is no requirement for this to be
the case.Node getGraphic()
ObjectProperty<Node> graphicProperty()
void setOnAction(EventHandler<ActionEvent> value)
fire()
method.EventHandler<ActionEvent> getOnAction()
ObjectProperty<EventHandler<ActionEvent>> onActionProperty()
void setDisable(boolean value)
boolean isDisable()
BooleanProperty disableProperty()
void setVisible(boolean value)
boolean isVisible()
BooleanProperty visibleProperty()
void setAccelerator(KeyCombination value)
KeyCombination getAccelerator()
ObjectProperty<KeyCombination> acceleratorProperty()
void setMnemonicParsing(boolean value)
The default value for MenuItemBase is true.
boolean isMnemonicParsing()
BooleanProperty mnemonicParsingProperty()
void fire()
void fireValidation()