Module org.controlsfx.controls
Package org.controlsfx.control
Class ListSelectionView.ListSelectionAction<T>
java.lang.Object
org.controlsfx.control.action.Action
org.controlsfx.control.ListSelectionView.ListSelectionAction<T>
- Type Parameters:
T
- Type of ListSelectionView to which this ListSelectionAction will be added.
- All Implemented Interfaces:
EventListener
,javafx.event.EventHandler<javafx.event.ActionEvent>
- Direct Known Subclasses:
ListSelectionView.MoveToSource
,ListSelectionView.MoveToSourceAll
,ListSelectionView.MoveToTarget
,ListSelectionView.MoveToTargetAll
- Enclosing class:
ListSelectionView<T>
Specialized actions for ListSelectionView which get access to both the internal list views.
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
ConstructorsConstructorDescriptionListSelectionAction
(javafx.scene.Node graphic) Creates a new instance of ListSelectionAction with the graphic node.ListSelectionAction
(javafx.scene.Node graphic, String text) Creates a new instance of ListSelectionAction with the provided graphic and text. -
Method Summary
Modifier and TypeMethodDescriptionabstract void
initialize
(javafx.scene.control.ListView<T> sourceListView, javafx.scene.control.ListView<T> targetListView) Can be used to define properties or bindings for actions which are directly dependent on the list views.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
-
ListSelectionAction
public ListSelectionAction(javafx.scene.Node graphic) Creates a new instance of ListSelectionAction with the graphic node.- Parameters:
graphic
- Graphic to be shown in relation to this action.
-
ListSelectionAction
Creates a new instance of ListSelectionAction 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
public abstract void initialize(javafx.scene.control.ListView<T> sourceListView, javafx.scene.control.ListView<T> targetListView) Can be used to define properties or bindings for actions which are directly dependent on the list views.- Parameters:
sourceListView
- The source list viewtargetListView
- The target list view
-
setEventHandler
- Overrides:
setEventHandler
in classAction
-