Toggles whose
selected variables should be managed such that only a single
Toggle within the ToggleGroup may be selected at
any one time.
Generally ToggleGroups are managed automatically simply by specifying
the name of a ToggleGroup on the , but in
some situations it is desirable to explicitly manage which
ToggleToggleGroup is used by .
Toggles
| Modifier and Type | Field and Description |
|---|---|
| private ObservableMap | |
| private final ReadOnlyObjectWrapper | |
| private final ObservableList | |
| private static final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final void | |
| public final ObservableMap | Returns: an observable map of properties on this node for use primarily by application developersReturns an observable map of properties on this node for use primarily by application developers. |
| public final Toggle | |
| public final ObservableList | Returns: the list of toggles within the ToggleGroupThe list of toggles within the ToggleGroup. |
| public Object | Returns: The Object that was previously set, or null if no property has been set or if null was set.Returns a previously set Object property, or null if no such property
has been set using the |
| public boolean | |
| public final ReadOnlyObjectProperty | |
| public final void | |
| private boolean | |
| public void | setUserData(Object
The value to be stored - this can later be retrieved by calling
value)ToggleGroup#getUserData().Convenience method for setting a single Object property that can be retrieved at a later date. |
| properties | back to summary |
|---|---|
| private ObservableMap<Object, Object> properties | |
| selectedToggle | back to summary |
|---|---|
| private final ReadOnlyObjectWrapper<Toggle> selectedToggle | |
| toggles | back to summary |
|---|---|
| private final ObservableList<Toggle> toggles | |
| USER_DATA_KEY | back to summary |
|---|---|
| private static final Object USER_DATA_KEY | |
| ToggleGroup | back to summary |
|---|---|
| public ToggleGroup() Creates a default ToggleGroup instance. | |
| clearSelectedToggle | back to summary |
|---|---|
| pack-priv final void clearSelectedToggle() | |
| getProperties | back to summary |
|---|---|
| public final ObservableMap Returns an observable map of properties on this node for use primarily by application developers.
| |
| getSelectedToggle | back to summary |
|---|---|
| public final Toggle getSelectedToggle() Gets the selected
| |
| getToggles | back to summary |
|---|---|
| public final ObservableList The list of toggles within the ToggleGroup.
| |
| getUserData | back to summary |
|---|---|
| public Object getUserData() Returns a previously set Object property, or null if no such property
has been set using the
| |
| hasProperties | back to summary |
|---|---|
| public boolean hasProperties() Tests if ToggleGroup has properties.
| |
| selectedToggleProperty | back to summary |
|---|---|
| public final ReadOnlyObjectProperty The selected toggle.
| |
| selectToggle | back to summary |
|---|---|
| public final void selectToggle(Toggle value) Selects the toggle.
| |
| setSelected | back to summary |
|---|---|
| private boolean setSelected(Toggle toggle, boolean selected) | |
| setUserData | back to summary |
|---|---|
| public void setUserData(Object value) Convenience method for setting a single Object property that can be
retrieved at a later date. This is functionally equivalent to calling
the getProperties().put(Object key, Object value) method. This can later
be retrieved by calling
| |