SelectionField allowing
only for single selection.
| Modifier and Type | Field and Description |
|---|---|
| protected final ObjectProperty | persistentSelection
A |
| protected final ObjectProperty | |
| protected final List | validators
Every field contains a list of validators. |
| Access | Constructor and Description |
|---|---|
| protected | SingleSelectionField(ListProperty<V>
The property that is used to store the items of the field. items, int The index of the item that is to be selected. selection)The constructor of |
| Modifier and Type | Method and Description |
|---|---|
| public SingleSelectionField | Returns: Returns the current field to allow for chaining.The items property to be bound with. itemsBinding, ObjectProperty<V> The selection property to be bound with. selectionBinding)Binds the given items and selection property with the corresponding elements. |
| public SingleSelectionField | Returns: Returns the current field to allow for chaining.Removes the selection on the current field. |
| public V | |
| public SingleSelectionField | |
| public SingleSelectionField | |
| public void | persist()
Implements com. Stores the field's current value in its persistent value. |
| public void | reset()
Implements com. Sets the field's current value to its persistent value, thus resetting any changes made by the user. |
| public SingleSelectionField | Returns: Returns the current field to allow for chaining.The index of the element to be selected. index)Sets the selection to the element at the given index. |
| public ObjectProperty | |
| public void | setBindingMode(BindingMode
The new binding mode for the current field. newValue)Implements abstract com. Activates or deactivates the |
| public SingleSelectionField | Returns: Returns the current field to allow for chaining.The items property to be unbound with. itemsBinding, ObjectProperty<V> The selection property to be unbound with. selectionBinding)Unbinds the given items and selection property with the corresponding elements. |
| public final SingleSelectionField | |
| 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 ObjectProperty<V> persistentSelection A | |
| selection | back to summary |
|---|---|
| protected final ObjectProperty<V> selection | |
| validators | back to summary |
|---|---|
| protected final List<Validator<V>> validators Every field contains a list of validators. The validators are limited to the ones that correspond to the field's type. | |
| SingleSelectionField | back to summary |
|---|---|
| protected SingleSelectionField(ListProperty<V> items, int selection) The constructor of
| |
| bind | back to summary |
|---|---|
| public SingleSelectionField Binds the given items and selection property with the corresponding elements.
| |
| deselect | back to summary |
|---|---|
| public SingleSelectionField Removes the selection on the current field.
| |
| getSelection | back to summary |
|---|---|
| public V getSelection() | |
| items | back to summary |
|---|---|
| public SingleSelectionField Updates the list of available items to a new list, along with a pre-defined selection.
| |
| items | back to summary |
|---|---|
| public SingleSelectionField 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 value in its persistent value. This stores the user's changes in the model. | |
| reset | back to summary |
|---|---|
| public void reset() Implements com. Sets the field's current value to its persistent value, thus resetting any changes made by the user. | |
| select | back to summary |
|---|---|
| public SingleSelectionField Sets the selection to the element at the given index.
| |
| selectionProperty | back to summary |
|---|---|
| public ObjectProperty | |
| setBindingMode | back to summary |
|---|---|
| public void setBindingMode(BindingMode newValue) Implements abstract com. Doc from com. Activates or deactivates the
| |
| unbind | back to summary |
|---|---|
| public SingleSelectionField Unbinds the given items and selection property with the corresponding elements.
| |
| validate | back to summary |
|---|---|
| public final SingleSelectionField 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.
| |