ALBPM Process API

fuego.papi.utils
Class TreeView

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

public class TreeView
extends Object
implements Serializable

See Also:
Serialized Form

Nested Class Summary
 class TreeView.NodeView
           
static interface TreeView.ViewComparator
           
static interface TreeView.ViewFilter
           
 
Constructor Summary
TreeView(ProcessServiceSession processServiceSession)
          Creates a new TreeNode
TreeView(ProcessServiceSession processServiceSession, TreeView.ViewComparator comparator)
          Creates a new TreeNode
TreeView(ProcessServiceSession processServiceSession, TreeView.ViewComparator comparator, TreeView.ViewFilter viewFilter)
          Creates a new TreeNode
 
Method Summary
 void collapse()
          Collapses the tree, showing only the root nodes.
 void expand()
          Expands the tree, setting visible the root nodes.
 void expandAll()
          Expands the tree, setting visible all nodes.
 SortedSet<TreeView.NodeView> getRoot()
          Returns a list of NodeView with all nodes which do not have parent.
 TreeView.ViewComparator getViewComparator()
          Returns the coparator used by the tree to sort the views
 void reload(ProcessServiceSession processServiceSession)
          Regenerates the tree, reloading the views from the user session.
 void setViewComparator(TreeView.ViewComparator viewComparator)
          Sets the tree comparator to sort the views
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeView

public TreeView(ProcessServiceSession processServiceSession)
Creates a new TreeNode

Parameters:
processServiceSession - The user session to obtain views.

TreeView

public TreeView(ProcessServiceSession processServiceSession,
                TreeView.ViewComparator comparator)
Creates a new TreeNode

Parameters:
processServiceSession - The user session to obtain views.
comparator - The comparator to sort the views

TreeView

public TreeView(ProcessServiceSession processServiceSession,
                TreeView.ViewComparator comparator,
                TreeView.ViewFilter viewFilter)
Creates a new TreeNode

Parameters:
processServiceSession - The user session to obtain views.
comparator - The comparator to sort the views
viewFilter - The view filter to check the views to accept
Method Detail

setViewComparator

public void setViewComparator(TreeView.ViewComparator viewComparator)
Sets the tree comparator to sort the views

Parameters:
viewComparator - The comparator to sort the views

getViewComparator

public TreeView.ViewComparator getViewComparator()
Returns the coparator used by the tree to sort the views

Returns:
The comparator used by the tree to sort the views

getRoot

public SortedSet<TreeView.NodeView> getRoot()
Returns a list of NodeView with all nodes which do not have parent.

Returns:
a List of TreeView.NodeView.

collapse

public void collapse()
Collapses the tree, showing only the root nodes.


expand

public void expand()
Expands the tree, setting visible the root nodes.


expandAll

public void expandAll()
Expands the tree, setting visible all nodes.


reload

public void reload(ProcessServiceSession processServiceSession)
Regenerates the tree, reloading the views from the user session.

Parameters:
processServiceSession - The user session to reload the tree.

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved