com.plumtree.uiinfrastructure.tree
Class TreeDataHelpers

java.lang.Object
  extended by com.plumtree.uiinfrastructure.tree.TreeDataHelpers

public class TreeDataHelpers
extends java.lang.Object

This class provides static methods to parse the data returned by the tree for selected items.

Author:
Don Hayler

Constructor Summary
TreeDataHelpers()
           
 
Method Summary
static int[] ParseTreeDataGetClassID(java.lang.String strTreeData)
          Parses out the Class IDs of the selected objects from the data string returned by a Tree Control.
static java.lang.String[] ParseTreeDataGetName(java.lang.String strTreeData)
          Parses out the Name of an object from the data string returned by a Tree Control
static int[] ParseTreeDataGetObjectID(java.lang.String strTreeData)
          Parses out the Object IDs of the selected objects from the data string returned by a Tree Control.
static java.lang.String UnReferenceQueryStringData(java.lang.String[] sValues, AActivitySpace asOwner)
          This helper method checks if a query string parameter needs to be unreferenced.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeDataHelpers

public TreeDataHelpers()
Method Detail

ParseTreeDataGetClassID

public static int[] ParseTreeDataGetClassID(java.lang.String strTreeData)
Parses out the Class IDs of the selected objects from the data string returned by a Tree Control.

Parameters:
strTreeData - data string from a Tree Control
Returns:
int[] an array of Object IDs of the selected Objects.

ParseTreeDataGetName

public static java.lang.String[] ParseTreeDataGetName(java.lang.String strTreeData)
Parses out the Name of an object from the data string returned by a Tree Control

Parameters:
strTreeData - data string from a Tree Control
Returns:
String[] an array of Object Names of the selected Objects.

ParseTreeDataGetObjectID

public static int[] ParseTreeDataGetObjectID(java.lang.String strTreeData)
Parses out the Object IDs of the selected objects from the data string returned by a Tree Control.

Parameters:
strTreeData - data string from a Tree Control
Returns:
int[] an array of Object IDs of the selected Objects.

UnReferenceQueryStringData

public static java.lang.String UnReferenceQueryStringData(java.lang.String[] sValues,
                                                          AActivitySpace asOwner)
This helper method checks if a query string parameter needs to be unreferenced. This is currently only used for selected and hidden items.

Parameters:
String[] - the query string parameter
AActivitySpace - asOwner the current space
Returns:
the referenced string data or null, if no data was referenced.



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.