| |
|
| org.araneaframework.uilib.form.control.BaseControl org.araneaframework.uilib.form.control.StringArrayRequestControl org.araneaframework.uilib.form.control.StringRequestControl org.araneaframework.uilib.form.control.EmptyStringNullableControl org.araneaframework.uilib.form.control.StringValueControl org.araneaframework.uilib.form.control.SelectControl
SelectControl | public class SelectControl extends StringValueControl implements DisplayItemContainer(Code) | | This class represents a selectbox (aka dropdown) control.
author: Jevgeni Kabanov (ekabanov at araneaframework dot org) |
Method Summary | |
public void | addDisplayItems(Collection beanCollection, String valueName, String labelName) Adds the display-items corresponding to the given value and label fields in Value Object. | public void | addFromBeanCollection(Collection beanCollection, String valueName, String displayStringName) Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to this
SelectControl . | public void | addFromBeanCollection(Collection beanCollection, String valueName, Transformer displayTransformer) Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to this
SelectControl . | public void | addFromBeanCollection(Collection beanCollection, Transformer valueTransformer, String displayStringName) Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to this
SelectControl . | public void | addFromBeanCollection(Collection beanCollection, Transformer valueTransformer, Transformer displayTransformer) Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to this
SelectControl . | public void | addItem(DisplayItem item) Adds a select-item to the element. | public void | addItems(Collection items) Adds a display-items to the element. | public void | clearItems() Clears the list of select-items. | public List | getDisplayItems() | public DisplayItem | getSelectedItem() Returns
DisplayItem corresponding to selected element. | public int | getValueIndex(String value) | public Object | getViewModel() Returns
ViewModel . | protected String | preprocessRequestParameter(String parameterValue) | protected void | validateNotNull() Controls that the value submitted by the user is found in the select
items list. |
addDisplayItems | public void addDisplayItems(Collection beanCollection, String valueName, String labelName)(Code) | | Adds the display-items corresponding to the given value and label fields in Value Object.
Parameters: beanCollection - Collection of beans, may not contain null . Parameters: valueName - the name of the Value Object field corresponding to the value of the selectitem. Parameters: labelName - the name of the Value Object field corresponding to the label of the selectitem.SelectControl.addFromBeanCollection(CollectionStringString) |
addFromBeanCollection | public void addFromBeanCollection(Collection beanCollection, String valueName, String displayStringName)(Code) | | Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to this
SelectControl .
Parameters: beanCollection - Collection of beans Parameters: valueName - name of bean field that determines DisplayItems value Parameters: displayStringName - name of bean field that determines DisplayItems displayString since: 1.1 |
addFromBeanCollection | public void addFromBeanCollection(Collection beanCollection, String valueName, Transformer displayTransformer)(Code) | | Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to this
SelectControl .
Parameters: beanCollection - Collection of beans Parameters: valueName - name of bean field that determines DisplayItems value Parameters: displayTransformer - Transformer producing label (DisplayItems displayString ) for a bean since: 1.1 |
addFromBeanCollection | public void addFromBeanCollection(Collection beanCollection, Transformer valueTransformer, String displayStringName)(Code) | | Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to this
SelectControl .
Parameters: beanCollection - Collection of beans Parameters: valueTransformer - Transformer producing value (DisplayItem.getValue) from a bean. Parameters: displayStringName - name of bean field that determines DisplayItems displayString since: 1.1 |
addFromBeanCollection | public void addFromBeanCollection(Collection beanCollection, Transformer valueTransformer, Transformer displayTransformer)(Code) | | Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to this
SelectControl .
Parameters: beanCollection - Collection of beans Parameters: valueTransformer - Transformer producing value (DisplayItem.getValue) from a bean. Parameters: displayTransformer - Transformer producing label (displayString) from a bean since: 1.1 |
addItem | public void addItem(DisplayItem item)(Code) | | Adds a select-item to the element.
Parameters: item - the item to be added. |
addItems | public void addItems(Collection items)(Code) | | Adds a display-items to the element.
Parameters: items - Collection<DisplayItem> the items to be added. |
clearItems | public void clearItems()(Code) | | Clears the list of select-items.
|
getDisplayItems | public List getDisplayItems()(Code) | | |
getViewModel | public Object getViewModel()(Code) | | Returns
ViewModel .
ViewModel. |
preprocessRequestParameter | protected String preprocessRequestParameter(String parameterValue)(Code) | | |
validateNotNull | protected void validateNotNull()(Code) | | Controls that the value submitted by the user is found in the select
items list.
|
|
|
|