| java.lang.Object javax.servlet.jsp.tagext.TagSupport com.ivata.mask.web.tag.FieldTag
FieldTag | public class FieldTag extends TagSupport (Code) | |
Creates an input field, or displays the value for a field.
since: ivata masks 0.1 (2004-05-11) author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.14 $ |
Method Summary | |
public int | doStartTag()
Called when the tag is first encountered. | public Field | getField()
Field to be displayed. | public String | getFieldName()
Name of the field to be displayed. | public static synchronized FieldWriterFactory | getFieldWriterFactory(PageContext pageContext)
Get the field writer factory we'll be using to create field writers.
Parameters: pageContext - current tag page context, used to lookup the factoryattribute. | public Field | getSubField()
Sub-field within the field to be displayed. | public String | getSubFieldName()
Name of the sub-field, within the field to be displayed. | public ValueObject | getValueObject()
Value object to display/edit. | public boolean | isDisabled()
If true , the field will not allow user entry. | public boolean | isHidden()
If true , overrides the hidden value of the field definition,
to make this a hidden field. | public void | setDisabled(boolean disabledParam)
If true , the field will not allow user entry. | final public void | setField(Field fieldParam)
Stores the identifier of the field within this group to be displayed. | public void | setFieldName(String fieldNameParam)
Name of the field to be displayed. | public void | setHidden(boolean hiddenParam)
If true , overrides the hidden value of the field definition,
to make this a hidden field. | public void | setSubField(Field fieldParam)
Sub-field within the field to be displayed. | public void | setSubFieldName(String subFieldNameParam)
Name of the sub-field, within the field to be displayed. | public void | setValueObject(ValueObject object)
Value object to display/edit. |
getField | public Field getField()(Code) | |
Field to be displayed.
field to be displayed. |
getFieldName | public String getFieldName()(Code) | |
Name of the field to be displayed. You may specify this instead of the
field, and the appropriate field will be retrieved from the mask.
Returns the fieldName. |
getFieldWriterFactory | public static synchronized FieldWriterFactory getFieldWriterFactory(PageContext pageContext) throws JspException(Code) | |
Get the field writer factory we'll be using to create field writers.
Parameters: pageContext - current tag page context, used to lookup the factoryattribute. field writer factory, used to create field writers. throws: JspException - if the field writer factory has not been set to anapplication scope attribute called FieldWriterFactory.APPLICATION_ATTRIBUTEFieldWriterFactory.APPLICATION_ATTRIBUTE. |
getSubField | public Field getSubField()(Code) | |
Sub-field within the field to be displayed.
Sub-field within the field to be displayed. |
getSubFieldName | public String getSubFieldName()(Code) | |
Name of the sub-field, within the field to be displayed. You may specify
this instead of the sub-field, and the appropriate field will be
retrieved from the mask.
Returns the subFieldName. |
getValueObject | public ValueObject getValueObject()(Code) | |
Value object to display/edit.
value object to display/edit. |
isDisabled | public boolean isDisabled()(Code) | |
If true , the field will not allow user entry.
Returns whether or not the field is disabled. |
isHidden | public boolean isHidden()(Code) | |
If true , overrides the hidden value of the field definition,
to make this a hidden field.
Returns whether or not the field definition is overridden ashidden. See Also: Field.isHidden |
setDisabled | public void setDisabled(boolean disabledParam)(Code) | |
If true , the field will not allow user entry.
Parameters: disabledParam - Set whether or not the field is disabled. |
setField | final public void setField(Field fieldParam)(Code) | |
Stores the identifier of the field within this group to be displayed.
Parameters: fieldParam - definition of the field which this tag is going todisplay/edit. |
setFieldName | public void setFieldName(String fieldNameParam)(Code) | |
Name of the field to be displayed. You may specify this instead of the
field, and the appropriate field will be retrieved from the mask.
Parameters: fieldNameParam - Refer to FieldTag.getfieldName. |
setHidden | public void setHidden(boolean hiddenParam)(Code) | |
If true , overrides the hidden value of the field definition,
to make this a hidden field.
Parameters: hiddenParam - Set to true to hide the field, overridingany setting in the field definition. See Also: Field.isHidden |
setSubField | public void setSubField(Field fieldParam)(Code) | |
Sub-field within the field to be displayed.
Parameters: fieldParam - Sub-field within the field to be displayed. |
setSubFieldName | public void setSubFieldName(String subFieldNameParam)(Code) | |
Name of the sub-field, within the field to be displayed. You may specify
this instead of the sub-field, and the appropriate field will be
retrieved from the mask.
Parameters: subFieldNameParam - Refer to FieldTag.getSubFieldName. |
setValueObject | public void setValueObject(ValueObject object)(Code) | |
Value object to display/edit.
Parameters: object - value object to display/edit. |
|
|