| java.lang.Object uk.org.ponder.rsf.components.UIComponent uk.org.ponder.rsf.components.UISelect
UISelect | public class UISelect extends UIComponent implements FixableComponent(Code) | | Backs a selection control of some kind, where named values are presented in a
list to the user. The returned value which is submitted may be a single
selection, multiple selection, or empty, depending on the component type in
the selection field.
The value binding valuebinding in the superclass, if
non-empty, will retrieve an object list, which will be supplied during fixup
to the resolving beans referenced by nameresolver (which must
not be empty in this case) and idresolver . If idresolver is
empty, the list is assumed to be a list of IDs already.
|
Method Summary | |
public static StringSet | computeSelectionSet(UIBound selection) | public void | fixupComponent() | public static UISelect | make(UIContainer tofill, String ID, String[] values, String[] labels, String value, boolean willinput) | public static UISelect | make(UIContainer tofill, String ID) | protected static UISelect | make(UIContainer tofill, String ID, String[] options) | public static UISelect | make(UIContainer tofill, String ID, String[] options, String valuebinding, String initvalue) | public static UISelect | make(UIContainer tofill, String ID, String[] options, String[] labels, String valuebinding) | public static UISelect | make(UIContainer tofill, String ID, String[] options, String[] labels, String valuebinding, String initvalue) Constructs a single selection control, with labels distinct from the
submitting values. | public static UISelect | makeMultiple(UIContainer tofill, String ID, String[] options, String valuebinding, String[] initvalue) Constructs a multiple selection control, where the submitted values are
identical with the rendered labels. | public static UISelect | makeMultiple(UIContainer tofill, String ID, String[] options, String[] labels, String valuebinding, String[] initvalue) Constructs a multiple selection control, with distinct submitted values and
rendered labels. | public UISelect | setMessageKeys() Sets the option labels for this selection control to be interpreted
as message keys, rather than as raw Strings. |
optionlist | public UIBoundList optionlist(Code) | | A component representing the options which the user has to choose from *
|
optionnames | public UIBoundList optionnames(Code) | | A component representing the rendered labels for the list control
|
selected | public StringSet selected(Code) | | This field is set during fixup for reference of the renderer. Do not set
this manually.
|
selection | public UIBound selection(Code) | | The input component representing the actual selected value. Expected to be
either UIInput or UIInputMany.
|
fixupComponent | public void fixupComponent()(Code) | | |
make | public static UISelect make(UIContainer tofill, String ID, String[] values, String[] labels, String value, boolean willinput)(Code) | | Creates a selection control without a value binding, either
non-submitting, or suitable for use in a GET form
|
makeMultiple | public static UISelect makeMultiple(UIContainer tofill, String ID, String[] options, String valuebinding, String[] initvalue)(Code) | | Constructs a multiple selection control, where the submitted values are
identical with the rendered labels. Named differently to allow overload
where the final parameter is null.
|
setMessageKeys | public UISelect setMessageKeys()(Code) | | Sets the option labels for this selection control to be interpreted
as message keys, rather than as raw Strings.
|
|
|