org.openbp.cockpit.plugins.finder.treemodel
Class PropertyNode

java.lang.Object
  extended by org.openbp.swing.components.tree.DefaultTreeNode
      extended by org.openbp.cockpit.plugins.finder.treemodel.GenericNode
          extended by org.openbp.cockpit.plugins.finder.treemodel.PropertyNode
All Implemented Interfaces:
javax.swing.tree.TreeNode

public class PropertyNode
extends GenericNode

Node for a group in the tree.

Author:
Baumgartner Michael

Field Summary
 
Fields inherited from class org.openbp.cockpit.plugins.finder.treemodel.GenericNode
nodeData, nodeMapper
 
Fields inherited from class org.openbp.swing.components.tree.DefaultTreeNode
parent
 
Constructor Summary
PropertyNode()
           
 
Method Summary
 int getLevel()
          Get the level of the group.
 java.lang.Object getPropertyData()
          Get the data of the group.
 PropertyNode getPropertyNode(java.lang.Object data)
          Get the group with a special data object
 void setLevel(int level)
          Set the level of the group.
 void setPropertyData(java.lang.Object propertyData)
          Set the data of the group.
 
Methods inherited from class org.openbp.cockpit.plugins.finder.treemodel.GenericNode
addChild, addProperty, getNodeMapper, getProperty, setNodeMapper, toString
 
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
 

Constructor Detail

PropertyNode

public PropertyNode()
Method Detail

getPropertyData

public java.lang.Object getPropertyData()
Get the data of the group.

Returns:
the data

setPropertyData

public void setPropertyData(java.lang.Object propertyData)
Set the data of the group.

Parameters:
propertyData - The data

getLevel

public int getLevel()
Get the level of the group.

Returns:
the level

setLevel

public void setLevel(int level)
Set the level of the group.

Parameters:
level - The level

getPropertyNode

public PropertyNode getPropertyNode(java.lang.Object data)
Description copied from class: GenericNode
Get the group with a special data object

Overrides:
getPropertyNode in class GenericNode
Parameters:
data - The special data object
Returns:
The found group or null


Copyright © 2011. All Rights Reserved.