| java.lang.Object com.ivata.mask.web.field.AttributesWriter
AttributesWriter | public class AttributesWriter (Code) | |
Stores and displays the attributes for an HTML field.
since: ivata masks 0.4 (2005-05-14) author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.8 $ |
AttributesWriter | public AttributesWriter(Field fieldParam)(Code) | |
Construct an attributes writer for the given field.
Parameters: fieldParam - definition of the field being written. |
AttributesWriter | public AttributesWriter(Field fieldParam, String propertyNameSuffixParam)(Code) | |
Construct an attributes writer for the given field.
Parameters: fieldParam - definition of the field being written. Parameters: propertyNameSuffixParam - used to build the property name of the field written, by thecombination "valueObject." +fieldParam.getFullId() + propertyNameSuffixParam . |
appendAttribute | final public void appendAttribute(String name, String value)(Code) | |
Append an attribute value, such as CSS class. It the
attribute value is set already, a space is added followed by the new
value.
Parameters: name - name of the attribute to set - usually class . Parameters: value - value to add to this attribute. See Also: AttributesWriter.setAttribute |
getAttribute | final public String getAttribute(String name)(Code) | |
Get an attribute value.
Parameters: name - name of the attribute to set. current value of this attribute. |
remove | final public void remove(String name)(Code) | |
Clear an attribute.
Parameters: name - name of the attribute to remove. |
setAttribute | final public void setAttribute(String name, String value)(Code) | |
Set an attribute value.
Parameters: name - name of the attribute to set. Parameters: value - current value of this attribute. |
toString | public String toString()(Code) | |
Output all the attribute names and values.
all the attribute names and values. |
|
|