com.ibm.commons.swt.data.controls.tabletree
Class MemberNode

java.lang.Object
  extended by com.ibm.commons.swt.data.controls.tabletree.TreeNode
      extended by com.ibm.commons.swt.data.controls.tabletree.MemberNode
Direct Known Subclasses:
ObjectCollectionNode, ObjectContainerNode, PrimitiveCollectionNode, PrimitiveContainerNode

public abstract class MemberNode
extends TreeNode

Used to represent an IMember item in the DCPropertyTree control.

See Also:
IMember, DCPropertyTree

Constructor Summary
MemberNode(TreeNode parent, java.lang.Object object, IMember member)
          Creates a new instance of this class.
 
Method Summary
 IMember getMember()
          Returns the member that this node represents
 java.lang.Object getObjectContainer()
          Returns the object being displayed by the tree.
 PropertyEditor getPropertyEditor()
          Returns a property editor that is associated with the current node.
protected  boolean isVisible()
          Returns whether or not the member associated with this node is visible
 
Methods inherited from class com.ibm.commons.swt.data.controls.tabletree.TreeNode
addChild, clearChildrenNode, dispose, fillItem, fillNode, getChildren, getDataChangeNotifier, getLoader, getParent, getPropertyTree, getRootNode, getTreeItem, isShowing, refreshTree, toEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemberNode

public MemberNode(TreeNode parent,
                  java.lang.Object object,
                  IMember member)
Creates a new instance of this class.

Parameters:
parent - the parent of the item being created
object - the object being represented in the tree
member - the member that is to be represented by this node
Method Detail

getObjectContainer

public java.lang.Object getObjectContainer()
Returns the object being displayed by the tree.

Returns:
an object that is being displayed in the tree in which this node resides

getMember

public IMember getMember()
Returns the member that this node represents

Returns:
an IMember

getPropertyEditor

public PropertyEditor getPropertyEditor()
Returns a property editor that is associated with the current node.

Returns:
null by default

isVisible

protected boolean isVisible()
Returns whether or not the member associated with this node is visible

Overrides:
isVisible in class TreeNode
Returns:
the visibility of the member