| com.ivata.mask.util.VeryLazyList
VeryLazyList | public class VeryLazyList extends LazyList (Code) | |
This factory class makes it simple to create a list of a primitive type (or
any type for which there is an ivata masks field value
convertor.
This list overrides set so it can be used to populate lists in
Struts forms.
since: ivata masks 1.0 (29-Sep-2005) author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.5 $ |
Method Summary | |
public static List | decorate(List list, Class targetClass) Create a vary lazy list.
Parameters: list - Refer to List.set. Parameters: targetClass - The class of object you want to add to the list.The class you provide must be a primitive type,or must have a constructor which accepts a string. | public static List | decorate(List list, Class targetClass, FieldValueConvertor convertor) Create a vary lazy list.
Parameters: list - Refer to List.set. Parameters: targetClass - The class of object you want to add to the list. Parameters: convertor - Used to create objects of the chosen class. | public synchronized Object | set(int indexParam, Object elementParam) Overridden to read the object's string value and convert it before adding
to the list. |
decorate | public static List decorate(List list, Class targetClass)(Code) | | Create a vary lazy list.
Parameters: list - Refer to List.set. Parameters: targetClass - The class of object you want to add to the list.The class you provide must be a primitive type,or must have a constructor which accepts a string. a new very lazy list. |
decorate | public static List decorate(List list, Class targetClass, FieldValueConvertor convertor)(Code) | | Create a vary lazy list.
Parameters: list - Refer to List.set. Parameters: targetClass - The class of object you want to add to the list. Parameters: convertor - Used to create objects of the chosen class. a new very lazy list. |
set | public synchronized Object set(int indexParam, Object elementParam)(Code) | | Overridden to read the object's string value and convert it before adding
to the list.
Parameters: indexParam - Refer to List.set. Parameters: elementParam - Refer to List.set.Refer to List.set. |
|
|