|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.swfit.core.tree.TreeElement
A class for sorting and a policy for naming within a tree.
| Field Summary | |
static java.lang.String |
CODE
|
static java.lang.String |
NUM_OWNED
|
static java.lang.String |
OWNED
|
static java.lang.String |
SEPARATOR
|
| Constructor Summary | |
protected |
TreeElement(java.lang.String name,
boolean can_own)
Build a TreeElement |
| Method Summary | |
abstract java.lang.String |
code()
Describe this TreeElement in a way that will make it possible to rebuild the tree |
java.lang.String |
codeName()
The name of the element in a form dependent on the position in the tree. |
java.lang.String |
explainer()
Some rendering data (for forms etc.) |
boolean |
horizontal()
Should the collection of fields be rendered in a "horizontal way"? |
int |
index()
The index of the element |
java.lang.String |
name()
The name of the element |
TreeBranch |
owner()
The owner of this TreeElement |
void |
setExplainer(java.lang.String explainer)
|
void |
setHorizontal(boolean horizontal)
|
void |
setIndex(int index)
|
void |
setOwner(TreeBranch owner)
|
static TreeBranch |
toTreeBranch(java.lang.Object object)
|
static TreeElement |
toTreeElement(java.lang.Object object)
Mainly used by the subclass TreeBranch |
static TreeLeaf |
toTreeLeaf(java.lang.Object object)
|
protected java.lang.String |
treeName()
The name of the element in a form dependent on the position in the tree. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String SEPARATOR
public static final java.lang.String CODE
public static final java.lang.String NUM_OWNED
public static final java.lang.String OWNED
| Constructor Detail |
protected TreeElement(java.lang.String name,
boolean can_own)
| Method Detail |
public final java.lang.String name()
protected final java.lang.String treeName()
public final java.lang.String codeName()
public TreeBranch owner()
public void setOwner(TreeBranch owner)
public final int index()
public final void setIndex(int index)
public abstract java.lang.String code()
public static final TreeElement toTreeElement(java.lang.Object object)
public static final TreeBranch toTreeBranch(java.lang.Object object)
public static final TreeLeaf toTreeLeaf(java.lang.Object object)
public final java.lang.String explainer()
Should the element be accompanied by an explaining text ?
public final void setExplainer(java.lang.String explainer)
public final boolean horizontal()
public final void setHorizontal(boolean horizontal)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||