| java.lang.Object com.ivata.mask.web.field.valueobject.ValueObjectFieldWriter
ValueObjectFieldWriter | public class ValueObjectFieldWriter implements FieldWriter(Code) | |
This writer is used to display links to other value objects.
since: ivata masks 0.2 (2004-05-14) author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.12 $ |
CSS_COMBO | final public static String CSS_COMBO(Code) | |
This is the style class used for combo (single choice) lists.
|
CSS_LIST | final public static String CSS_LIST(Code) | |
This is the style class used for multiple choice lists.
|
DEFAULT_DISPLAY_VALUE | final public static String DEFAULT_DISPLAY_VALUE(Code) | |
This is the value which is output as a default. TODO: i18n
|
DEFAULT_VALUE | final public static String DEFAULT_VALUE(Code) | |
This is the value which is output as a default. TODO: i18n
|
NEW_DISPLAY_VALUE | final public static String NEW_DISPLAY_VALUE(Code) | |
This is the value which is output as a new entry. TODO: i18n
|
ValueObjectFieldWriter | public ValueObjectFieldWriter(Field fieldParam, String actionPageParam, Collection allValueObjectsParam, HTMLFormatter formatterParam, int listHeightParam, boolean multipleParam)(Code) | |
Construct a field writer.
Parameters: fieldParam - defines the field to be displayed. Parameters: actionPageParam - Refer to DefaultFieldWriter.getActionPage. Parameters: allValueObjectsParam - Refer to ValueObjectFieldWriter.getAllValueObjects. Parameters: formatterParam - Refer to ValueObjectFieldWriter.getFormatter. Parameters: listHeightParam - set as the size attribute in the field. Parameters: multipleParam - if true , then the user can make more than oneselection. |
getAllValueObjects | final protected Collection getAllValueObjects()(Code) | | All possible value objects to display in a list - for a choice. The user
will be given the chance to choose from only these values.
Returns the all value objects as a Collection ofValueObject instances. |
getAttributesWriter | final protected AttributesWriter getAttributesWriter()(Code) | |
Access the attributes writer, which is responsible for converting the
field attributes into text.
attributes writer. |
getField | final protected Field getField()(Code) | |
Access the field to be displayed.
field to be displayed. |
getFormatter | final protected HTMLFormatter getFormatter()(Code) | | Used to format the displayed, usually ensuring line breaks are converted
into HTML.
Returns the formatter. |
removeAttribute | public void removeAttribute(String name)(Code) | | Parameters: name - |
setAttribute | public void setAttribute(String name, String value)(Code) | | Parameters: name - Parameters: value - |
write | final public String write(PageContext pageContextParam, ValueObject valueObjectParam, boolean displayOnlyParam)(Code) | | Parameters: pageContextParam - Parameters: valueObjectParam - Parameters: displayOnlyParam - |
|
|