com.plumtree.portalpages.common.helpers
Class TreeHelper
java.lang.Object
com.plumtree.portalpages.common.helpers.TreeHelper
public class TreeHelper
- extends java.lang.Object
- Author:
- OlegS
see usage example at the end
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 |
TreeHelper
public TreeHelper()
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 spacesubspace
- 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 namehi_spaceid
- The hidden subspace IDaction
- 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 spacesubspace
- Sub activity spacehi_spaceid
- hidden space id fieldhi_repost
- hidden repost fieldtitle
- The title for the treesubtitle
- The subtitle for the treeclassid
- The classid of the objects to be displayedrootfolder
- The root folder of the treeselectmode
- The select modemultiselect
- Multiselect - true or falseshowroot
- Show the root folder - true or falsehideids
- IDs of elements to hideselect
- 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)