com.mentata.sg8
Class SG8TextAttribute
java.lang.Object
com.mentata.l3d.L3DAttribute
com.mentata.sg8.SG8StringAttribute
com.mentata.sg8.SG8TextAttribute
- All Implemented Interfaces:
- Comparator, SG8Attribute
- public class SG8TextAttribute
- extends SG8StringAttribute
A long text valued attribute for use with SG8 objects.
This attribute type uses textentry boxes with a defined number of rows in its update form elements.
- Since:
- 0.7
- Author:
- Jon Roberts
|
Constructor Summary |
SG8TextAttribute()
Constructs an empty text attribute. |
SG8TextAttribute(int rows)
Constructs an empty text attribute updated with a specific number of rows. |
| Methods inherited from class com.mentata.l3d.L3DAttribute |
addValue, compare, getAttribute, getBind, getContext, getLabel, getLengthThreshold, getName, getObject, getObject, getPrerequisites, getShortValues, getSize, getThreshold, getValues, initialize, isBound, isExceeded, isGenerated, isLengthExceeded, isMultivalue, isRequired, removeValue, same, setGenerated, setLabel, setLengthThreshold, setPrerequisites, setThreshold, setValues |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SG8TextAttribute
public SG8TextAttribute()
- Constructs an empty text attribute.
SG8TextAttribute
public SG8TextAttribute(int rows)
- Constructs an empty text attribute updated with a specific number of rows.
- Parameters:
rows - the number of rows for update text boxes
getUpdateHTML
public String getUpdateHTML()
throws SG8Exception
- Returns HTML form elements for modifying the attribute.
- Specified by:
getUpdateHTML in interface SG8Attribute- Overrides:
getUpdateHTML in class SG8StringAttribute
- Returns:
- HTML textarea elements for updating or adding values
- Throws:
SG8Exception - if the attribute is generated