Business Objects
Quark Platform Documentation
Version 1.7.1_0
Business Objects

org.openquark.gems.client
Class ArgumentTreeModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by org.openquark.gems.client.ArgumentTreeModel
All Implemented Interfaces:
Serializable, TreeModel

public class ArgumentTreeModel
extends DefaultTreeModel

The TreeModel class used by the ArguementTree.

Author:
Edward Lam
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Method Summary
 CollectorGem getDisplayedCollector()
           
 boolean getDisplayUnusedArguments()
           
 GemGraph getGemGraph()
           
static List<CollectorGem> getSortedCollectorList(Set<CollectorGem> collectorSet)
          Sort a set of collectors by unqualified name.
 CollectorGem getTargetCollectorGem()
           
 void setCollectorToDisplay(CollectorGem collectorToDisplay)
          Change the collector which is the focus of the argument tree.
 void setDisplayUnusedArguments(boolean displayUnusedArguments)
           
 void valueForPathChanged(TreePath path, Object newValue)
           Override so that commits for arguments in run mode repopulate the tree.
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGemGraph

public GemGraph getGemGraph()
Returns:
the gem graph upon which this model is based.

getTargetCollectorGem

public CollectorGem getTargetCollectorGem()
Returns:
the target collector gem for the model's gem graph.

valueForPathChanged

public void valueForPathChanged(TreePath path,
                                Object newValue)
Override so that commits for arguments in run mode repopulate the tree.

Specified by:
valueForPathChanged in interface TreeModel
Overrides:
valueForPathChanged in class DefaultTreeModel

getSortedCollectorList

public static List<CollectorGem> getSortedCollectorList(Set<CollectorGem> collectorSet)
Sort a set of collectors by unqualified name.

Parameters:
collectorSet - the set of collectors to sort.
Returns:
the collectors in collectorSet, sorted by unqualified name.

getDisplayedCollector

public CollectorGem getDisplayedCollector()
Returns:
the currently displayed collector, or null if all collectors are currently being displayed.

setCollectorToDisplay

public void setCollectorToDisplay(CollectorGem collectorToDisplay)
Change the collector which is the focus of the argument tree.

Parameters:
collectorToDisplay - the new collector on which the argument tree should focus. If null, all collectors are displayed.

getDisplayUnusedArguments

public boolean getDisplayUnusedArguments()
Returns:
whether unused arguments are displayed.

setDisplayUnusedArguments

public void setDisplayUnusedArguments(boolean displayUnusedArguments)
Parameters:
displayUnusedArguments - whether unused arguments should be displayed.

Business Objects
Quark Platform Documentation
Version 1.7.1_0
Business Objects

Copyright © 2007 Business Objects. All rights reserved.