ALBPM Process API

fuego.papi.utils
Class TreeView.NodeView

java.lang.Object
  extended by fuego.papi.utils.TreeView.NodeView
All Implemented Interfaces:
Serializable
Enclosing class:
TreeView

public class TreeView.NodeView
extends Object
implements Serializable

See Also:
Serialized Form

Method Summary
 void collapse()
          Collapses this node, showing this node and hiddem its children.
 boolean equals(Object object)
          Indicates whether some other object is "equal to" this one.
 void expand()
          Expands this node, showing this node and its children.
 void expandAll()
          Expands this node, showing this node and its children recursively.
 SortedSet<TreeView.NodeView> getChildren()
          Returns a list with all child of the node.
 String getId()
          Returns the id of the node.
 String getLabel(Locale locale)
          Returns the label for a given locale
 TreeView.NodeView getParent()
          Returns the parent node of the current node.
 View getView()
          Returns the View contained on this node.
 boolean hasAssociatedView()
          Returns if this node has an associated view.
 boolean hasChildren()
          Returns if this node has children or not.
 int hashCode()
          Returns a hash code value for the object.
 boolean isLeaf()
          Returns if this node is a leaf or not.
 boolean isRoot()
          Returns if this node is a root or not.
 boolean isVisible()
          Returns if this node is visible or not.
 void setVisible(boolean visible)
          Sets if this node is visible or not.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public String getId()
Returns the id of the node.

Returns:
id of the node

getParent

public TreeView.NodeView getParent()
Returns the parent node of the current node.

Returns:
The parent node of the current node.

getChildren

public SortedSet<TreeView.NodeView> getChildren()
Returns a list with all child of the node.

Returns:
a List of TreeView.NodeView.

hasChildren

public boolean hasChildren()
Returns if this node has children or not.

Returns:
true if the node has children

getView

public View getView()
Returns the View contained on this node.

Returns:
a View

isLeaf

public boolean isLeaf()
Returns if this node is a leaf or not.

Returns:
True if this node does not have childern.

isRoot

public boolean isRoot()
Returns if this node is a root or not.

Returns:
True if this node does not have parent.

isVisible

public boolean isVisible()
Returns if this node is visible or not.

Returns:
true if the node is visible

getLabel

public String getLabel(Locale locale)
Returns the label for a given locale

Parameters:
locale - locale of the label
Returns:
The label of the node in the given locale.

hasAssociatedView

public boolean hasAssociatedView()
Returns if this node has an associated view.

Returns:
true if the node has an associated view.

setVisible

public void setVisible(boolean visible)
Sets if this node is visible or not.

Parameters:
visible - True if this node is visible.

collapse

public void collapse()
Collapses this node, showing this node and hiddem its children.


expand

public void expand()
Expands this node, showing this node and its children.


expandAll

public void expandAll()
Expands this node, showing this node and its children recursively.


equals

public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
object - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved