| com.ivata.mask.web.field.FieldWriter
All known Subclasses: com.ivata.mask.web.field.text.TextFieldWriter, com.ivata.mask.web.field.text.TextAreaFieldWriter, com.ivata.mask.web.field.valueobject.ValueObjectFieldWriter,
FieldWriter | public interface FieldWriter (Code) | |
Each field writer is responsble for writing out a single field value, given
the value object.
since: ivata masks 0.4 (2004-05-14) author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.5 $ |
Method Summary | |
void | removeAttribute(String name) Clear an attribute on the field tag. | void | setAttribute(String name, String value) Set an attribute on the field tag. | String | write(PageContext pageContext, ValueObject valueObject, boolean displayOnly)
Write out the appropriate field value, for the value object provided.
Parameters: pageContext - current tag page context to write with. Parameters: valueObject - value object whose field value should be displayed. Parameters: displayOnly - if true , only the field value should be shown,otherwise an input field is displayed. |
removeAttribute | void removeAttribute(String name)(Code) | | Clear an attribute on the field tag. It will no longer appear at all.
Parameters: name - name of the attribute to clear. |
setAttribute | void setAttribute(String name, String value)(Code) | | Set an attribute on the field tag.
Parameters: name - name of the attribute to set. Parameters: value - new value to set the attribute to. |
write | String write(PageContext pageContext, ValueObject valueObject, boolean displayOnly)(Code) | |
Write out the appropriate field value, for the value object provided.
Parameters: pageContext - current tag page context to write with. Parameters: valueObject - value object whose field value should be displayed. Parameters: displayOnly - if true , only the field value should be shown,otherwise an input field is displayed. appropriate representation of the field value inHTML . |
|
|