org.jdesktop.html.form
Interface Select

All Superinterfaces:
Input
All Known Implementing Classes:
AbstractSelect

public interface Select
extends Input

Represents a combobox/list type input field.

An HTML form with such a combo might look like:


  <form>
      <select name="letter">
          <option value="a" />
          <option value="b" />
          <option value="c" selected="selected" />
          <option value="d" />
          <option value="e" />
      </select>
  </form>
 

The above block of HTML would corrospond to a Select with the following values:

Note: There is essentially no difference between this interface and the RadioInput interface. HTML separates them for presentation purposes. So do we. By having a separate interface we don't lose important information from within the HTML form. We can use this information to auto-create Swing UI representations.


Method Summary
 String[] getOptions()
          Gets the set of valid values.
 
Methods inherited from interface org.jdesktop.html.form.Input
getName, getValue, setValue
 

Method Detail

getOptions

String[] getOptions()
Gets the set of valid values. Any call to #setValue(String) must reference one of these.

Returns:
the array of valid values.