Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Modifier and Type | Field and Description |
|---|---|
| private AttributeSet | |
| private String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | Option(AttributeSet
the attributes associated with the
option element. The attributes are copied to
ensure they won't change. attr)Creates a new Option object. |
| Modifier and Type | Method and Description |
|---|---|
| public AttributeSet | Returns: the attributes associated with this option.Fetch the attributes associated with this option. |
| public String | |
| public String | Returns: the string associated with thevalue attribute,
or label if the value has been not specified.Convenient method to return the string associated
with the |
| public boolean | |
| public void | |
| protected void | |
| public String |
| attr | back to summary |
|---|---|
| private AttributeSet attr | |
| label | back to summary |
|---|---|
| private String label | |
| selected | back to summary |
|---|---|
| private boolean selected | |
| Option | back to summary |
|---|---|
| public Option(AttributeSet attr) Creates a new Option object.
| |
| getAttributes | back to summary |
|---|---|
| public AttributeSet getAttributes() Fetch the attributes associated with this option.
| |
| getLabel | back to summary |
|---|---|
| public String getLabel() Fetch the label associated with the option.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Convenient method to return the string associated
with the
| |
| isSelected | back to summary |
|---|---|
| public boolean isSelected() Fetches the selection state associated with this option.
| |
| setLabel | back to summary |
|---|---|
| public void setLabel(String label) Sets the label to be used for the option.
| |
| setSelection | back to summary |
|---|---|
| protected void setSelection(boolean state) Sets the selected state.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. String representation is the label. | |