MultiSelectionField
allowing for multi-selection.
| Modifier and Type | Field and Description |
|---|---|
| protected final ListProperty | persistentSelection
A |
| protected final ListProperty | |
| protected final List | validators
Every field contains a list of validators. |
| Access | Constructor and Description |
|---|---|
| protected | MultiSelectionField(ListProperty<V>
The property that is used to store the items of the field. items, List<Integer> The list of indices of items that are to be selected. selection)The constructor of |
| Modifier and Type | Method and Description |
|---|---|
| public MultiSelectionField | Returns: Returns the current field to allow for chaining.The items property to be bound with. itemsBinding, ListProperty<V> The selection property to be bound with. selectionBinding)Binds the given items and selection property with the corresponding elements. |
| public MultiSelectionField | Returns: Returns the current field to allow for chaining.The index of the element to be removed. index)Removes the element at the given index from the current selection. |
| public ObservableList | |
| public MultiSelectionField | |
| public MultiSelectionField | |
| public void | persist()
Implements com. Stores the field's current selection in its persistent selection. |
| public void | reset()
Implements com. Sets the field's current selection to its persistent selection, thus resetting any changes made by the user. |
| public MultiSelectionField | Returns: Returns the current field to allow for chaining.The index of the element to be selected. index)Adds the element at the given index to the current selection. |
| public ListProperty | |
| public void | setBindingMode(BindingMode
The new binding mode for the current field. newValue)Implements abstract com. Activates or deactivates the |
| public MultiSelectionField | Returns: Returns the current field to allow for chaining.The items property to be unbound with. itemsBinding, ListProperty<V> The selection property to be unbound with. selectionBinding)Unbinds the given items and selection property with the corresponding elements. |
| public final MultiSelectionField | Returns: Returns the current field to allow for chaining.The validators that are to be used for validating this
field. newValue)Sets the list of validators for the current field. |
| public boolean | Returns: Returns whether the user selection is a valid value or not.Implements abstract com. Validates a user input based on the field's selection and its validation rules. |
| protected boolean | validateRequired()
Implements abstract com. Validates that the new field input matches the required condition. |
| persistentSelection | back to summary |
|---|---|
| protected final ListProperty<V> persistentSelection A | |
| selection | back to summary |
|---|---|
| protected final ListProperty<V> selection | |
| validators | back to summary |
|---|---|
| protected final List<Validator<ObservableList<V>>> validators Every field contains a list of validators. The validators are limited to the ones that correspond to the field's type. | |
| MultiSelectionField | back to summary |
|---|---|
| protected MultiSelectionField(ListProperty<V> items, List<Integer> selection) The constructor of
| |
| bind | back to summary |
|---|---|
| public MultiSelectionField Binds the given items and selection property with the corresponding elements.
| |
| deselect | back to summary |
|---|---|
| public MultiSelectionField Removes the element at the given index from the current selection.
| |
| getSelection | back to summary |
|---|---|
| public ObservableList | |
| items | back to summary |
|---|---|
| public MultiSelectionField Updates the list of available items to a new list, along with a pre-defined selection.
| |
| items | back to summary |
|---|---|
| public MultiSelectionField Updates the list of available items to a new list, without a pre-defined selection.
| |
| persist | back to summary |
|---|---|
| public void persist() Implements com. Stores the field's current selection in its persistent selection. This stores the user's changes in the model. | |
| reset | back to summary |
|---|---|
| public void reset() Implements com. Sets the field's current selection to its persistent selection, thus resetting any changes made by the user. | |
| select | back to summary |
|---|---|
| public MultiSelectionField Adds the element at the given index to the current selection.
| |
| selectionProperty | back to summary |
|---|---|
| public ListProperty | |
| setBindingMode | back to summary |
|---|---|
| public void setBindingMode(BindingMode newValue) Implements abstract com. Doc from com. Activates or deactivates the
| |
| unbind | back to summary |
|---|---|
| public MultiSelectionField Unbinds the given items and selection property with the corresponding elements.
| |
| validate | back to summary |
|---|---|
| public final MultiSelectionField Sets the list of validators for the current field. This overrides all validators that have previously been added.
| |
| validate | back to summary |
|---|---|
| public boolean validate() Implements abstract com. Validates a user input based on the field's selection and its validation
rules. Also considers the
| |
| validateRequired | back to summary |
|---|---|
| protected boolean validateRequired() Implements abstract com. Doc from com. Validates that the new field input matches the required condition.
| |