java.lang .Object com.ivata.groupware.admin.setting.struts .FieldInfo FieldInfo public class FieldInfo (Code) Used to set additional information about a setting field's display character.
since: ivata groupware 1.0 (21-Sep-2005)author: Colin MacLeod version: $Revision: 1.3 $
Field Summary public static String TYPE_BOOLEAN Indiates the field should be generated as a boolean (checkbox).public static String TYPE_DATE_FORMAT Indiates the field should be generated as a date format.public static String TYPE_LABEL Indiates a label from the message resources.public static String TYPE_SELECT Indiates the field should be generated as a selection of values.public static String TYPE_TEXT Indiates the field should be generated as a default text field (default).public static String TYPE_TEXTAREA Indiates the field should be generated as a large text area.public static String TYPE_TIMEZONE Indiates the field should be generated as a timezone - a list of all
available timezones is shown.
Constructor Summary public FieldInfo () Construct a field info instance with default text type.public FieldInfo (String typeParam) Construct a field info instance with the given type.public FieldInfo (String typeParam, List dataParam) Construct a field info instance with the given type and default data.
Method Summary public List getData () For a date field, this stores sample formats; for a select fields, it
stores LabelValueBean instances for the select options.public String getType () Indicates the type of field.
TYPE_BOOLEAN public static String TYPE_BOOLEAN(Code) Indiates the field should be generated as a boolean (checkbox).
TYPE_DATE_FORMAT public static String TYPE_DATE_FORMAT(Code) Indiates the field should be generated as a date format. The
data element will contain a list of String
instances, with default values.
TYPE_LABEL public static String TYPE_LABEL(Code) Indiates a label from the message resources.
TYPE_SELECT public static String TYPE_SELECT(Code) Indiates the field should be generated as a selection of values. The
data element will contain a list of LabelValueBean
instances.
TYPE_TEXT public static String TYPE_TEXT(Code) Indiates the field should be generated as a default text field (default).
TYPE_TEXTAREA public static String TYPE_TEXTAREA(Code) Indiates the field should be generated as a large text area.
TYPE_TIMEZONE public static String TYPE_TIMEZONE(Code) Indiates the field should be generated as a timezone - a list of all
available timezones is shown.
FieldInfo public FieldInfo()(Code) Construct a field info instance with default text type.
FieldInfo public FieldInfo(String typeParam)(Code) Construct a field info instance with the given type.
Parameters: typeParam - Refer to FieldInfo.getType .
getData public List getData()(Code) For a date field, this stores sample formats; for a select fields, it
stores LabelValueBean instances for the select options.
Returns the data.
getType public String getType()(Code) Indicates the type of field. Set to one of the TYPE... constants.
Returns the type.