|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.web.field.AttributesWriter
Stores and displays the attributes for an HTML field.
| Constructor Summary | |
AttributesWriter(com.ivata.mask.field.Field fieldParam)
Construct an attributes writer for the given field. |
|
AttributesWriter(com.ivata.mask.field.Field fieldParam,
java.lang.String propertyNameSuffixParam)
Construct an attributes writer for the given field. |
|
| Method Summary | |
void |
appendAttribute(java.lang.String name,
java.lang.String value)
Append an attribute value, such as CSS class. |
java.lang.String |
getAttribute(java.lang.String name)
Get an attribute value. |
void |
remove(java.lang.String name)
Clear an attribute. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Set an attribute value. |
java.lang.String |
toString()
Output all the attribute names and values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AttributesWriter(com.ivata.mask.field.Field fieldParam)
Construct an attributes writer for the given field.
fieldParam - definition of the field being written.
public AttributesWriter(com.ivata.mask.field.Field fieldParam,
java.lang.String propertyNameSuffixParam)
Construct an attributes writer for the given field.
fieldParam - definition of the field being written.propertyNameSuffixParam - used to build the property name of the field written, by the
combination "valueObject." +
fieldParam.getFullId() + propertyNameSuffixParam.| Method Detail |
public final void appendAttribute(java.lang.String name,
java.lang.String value)
Append an attribute value, such as CSS class. It the attribute value is set already, a space is added followed by the new value.
name - name of the attribute to set - usually class.value - value to add to this attribute.setAttribute(java.lang.String, java.lang.String)public final java.lang.String getAttribute(java.lang.String name)
Get an attribute value.
name - name of the attribute to set.
public final void remove(java.lang.String name)
Clear an attribute.
name - name of the attribute to remove.
public final void setAttribute(java.lang.String name,
java.lang.String value)
Set an attribute value.
name - name of the attribute to set.value - current value of this attribute.public java.lang.String toString()
Output all the attribute names and values.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||