list of actions.
Each list can be decorated with a header and a footer node.
The default header nodes are simply two labels ("Available", "Selected").

ListSelectionView<String> view = new ListSelectionView<>();
view.getSourceItems().add("One", "Two", "Three");
view.getTargetItems().add("Four", "Five");
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | ListSelectionView.
Type of ListSelectionView to which this ListSelectionAction will be added. T>Specialized actions for ListSelectionView which get access to both the internal list views. |
| public class | ListSelectionView.
Action use to move the selected items from the target list view to the source list view. |
| public class | ListSelectionView.
Action use to all the items from the target list view to the source list view. |
| public class | ListSelectionView.
Action use to move the selected items from the source list view to the target list view. |
| public class | ListSelectionView.
Action use to move all the items from the source list view to the target list view. |
| Modifier and Type | Field and Description |
|---|---|
| private ObservableList | |
| private ObjectProperty | |
| private static final String | |
| private final ObjectProperty | |
| private ObservableList | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private ObjectProperty | |
| private ObservableList | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | cellFactoryProperty()
Setting a custom cell factory has the effect of deferring all cell creation, allowing for total customization of the cell. |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final ObservableList | Returns: An ObservableList of actions.The list of actions to be shown in between the two list views. |
| public final Callback | |
| private static Glyph | |
| public final Orientation | getOrientation()
Returns the |
| public final ObservableList | Returns: An ObservableList of actions.These actions are shown beside the source list view. |
| public final Node | |
| public final Node | |
| public final ObservableList | Returns: An ObservableList containing the items to be shown to the user in the source list, or null if the items have previously been set to null.Returns an |
| public final ObservableList | Returns: An ObservableList of actions.These actions are shown beside the target list view. |
| public final Node | |
| public final Node | |
| public final ObservableList | Returns: An ObservableList containing the items to be shown to the user in the target list, or null if the items have previously been set to null.Returns an |
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| private static <T> void | |
| private static <T> void | |
| private static <T> void | |
| private static <T> void | |
| private static <T> void | |
| private static <T> void | |
| public final ObjectProperty | orientationProperty()
The |
| public final void | setCellFactory(Callback<ListView<T>, ListCell<T>> value)
Sets a new cell factory to use by both list views. |
| public final void | setOrientation(Orientation value)
Sets the |
| public final void | setSourceFooter(Node
the new node shown below the source list node)Sets the value of |
| public final void | setSourceHeader(Node
the new header node to use for the source list node)Sets the value of |
| public final void | |
| public final void | setTargetFooter(Node
the new node shown below the target list node)Sets the value of |
| public final void | setTargetHeader(Node
the new node shown above the target list node)Sets the value of |
| public final void | |
| public final ObjectProperty | Returns: the property used to store the source footer nodeA property used to store a reference to a node that will be displayed below the source list view. |
| public final ObjectProperty | Returns: the property used to store the source header nodeA property used to store a reference to a node that will be displayed above the source list view. |
| public final ObjectProperty | |
| public final ObjectProperty | Returns: the property used to store the source footer nodeA property used to store a reference to a node that will be displayed below the target list view. |
| public final ObjectProperty | Returns: the property used to store the target header nodeA property used to store a reference to a node that will be displayed above the target list view. |
| public final ObjectProperty |
| actions | back to summary |
|---|---|
| private ObservableList<Action> actions | |
| cellFactory | back to summary |
|---|---|
| private ObjectProperty<Callback<ListView<T>, ListCell<T>>> cellFactory | |
| DEFAULT_STYLECLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLECLASS | |
| orientation | back to summary |
|---|---|
| private final ObjectProperty<Orientation> orientation | |
| sourceActions | back to summary |
|---|---|
| private ObservableList<Action> sourceActions | |
| sourceFooter | back to summary |
|---|---|
| private final ObjectProperty<Node> sourceFooter | |
| sourceHeader | back to summary |
|---|---|
| private final ObjectProperty<Node> sourceHeader | |
| sourceItems | back to summary |
|---|---|
| private ObjectProperty<ObservableList<T>> sourceItems | |
| targetActions | back to summary |
|---|---|
| private ObservableList<Action> targetActions | |
| targetFooter | back to summary |
|---|---|
| private final ObjectProperty<Node> targetFooter | |
| targetHeader | back to summary |
|---|---|
| private final ObjectProperty<Node> targetHeader | |
| targetItems | back to summary |
|---|---|
| private ObjectProperty<ObservableList<T>> targetItems | |
| ListSelectionView | back to summary |
|---|---|
| public ListSelectionView() Constructs a new dual list view. | |
| cellFactoryProperty | back to summary |
|---|---|
| public final ObjectProperty Setting a custom cell factory has the effect of deferring all cell creation, allowing for total customization of the cell. Internally, the ListView is responsible for reusing ListCells - all that is necessary is for the custom cell factory to return from this function a ListCell which might be usable for representing any item in the ListView.
Refer to the | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| getActions | back to summary |
|---|---|
| public final ObservableList The list of actions to be shown in between the two list views.
All actions except, For actions dependent on both the internal list views, an instance of By default, the list has 4 actions -
| |
| getCellFactory | back to summary |
|---|---|
| public final Callback Returns the current cell factory. | |
| getGlyph | back to summary |
|---|---|
| private static Glyph getGlyph(FontAwesome. | |
| getOrientation | back to summary |
|---|---|
| public final Orientation getOrientation() Returns the | |
| getSourceActions | back to summary |
|---|---|
| public final ObservableList These actions are shown beside the source list view. An instance of
| |
| getSourceFooter | back to summary |
|---|---|
| public final Node getSourceFooter() Returns the value of
| |
| getSourceHeader | back to summary |
|---|---|
| public final Node getSourceHeader() Returns the value of
| |
| getSourceItems | back to summary |
|---|---|
| public final ObservableList Returns an
| |
| getTargetActions | back to summary |
|---|---|
| public final ObservableList These actions are shown beside the target list view. An instance of
| |
| getTargetFooter | back to summary |
|---|---|
| public final Node getTargetFooter() Returns the value of
| |
| getTargetHeader | back to summary |
|---|---|
| public final Node getTargetHeader() Returns the value of
| |
| getTargetItems | back to summary |
|---|---|
| public final ObservableList Returns an
| |
| getUserAgentStylesheet | back to summary |
|---|---|
| public String getUserAgentStylesheet() Overrides javafx. Doc from javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. These styles are used in addition to whatever user-agent stylesheets are in use. This provides a mechanism for third parties to introduce styles for custom controls. The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath. Subclasses overriding this method should not assume any particular implementation approach as to the number and frequency with which it is called. For this reason, attempting any kind of dynamic implementation (i.e. returning different user agent stylesheet values) based on some state change is highly discouraged, as there is no guarantee when, or even if, this method will be called. Some JavaFX CSS implementations may choose to cache this response for an indefinite period of time, and therefore there should be no expectation around when this method is called.
For additional information about using CSS with the scene graph,
see the CSS Reference Guide.
| |
| move | back to summary |
|---|---|
| private static <T> void move(ListView<T> source, ListView<T> target) | |
| move | back to summary |
|---|---|
| private static <T> void move(ListView<T> source, ListView<T> target, List<T> items) | |
| moveToSource | back to summary |
|---|---|
| private static <T> void moveToSource(ListView<T> sourceListView, ListView<T> targetListView) | |
| moveToSourceAll | back to summary |
|---|---|
| private static <T> void moveToSourceAll(ListView<T> sourceListView, ListView<T> targetListView) | |
| moveToTarget | back to summary |
|---|---|
| private static <T> void moveToTarget(ListView<T> sourceListView, ListView<T> targetListView) | |
| moveToTargetAll | back to summary |
|---|---|
| private static <T> void moveToTargetAll(ListView<T> sourceListView, ListView<T> targetListView) | |
| orientationProperty | back to summary |
|---|---|
| public final ObjectProperty The | |
| setCellFactory | back to summary |
|---|---|
| public final void setCellFactory(Callback<ListView<T>, ListCell<T>> value) Sets a new cell factory to use by both list views. This forces all old
| |
| setOrientation | back to summary |
|---|---|
| public final void setOrientation(Orientation value) Sets the | |
| setSourceFooter | back to summary |
|---|---|
| public final void setSourceFooter(Node node) Sets the value of
| |
| setSourceHeader | back to summary |
|---|---|
| public final void setSourceHeader(Node node) Sets the value of
| |
| setSourceItems | back to summary |
|---|---|
| public final void setSourceItems(ObservableList<T> value) Sets the underlying data model for the ListView. Note that it has a generic type that must match the type of the ListView itself. | |
| setTargetFooter | back to summary |
|---|---|
| public final void setTargetFooter(Node node) Sets the value of
| |
| setTargetHeader | back to summary |
|---|---|
| public final void setTargetHeader(Node node) Sets the value of
| |
| setTargetItems | back to summary |
|---|---|
| public final void setTargetItems(ObservableList<T> value) Sets the underlying data model for the ListView. Note that it has a generic type that must match the type of the ListView itself. | |
| sourceFooterProperty | back to summary |
|---|---|
| public final ObjectProperty A property used to store a reference to a node that will be displayed below the source list view. The default node is a node with two buttons for easily selecting / deselecting all elements in the list view.
| |
| sourceHeaderProperty | back to summary |
|---|---|
| public final ObjectProperty A property used to store a reference to a node that will be displayed
above the source list view. The default node is a
| |
| sourceItemsProperty | back to summary |
|---|---|
| public final ObjectProperty The underlying data model for the source list view. Note that it has a generic type that must match the type of the source list view itself. | |
| targetFooterProperty | back to summary |
|---|---|
| public final ObjectProperty A property used to store a reference to a node that will be displayed below the target list view. The default node is a node with two buttons for easily selecting / deselecting all elements in the list view.
| |
| targetHeaderProperty | back to summary |
|---|---|
| public final ObjectProperty A property used to store a reference to a node that will be displayed
above the target list view. The default node is a
| |
| targetItemsProperty | back to summary |
|---|---|
| public final ObjectProperty The underlying data model for the target list view. Note that it has a generic type that must match the type of the source list view itself. | |
action list.
| Access | Constructor and Description |
|---|---|
| public | ListSelectionAction(Node
Graphic to be shown in relation to this action. graphic)Creates a new instance of ListSelectionAction with the graphic node. |
| public | ListSelectionAction(Node
Graphic to be shown in relation to this action. graphic, String The text for the Action. text)Creates a new instance of ListSelectionAction with the provided graphic and text. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | initialize(ListView<T>
The source list view sourceListView, ListView<T> The target list view targetListView)Can be used to define properties or bindings for actions which are directly dependent on the list views. |
| protected final void | setEventHandler(Consumer<ActionEvent> eventHandler)
Overrides org.
|
| ListSelectionAction | back to summary |
|---|---|
| public ListSelectionAction(Node graphic) Creates a new instance of ListSelectionAction with the graphic node.
| |
| ListSelectionAction | back to summary |
|---|---|
| public ListSelectionAction(Node graphic, String text) Creates a new instance of ListSelectionAction with the provided graphic and text. | |
| initialize | back to summary |
|---|---|
| public abstract void initialize(ListView<T> sourceListView, ListView<T> targetListView) Can be used to define properties or bindings for actions which are directly dependent on the list views. | |
| setEventHandler | back to summary |
|---|---|
| protected final void setEventHandler(Consumer<ActionEvent> eventHandler) Overrides org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(ListView<T> sourceListView, ListView<T> targetListView)
Implements abstract org. Can be used to define properties or bindings for actions which are directly dependent on the list views. |
| MoveToSource | back to summary |
|---|---|
| public MoveToSource() | |
| initialize | back to summary |
|---|---|
| public void initialize(ListView<T> sourceListView, ListView<T> targetListView) Implements abstract org. Doc from org. Can be used to define properties or bindings for actions which are directly dependent on the list views.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(ListView<T> sourceListView, ListView<T> targetListView)
Implements abstract org. Can be used to define properties or bindings for actions which are directly dependent on the list views. |
| MoveToSourceAll | back to summary |
|---|---|
| public MoveToSourceAll() | |
| initialize | back to summary |
|---|---|
| public void initialize(ListView<T> sourceListView, ListView<T> targetListView) Implements abstract org. Doc from org. Can be used to define properties or bindings for actions which are directly dependent on the list views.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(ListView<T> sourceListView, ListView<T> targetListView)
Implements abstract org. Can be used to define properties or bindings for actions which are directly dependent on the list views. |
| MoveToTarget | back to summary |
|---|---|
| public MoveToTarget() | |
| initialize | back to summary |
|---|---|
| public void initialize(ListView<T> sourceListView, ListView<T> targetListView) Implements abstract org. Doc from org. Can be used to define properties or bindings for actions which are directly dependent on the list views.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(ListView<T> sourceListView, ListView<T> targetListView)
Implements abstract org. Can be used to define properties or bindings for actions which are directly dependent on the list views. |
| MoveToTargetAll | back to summary |
|---|---|
| public MoveToTargetAll() | |
| initialize | back to summary |
|---|---|
| public void initialize(ListView<T> sourceListView, ListView<T> targetListView) Implements abstract org. Doc from org. Can be used to define properties or bindings for actions which are directly dependent on the list views.
| |