com.mentata.sg8
Class SG8NestAttribute
java.lang.Object
com.mentata.l3d.L3DAttribute
com.mentata.l3d.L3DDnAttribute
com.mentata.sg8.SG8DnAttribute
com.mentata.sg8.SG8NestAttribute
- All Implemented Interfaces:
- Comparator, SG8Attribute
- Direct Known Subclasses:
- SG8ReverseNestAttribute
- public class SG8NestAttribute
- extends SG8DnAttribute
A dn attribute displaying an additional field for use with SG8 objects.
For HTML output, values for this attribute type are translated to a list that nests the values of an additional attribute for each matching entry. An instance can represent a tree with recursive descent if the second attribute is also a nest attribute.
- Since:
- 0.7
- Author:
- Jon Roberts
|
Constructor Summary |
SG8NestAttribute(String object,
String nested)
Constructs a new nest attribute with a named target object and attribute. |
| Methods inherited from class com.mentata.sg8.SG8DnAttribute |
getHyperlink, getMailTo, getSeparator, getSG8Object, getSG8Target, getUpdateHTML, isAugmenting, isHTMLExceeded, processUpdateHTML, setAugmenting, setHTMLThreshold, setSeparator |
| Methods inherited from class com.mentata.l3d.L3DAttribute |
addValue, compare, getAttribute, getBind, getContext, getLabel, getLengthThreshold, getName, getObject, getObject, getPrerequisites, getSize, getThreshold, getValues, isBound, isExceeded, isGenerated, isMultivalue, isRequired, removeValue, setGenerated, setLabel, setLengthThreshold, setPrerequisites, setThreshold, setValues |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SG8NestAttribute
public SG8NestAttribute(String object,
String nested)
- Constructs a new nest attribute with a named target object and attribute.
- Parameters:
object - the name of the target objectnested - the name of the attribute to include as nested
getHTMLValues
public String[] getHTMLValues()
throws SG8Exception
- Returns HTML links with nested attributes.
- Specified by:
getHTMLValues in interface SG8Attribute- Overrides:
getHTMLValues in class SG8DnAttribute
- Returns:
- the values formatted as HTML unordered lists
- Throws:
SG8Exception - if the target object is improperly defined