|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bibalex.daf.commongui.datamodels.TreeDataModel.TreeObject
public class TreeDataModel.TreeObject
Represents an A tree Node object, maintains the node Type, DB ID representing this node, and value to be displayed.
| Field Summary | |
|---|---|
int |
id
The DB Identified of this node. |
java.lang.String |
parentName
The parent Name of this node. |
TreeDataModel.TreeObjectTypes |
treeObjectType
The type of the node, whether root, element or child. |
java.lang.String |
value
The value to be displayed. |
| Constructor Summary | |
|---|---|
TreeDataModel.TreeObject(int id,
java.lang.String value,
TreeDataModel.TreeObjectTypes treeObjectType)
Constructor |
|
TreeDataModel.TreeObject(int id,
java.lang.String value,
TreeDataModel.TreeObjectTypes treeObjectType,
java.lang.String parentName)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares 2 TreeObjects based on the DB ID in case they are of the same type. |
java.lang.String |
toString()
Implementing a toString method to override the one in Object, to be able to display the values on the tree properly. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int id
public java.lang.String value
public java.lang.String parentName
public TreeDataModel.TreeObjectTypes treeObjectType
| Constructor Detail |
|---|
public TreeDataModel.TreeObject(int id,
java.lang.String value,
TreeDataModel.TreeObjectTypes treeObjectType)
id - The DB Identified of this node.value - The value to be displayed.treeObjectType - The type of the node, whether root, element or child.
public TreeDataModel.TreeObject(int id,
java.lang.String value,
TreeDataModel.TreeObjectTypes treeObjectType,
java.lang.String parentName)
id - The DB Identified of this node.value - The value to be displayed.treeObjectType - The type of the node, whether root, element or child.parentName - The parent name of this Child.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to compare to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||