net.sf.jzeno.echo
Class ConstructionList
java.lang.Object
net.sf.jzeno.echo.ConstructionList
- All Implemented Interfaces:
- java.io.Serializable
public class ConstructionList
- extends java.lang.Object
- implements java.io.Serializable
Simple helper class for easily creating lists of 4-element object groups that
match the constructor conventions for generic container components. The
resulting object array will contain groups (by 4) of propertyName, labelName,
constructionHints and override classes. This also solves the code formatting
problem that makes using long arrays.
Typical usage would be :
- Creating a new instance: ConstructionList cl = new ConstructionList();
- adding components : cl.add("bookingStatus","status","", null);
- using cl.toArray() to obtain an Object array for passing into a
constructor.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstructionList
public ConstructionList(ConstructionList copyMe)
ConstructionList
public ConstructionList()
add
public void add(java.lang.String propertyPath,
java.lang.String label,
java.lang.String constructionHints,
java.lang.Class viewerComponentClass)
add
public void add(java.lang.String propertyPath,
java.lang.String label,
java.lang.String viewerConstructionHints,
java.lang.Class viewerComponentClass,
java.lang.String editorPropertyPath,
java.lang.String editorConstructionHints,
java.lang.Class editorComponentClass)
size
public int size()
getLabel
public java.lang.String getLabel(int index)
getPrimaryPropertyPath
public java.lang.String getPrimaryPropertyPath(int index)
getSecondaryPropertyPath
public java.lang.String getSecondaryPropertyPath(int index)
getPrimaryConstructionHints
public java.lang.String getPrimaryConstructionHints(int index)
getSecondaryConstructionHints
public java.lang.String getSecondaryConstructionHints(int index)
getPrimaryComponentClass
public java.lang.Class getPrimaryComponentClass(int index)
getSecondaryComponentClass
public java.lang.Class getSecondaryComponentClass(int index)
secondarySpecified
public boolean secondarySpecified(int index)
toArray
public java.lang.Object[] toArray()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object