| java.lang.Object com.ivata.mask.web.field.DefaultFieldWriterFactory
DefaultFieldWriterFactory | public class DefaultFieldWriterFactory implements FieldWriterFactory(Code) | |
Use this utility class to generate an appropriate field writer for a given
mask and field.
since: ivata masks 0.1 (2004-05-14) author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.15 $ |
Method Summary | |
final protected String | getActionPage() Page of the Struts action to which we'll link value
objects to. | final public FieldWriter | getFieldWriter(HttpSession session, ValueObject valueObjectParam, Field fieldParam, Field subFieldParam, boolean hidden)
Get a field writer appropriate to the given field.
Parameters: session - Current HTTP session we are processing. Parameters: valueObjectParam - Field for which to return an appropriate field writer. Parameters: fieldParam - Field for which to return an appropriate field writer. Parameters: subFieldParam - Sub-field within the main field, if the field is a valueobject.but the value stored in a hidden field. Parameters: hidden - If true , overrides the field definition, and gets a writerfor a hidden field. | protected FieldWriter | newHiddenFieldWriter(Field fieldParam, FieldValueConvertor convertorParam, HTMLFormatter formatterParam) Override this method if you need a different field writer for hidden
fields. | protected FieldWriter | newPasswordFieldWriter(Field field, FieldValueConvertor convertor, HTMLFormatter formatterParam) Override this method if you need a different field writer for passwords. | protected FieldWriter | newTextAreaFieldWriter(Field field, FieldValueConvertor convertor, HTMLFormatter formatterParam) Override this method if you need a different field writer for text areas. | protected FieldWriter | newTextFieldWriter(Field fieldParam, FieldValueConvertor convertorParam, HTMLFormatter formatterParam) Override this method if you need a different field writer for text
fields. | protected FieldWriter | newValueObjectFieldWriter(Field fieldParam, String actionPageParam, Collection allValueObjectsParam, HTMLFormatter formatterParam, int listHeightParam, boolean multipleParam) Override this method if you need a different field writer for value
objects. |
DefaultFieldWriterFactory | public DefaultFieldWriterFactory(PersistenceManager persistenceManagerParam, String actionPageParam)(Code) | | Construct a writer factory.
Parameters: persistenceManagerParam - used to retrieve value objects for a value Parameters: actionPageParam - page of the action to which we'll link value objects to. |
getActionPage | final protected String getActionPage()(Code) | | Page of the Struts action to which we'll link value
objects to. This must be a full, webapp-relative link, starting with '/'.
Returns the actionPage. |
getFieldWriter | final public FieldWriter getFieldWriter(HttpSession session, ValueObject valueObjectParam, Field fieldParam, Field subFieldParam, boolean hidden) throws SystemException(Code) | |
Get a field writer appropriate to the given field.
Parameters: session - Current HTTP session we are processing. Parameters: valueObjectParam - Field for which to return an appropriate field writer. Parameters: fieldParam - Field for which to return an appropriate field writer. Parameters: subFieldParam - Sub-field within the main field, if the field is a valueobject.but the value stored in a hidden field. Parameters: hidden - If true , overrides the field definition, and gets a writerfor a hidden field. valid field writer for the field provided. throws: SystemException - thrown if the writer cannot be retrieved for any reason. |
|
|