com.plumtree.portalpages.common.helpers
Class TreeHelper

java.lang.Object
  extended by com.plumtree.portalpages.common.helpers.TreeHelper

public class TreeHelper
extends java.lang.Object

Author:
OlegS see usage example at the end

Constructor Summary
TreeHelper()
           
 
Method Summary
static XPArrayList GetSelection(AActivitySpace asOwner, java.lang.String subspace)
          Returns an XPArrayList of selected items from the tree
static HTMLAnchor makeTreeAnchor(java.lang.String subspace, java.lang.String hi_spaceid, int action, java.lang.String strLang)
          Constructs the anchor tag to be associated with the tree
static java.lang.String makeTreeJavascript(AActivitySpace parent, java.lang.String subspace, java.lang.String hi_spaceid, java.lang.String hi_repost, java.lang.String title, java.lang.String subtitle, int classid, int rootfolder, int selectmode, boolean multiselect, boolean showroot, java.lang.String hideids)
           
static java.lang.String makeTreeJavascript(AActivitySpace parent, java.lang.String subspace, java.lang.String hi_spaceid, java.lang.String hi_repost, java.lang.String title, java.lang.String subtitle, int classid, int rootfolder, int selectmode, boolean multiselect, boolean showroot, java.lang.String hideids, java.lang.String select)
          Constructs the URL used to open a new admin folder tree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeHelper

public TreeHelper()
Method Detail

GetSelection

public static XPArrayList GetSelection(AActivitySpace asOwner,
                                       java.lang.String subspace)
Returns an XPArrayList of selected items from the tree

Parameters:
asOwner - Parent of the Activity space
subspace - The subspace for the tree
Returns:
XPArrayList of selected items

makeTreeAnchor

public static HTMLAnchor makeTreeAnchor(java.lang.String subspace,
                                        java.lang.String hi_spaceid,
                                        int action,
                                        java.lang.String strLang)
Constructs the anchor tag to be associated with the tree

Parameters:
subspace - The subspace name
hi_spaceid - The hidden subspace ID
action - The action to take
Returns:
Returns the HTMLAnchor element

makeTreeJavascript

public static java.lang.String makeTreeJavascript(AActivitySpace parent,
                                                  java.lang.String subspace,
                                                  java.lang.String hi_spaceid,
                                                  java.lang.String hi_repost,
                                                  java.lang.String title,
                                                  java.lang.String subtitle,
                                                  int classid,
                                                  int rootfolder,
                                                  int selectmode,
                                                  boolean multiselect,
                                                  boolean showroot,
                                                  java.lang.String hideids,
                                                  java.lang.String select)
Constructs the URL used to open a new admin folder tree

Parameters:
parent - Parent activity space
subspace - Sub activity space
hi_spaceid - hidden space id field
hi_repost - hidden repost field
title - The title for the tree
subtitle - The subtitle for the tree
classid - The classid of the objects to be displayed
rootfolder - The root folder of the tree
selectmode - The select mode
multiselect - Multiselect - true or false
showroot - Show the root folder - true or false
hideids - IDs of elements to hide
select - IDs of element(s) to select
Returns:
The javascript string

makeTreeJavascript

public static java.lang.String makeTreeJavascript(AActivitySpace parent,
                                                  java.lang.String subspace,
                                                  java.lang.String hi_spaceid,
                                                  java.lang.String hi_repost,
                                                  java.lang.String title,
                                                  java.lang.String subtitle,
                                                  int classid,
                                                  int rootfolder,
                                                  int selectmode,
                                                  boolean multiselect,
                                                  boolean showroot,
                                                  java.lang.String hideids)



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