T - Type of ListActionView to which this ListAction will be added.public abstract static class ListActionView.ListAction<T> extends Action
action list.| Constructor and Description |
|---|
ListAction(javafx.scene.Node graphic)
Creates a new instance of ListAction with the graphic node.
|
ListAction(javafx.scene.Node graphic,
java.lang.String text)
Creates a new instance of ListAction with the provided graphic and text.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
initialize(javafx.scene.control.ListView<T> listView)
Can be used to define properties or bindings for actions
which are directly dependent on the list view.
|
protected void |
setEventHandler(java.util.function.Consumer<javafx.event.ActionEvent> eventHandler) |
acceleratorProperty, disabledProperty, getAccelerator, getEventHandler, getGraphic, getLongText, getProperties, getStyle, getStyleClass, getText, graphicProperty, handle, isDisabled, isSelected, lock, longTextProperty, selectedProperty, setAccelerator, setDisabled, setGraphic, setLongText, setSelected, setStyle, setText, styleProperty, textPropertypublic ListAction(javafx.scene.Node graphic)
graphic - Graphic to be shown in relation to this action.public ListAction(javafx.scene.Node graphic,
java.lang.String text)
graphic - Graphic to be shown in relation to this action.text - The text for the Action.public abstract void initialize(javafx.scene.control.ListView<T> listView)
listView - The list viewprotected final void setEventHandler(java.util.function.Consumer<javafx.event.ActionEvent> eventHandler)
setEventHandler in class Action