| java.lang.Object org.araneaframework.uilib.util.DisplayItemUtil
Method Summary | |
public static void | addItemsFromBeanCollection(DisplayItemContainer displayItemContainer, Collection beanCollection, String valueName, String displayStringName) Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to provided displayItemContainer . | public static void | addItemsFromBeanCollection(DisplayItemContainer displayItemContainer, Collection beanCollection, String valueName, Transformer displayTransformer) Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to provided displayItemContainer . | public static void | addItemsFromBeanCollection(DisplayItemContainer displayItemContainer, Collection beanCollection, Transformer valueTransformer, String displayStringName) Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to provided displayItemContainer . | public static void | addItemsFromBeanCollection(DisplayItemContainer displayItemContainer, Collection beanCollection, Transformer valueTransformer, Transformer displayTransformer) Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to provided displayItemContainer . | public static String | getLabelForValue(Collection displayItems, String value) Returns display item label by the specified value.
Parameters: displayItems - display items. Parameters: value - display item value. | public static int | getValueIndex(List displayItems, String value) Returns display item index by the specified value.
Parameters: displayItems - display items. Parameters: value - display item value. | public static boolean | isValueInItems(DisplayItemContainer displayItemContainer, String value) Returns whether value is found in the select items.
Parameters: value - the value that is controlled. | public static boolean | isValueInItems(Collection displayItems, String value) Returns whether value is found in the select items.
Parameters: value - the value that is controlled. |
addItemsFromBeanCollection | public static void addItemsFromBeanCollection(DisplayItemContainer displayItemContainer, Collection beanCollection, String valueName, String displayStringName)(Code) | | Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to provided displayItemContainer .
Parameters: displayItemContainer - the container for created DisplayItems Parameters: beanCollection - Collection of beans, may not contain null . Parameters: valueName - the name of the bean field corresponding to the (submitted) value of the select item. Parameters: displayStringName - the name of the bean field corresponding to the displayed string (label) of the select item. |
addItemsFromBeanCollection | public static void addItemsFromBeanCollection(DisplayItemContainer displayItemContainer, Collection beanCollection, String valueName, Transformer displayTransformer)(Code) | | Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to provided displayItemContainer .
Parameters: displayItemContainer - the container for created DisplayItems Parameters: beanCollection - Collection of beans, may not contain null . Parameters: valueName - the name of the bean field corresponding to the (submitted) value of the select item. Parameters: displayTransformer - Transformer producing label (displayString) from a bean since: 1.1 |
addItemsFromBeanCollection | public static void addItemsFromBeanCollection(DisplayItemContainer displayItemContainer, Collection beanCollection, Transformer valueTransformer, String displayStringName)(Code) | | Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to provided displayItemContainer .
Parameters: displayItemContainer - the container for created DisplayItems Parameters: beanCollection - Collection of beans, may not contain null . Parameters: valueName - the name of the bean field corresponding to the (submitted) value of the select item. Parameters: displayStringName - the name of the bean field corresponding to the displayed string (label) of the select item. Parameters: valueTransformer - Transformer producing value (DisplayItem.getValue) from a bean. since: 1.1 |
addItemsFromBeanCollection | public static void addItemsFromBeanCollection(DisplayItemContainer displayItemContainer, Collection beanCollection, Transformer valueTransformer, Transformer displayTransformer)(Code) | | Creates
DisplayItem s corresponding to beans in beanCollection and adds
these to provided displayItemContainer .
Parameters: displayItemContainer - the container for created DisplayItems Parameters: beanCollection - Collection of beans, may not contain null . Parameters: valueName - the name of the bean field corresponding to the (submitted) value of the select item. Parameters: valueTransformer - Transformer producing value (DisplayItem.getValue) from a bean. Parameters: displayTransformer - Transformer producing label (displayString) from a bean since: 1.1 |
getLabelForValue | public static String getLabelForValue(Collection displayItems, String value)(Code) | | Returns display item label by the specified value.
Parameters: displayItems - display items. Parameters: value - display item value. display item label by the specified value. |
getValueIndex | public static int getValueIndex(List displayItems, String value)(Code) | | Returns display item index by the specified value.
Parameters: displayItems - display items. Parameters: value - display item value. display item index by the specified value. |
isValueInItems | public static boolean isValueInItems(DisplayItemContainer displayItemContainer, String value)(Code) | | Returns whether value is found in the select items.
Parameters: value - the value that is controlled. whether value is found in the select items. |
isValueInItems | public static boolean isValueInItems(Collection displayItems, String value)(Code) | | Returns whether value is found in the select items.
Parameters: value - the value that is controlled. whether value is found in the select items. |
|
|