|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
org.jdesktop.html.form.Inputorg.jdesktop.html.form.Select
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 Input | |
|---|---|
| getName, getValue, setValue |
| Method Detail |
|---|
public String[] getOptions()
Groovy Documentation