java.lang.Object
org.controlsfx.control.action.Action
org.controlsfx.control.ListActionView.ListAction<T>
- Type Parameters:
T
- Type of ListActionView to which this ListAction will be added.
- All Implemented Interfaces:
EventListener
,javafx.event.EventHandler<javafx.event.ActionEvent>
- Enclosing class:
ListActionView<T>
Specialized actions for ListActionView which get access to the internal ListView. A user can add a custom action to the
control by extending this class and adding its instance to the
action list
.-
Property Summary
-
Constructor Summary
ConstructorsConstructorDescriptionListAction
(javafx.scene.Node graphic) Creates a new instance of ListAction with the graphic node.ListAction
(javafx.scene.Node graphic, String text) Creates a new instance of ListAction with the provided graphic and text. -
Method Summary
Modifier and TypeMethodDescriptionabstract 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 final void
setEventHandler
(Consumer<javafx.event.ActionEvent> eventHandler) Methods inherited from class org.controlsfx.control.action.Action
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, textProperty
-
Constructor Details
-
ListAction
public ListAction(javafx.scene.Node graphic) Creates a new instance of ListAction with the graphic node.- Parameters:
graphic
- Graphic to be shown in relation to this action.
-
ListAction
Creates a new instance of ListAction with the provided graphic and text.- Parameters:
graphic
- Graphic to be shown in relation to this action.text
- The text for the Action.
-
-
Method Details
-
initialize
Can be used to define properties or bindings for actions which are directly dependent on the list view.- Parameters:
listView
- The list view
-
setEventHandler
- Overrides:
setEventHandler
in classAction
-