Methods Summary |
---|
public javax.swing.text.AttributeSet | getAttributes()Fetch the attributes associated with this option.
return attr;
|
public java.lang.String | getLabel()Fetch the label associated with the option.
return label;
|
public java.lang.String | getValue()Convenience method to return the string associated
with the value attribute. If the
value has not been specified, the label will be
returned.
String value = (String) attr.getAttribute(HTML.Attribute.VALUE);
if (value == null) {
value = label;
}
return value;
|
public boolean | isSelected()Fetches the selection state associated with this option.
return selected;
|
public void | setLabel(java.lang.String label)Sets the label to be used for the option.
this.label = label;
|
protected void | setSelection(boolean state)Sets the selected state.
selected = state;
|
public java.lang.String | toString()String representation is the label.
return label;
|