public interface Toggle
ToggleGroup
, which manages all assigned Toggles such
that only a single Toggle within the ToggleGroup
may be
selected at any one time.Type | Property and Description |
---|---|
BooleanProperty |
selected
The selected state for this
Toggle . |
ObjectProperty<ToggleGroup> |
toggleGroup
The
ToggleGroup to which this Toggle belongs. |
Modifier and Type | Method and Description |
---|---|
ObservableMap<Object,Object> |
getProperties()
Returns an observable map of properties on this toggle for use primarily
by application developers.
|
ToggleGroup |
getToggleGroup()
Returns The
ToggleGroup to which this Toggle belongs. |
Object |
getUserData()
Returns a previously set Object property, or null if no such property
has been set using the
Node.setUserData(java.lang.Object) method. |
boolean |
isSelected()
Indicates whether this
Toggle is selected. |
BooleanProperty |
selectedProperty()
The selected state for this
Toggle . |
void |
setSelected(boolean selected)
Sets this
Toggle as selected or unselected. |
void |
setToggleGroup(ToggleGroup toggleGroup)
Sets the
ToggleGroup to which this Toggle belongs. |
void |
setUserData(Object value)
Convenience method for setting a single Object property that can be
retrieved at a later date.
|
ObjectProperty<ToggleGroup> |
toggleGroupProperty()
The
ToggleGroup to which this Toggle belongs. |
ObjectProperty<ToggleGroup> toggleGroupProperty
ToggleGroup
to which this Toggle
belongs.getToggleGroup()
,
setToggleGroup(ToggleGroup)
BooleanProperty selectedProperty
Toggle
.isSelected()
,
setSelected(boolean)
ToggleGroup getToggleGroup()
ToggleGroup
to which this Toggle
belongs.ToggleGroup
to which this Toggle
belongs.void setToggleGroup(ToggleGroup toggleGroup)
ToggleGroup
to which this Toggle
belongs.toggleGroup
- The new ToggleGroup
.ObjectProperty<ToggleGroup> toggleGroupProperty()
ToggleGroup
to which this Toggle
belongs.getToggleGroup()
,
setToggleGroup(ToggleGroup)
boolean isSelected()
Toggle
is selected.true
if this Toggle
is selected.void setSelected(boolean selected)
Toggle
as selected or unselected.selected
- true
to make this Toggle
selected.BooleanProperty selectedProperty()
Toggle
.isSelected()
,
setSelected(boolean)
Object getUserData()
Node.setUserData(java.lang.Object)
method.void setUserData(Object value)
Node.getUserData()
.value
- The value to be stored - this can later be retrieved by calling
Node.getUserData()
.ObservableMap<Object,Object> getProperties()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.