| java.lang.Object org.mortbay.html.Element org.mortbay.html.Composite org.mortbay.html.Block org.mortbay.html.Select
Select | public Select(String name, boolean multiple)(Code) | | Parameters: name - Name of the form element Parameters: multiple - Whether multiple selections can be made |
Select | public Select(String name, boolean multiple, String[] options)(Code) | | Parameters: name - Name of the form element Parameters: multiple - Whether multiple selections can be made |
add | public Select add(Object o, boolean selected)(Code) | | Add option and specify if selected.
|
add | public Select add(Object o, boolean selected, String value)(Code) | | Add an option.
Parameters: o - The name of the option (displayed in the form) Parameters: selected - Whether the option is selected Parameters: value - The value of this option (returned in the form content) |
add | public Select add(String arr, int selected)(Code) | | Build a select from the given array of Strings. The values of the
select are the indexes into the array of the strings, which are used
as the labels on the selector.
Parameters: arr - The array of strings for labels Parameters: selected - The index of the selected label, -1 for default |
add | public Select add(String arr, String selected)(Code) | | Build a select from the given array of Strings. The values of the
select are the indexes into the array of the strings, which are used
as the labels on the selector.
Parameters: arr - The array of strings for labels Parameters: selected - The index of the selected label, -1 for default |
bitsetFormResult | public static int bitsetFormResult(String result)(Code) | | Utility function for multi-selectors.
This function takes the result returned by a multi-select input
and produces an integer bit-set result of the selections made. It
assumes the values of the multi-select are all different powers of 2.
|
setSize | public Select setSize(int size)(Code) | | Set the number of options to display at once
|
|
|