Liking cljdoc? Tell your friends :D

javax.swing.text.html.Option

Value for the ListModel used to represent

<option> elements. This is the object installed as items of the DefaultComboBoxModel used to represent the <select> element.

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 XMLEncoder.

Value for the ListModel used to represent
<option> elements.  This is the object
installed as items of the DefaultComboBoxModel
used to represent the <select> element.

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 XMLEncoder.
raw docstring

->optionclj

(->option attr)

Constructor.

Creates a new Option object.

attr - the attributes associated with the option element. The attributes are copied to ensure they won't change. - javax.swing.text.AttributeSet

Constructor.

Creates a new Option object.

attr - the attributes associated with the option element. The attributes are copied to ensure they won't change. - `javax.swing.text.AttributeSet`
raw docstring

get-attributesclj

(get-attributes this)

Fetch the attributes associated with this option.

returns: javax.swing.text.AttributeSet

Fetch the attributes associated with this option.

returns: `javax.swing.text.AttributeSet`
raw docstring

get-labelclj

(get-label this)

Fetch the label associated with the option.

returns: java.lang.String

Fetch the label associated with the option.

returns: `java.lang.String`
raw docstring

get-valueclj

(get-value this)

Convenience method to return the string associated with the value attribute. If the value has not been specified, the label will be returned.

returns: java.lang.String

Convenience method to return the string associated
 with the value attribute.  If the
 value has not been specified, the label will be
 returned.

returns: `java.lang.String`
raw docstring

selected?clj

(selected? this)

Fetches the selection state associated with this option.

returns: boolean

Fetches the selection state associated with this option.

returns: `boolean`
raw docstring

set-labelclj

(set-label this label)

Sets the label to be used for the option.

label - java.lang.String

Sets the label to be used for the option.

label - `java.lang.String`
raw docstring

to-stringclj

(to-string this)

String representation is the label.

returns: a string representation of the object. - java.lang.String

String representation is the label.

returns: a string representation of the object. - `java.lang.String`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close