Class ListSelectionView.ListSelectionAction<T>

    • Constructor Detail

      • 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

        public ListSelectionAction​(javafx.scene.Node graphic,
                                   java.lang.String text)
        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 Detail

      • 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 view
        targetListView - The target list view
      • setEventHandler

        protected final void setEventHandler​(java.util.function.Consumer<javafx.event.ActionEvent> eventHandler)
        Overrides:
        setEventHandler in class Action