Spec-Zone .ru
спецификации, руководства, описания, API
|
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<java.lang.Object,java.lang.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. |
java.lang.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(java.lang.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)
java.lang.Object getUserData()
Node.setUserData(java.lang.Object)
method.void setUserData(java.lang.Object value)
Node.getUserData()
.value
- The value to be stored - this can later be retrieved by calling
Node.getUserData()
.ObservableMap<java.lang.Object,java.lang.Object> getProperties()
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to