API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text.html. Option View Source
Author(s)
Timothy Prinzing
Since
Version
1.12 03/28/06
Serial
Hierarchy
 Object
      Option
Implements
 Serializable
Subclasses
Description
public class Option
  Value for the ListModel used to represent <option> elements.
See also:   
Constructors
public Option (AttributeSet attr)
  Creates a new Option object.
Methods
Hide/Show inherited methods
public AttributeSet getAttributes ()
Fetch the attributes associated with this option.
public String getLabel ()
Fetch the label associated with the option.
public String getValue ()
  Convenience method to return the string associated with the value attribute.
public boolean isSelected ()
Fetches the selection state associated with this option.
public void setLabel (String label)
Sets the label to be used for the option.
protected void setSelection (boolean state)
Sets the selected state.
public String toString ()
String representation is the label.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar