Groovy Documentation

org.jdesktop.html.form
[Java] Interface Select

org.jdesktop.html.form.Input
  org.jdesktop.html.form.Select
All Superinterfaces:
Input

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.

Authors:
rbair


Method Summary
String[] getOptions()

Gets the set of valid values.

 
Methods inherited from interface Input
getName, getValue, setValue
 

Method Detail

getOptions

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


 

Groovy Documentation