|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.swing.components.tree.DefaultTreeNode
org.openbp.cockpit.plugins.finder.treemodel.GenericNode
public class GenericNode
Default node in the generic model.
| Field Summary | |
|---|---|
protected java.lang.Object |
nodeData
Data object that is represented by the node. |
protected NodeMapper |
nodeMapper
Mapper of the node. |
| Fields inherited from class org.openbp.swing.components.tree.DefaultTreeNode |
|---|
parent |
| Constructor Summary | |
|---|---|
GenericNode()
|
|
| Method Summary | |
|---|---|
void |
addChild(GenericNode child,
Strategy strategy)
Add a new child to the node. |
void |
addProperty(java.lang.String key,
java.lang.Object value)
Add a property to the node |
NodeMapper |
getNodeMapper()
Get the node mapper. |
java.lang.Object |
getProperty(java.lang.String key)
Get the property of the node |
PropertyNode |
getPropertyNode(java.lang.Object propertyData)
Get the group with a special data object |
void |
setNodeMapper(NodeMapper nodeMapper)
Set the node mapper. |
java.lang.String |
toString()
Map the call to the node mapper. |
| Methods inherited from class org.openbp.swing.components.tree.DefaultTreeNode |
|---|
addChild, children, clearChilds, getAllowsChildren, getChildAt, getChildCount, getChildList, getIndex, getParent, insertChild, isLeaf, removeChild, setChildList, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected NodeMapper nodeMapper
protected java.lang.Object nodeData
| Constructor Detail |
|---|
public GenericNode()
| Method Detail |
|---|
public void setNodeMapper(NodeMapper nodeMapper)
nodeMapper - The node mapperpublic NodeMapper getNodeMapper()
public void addProperty(java.lang.String key,
java.lang.Object value)
key - The key of the propertyvalue - The valuepublic java.lang.Object getProperty(java.lang.String key)
key - The key of the property
public PropertyNode getPropertyNode(java.lang.Object propertyData)
propertyData - The special data object
public void addChild(GenericNode child,
Strategy strategy)
child - The child to addstrategy - The strategy used by the modelpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||