com.jalios.jcms.widget
Class TreeCatProxy
java.lang.Object
com.jalios.jcms.widget.TreeCatProxy
- Direct Known Subclasses:
- TreeCatMediaProxy
public class TreeCatProxy
- extends Object
This class is a proxy for TreeCat. It is used to filter and update
standard TreeCat behaviour.
- Since:
- jcms-5.5.0
- Author:
- Jean-Philippe Encausse
|
Method Summary |
String |
getBranch(TreeCat treecat,
String computedValue,
Category cat,
int level)
|
String |
getEdit(TreeCat treecat,
String computedValue,
Category cat)
|
String |
getHelp(TreeCat treecat,
String computedValue,
Category cat)
|
String |
getNodeIcon(TreeCat treecat,
String computedValue,
Category cat,
int level)
|
String |
getNodeLink(TreeCat treecat,
String computedValue,
String name,
Category cat,
int pubCount)
|
String |
getNodeName(TreeCat treecat,
String computedValue,
Category cat)
|
String |
getPortals(TreeCat treecat,
String computedValue,
Category cat)
|
String |
getPubCount(TreeCat treecat,
String computedValue,
Category cat,
int pubCount)
|
String |
getReadablePub(TreeCat treecat,
String computedValue,
Category cat)
|
String |
getRights(TreeCat treecat,
String computedValue,
Category cat)
|
String |
getWidget(TreeCat treecat,
String computedValue,
Category cat,
int pubCount)
|
String |
getWorkspaces(TreeCat treecat,
String computedValue,
Category cat)
|
void |
initRoot(TreeCat treecat,
Category cat)
|
void |
resetRoots(TreeCat treecat)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeCatProxy
public TreeCatProxy()
initRoot
public void initRoot(TreeCat treecat,
Category cat)
- Parameters:
treecat - the TreeCat calling this methodcat - the Category to display
resetRoots
public void resetRoots(TreeCat treecat)
- Parameters:
treecat - the TreeCat calling this method
getBranch
public String getBranch(TreeCat treecat,
String computedValue,
Category cat,
int level)
- Parameters:
treecat - the TreeCat calling this methodcomputedValue - the value already computed by tha TreeCatcat - the Category to displaylevel - the children level to display
- Returns:
- String displaying the category without <li></li>
- See Also:
TreeCat.getBranch(Category, int)
getNodeIcon
public String getNodeIcon(TreeCat treecat,
String computedValue,
Category cat,
int level)
- Parameters:
treecat - the TreeCat calling this methodcomputedValue - the value already computed by tha TreeCatcat - the Category to displaylevel - the children level to display
- Returns:
- String the updated value
getWidget
public String getWidget(TreeCat treecat,
String computedValue,
Category cat,
int pubCount)
- Parameters:
treecat - the TreeCat calling this methodcomputedValue - the value already computed by tha TreeCatcat - the Category to displaypubCount - the pre computed publication count or 1
- Returns:
- String the updated value
getNodeLink
public String getNodeLink(TreeCat treecat,
String computedValue,
String name,
Category cat,
int pubCount)
- Parameters:
treecat - the TreeCat calling this methodcomputedValue - the value already computed by tha TreeCatname - the node namecat - the Category to displaypubCount - the pre computed publication count or 1
- Returns:
- String the updated value
getNodeName
public String getNodeName(TreeCat treecat,
String computedValue,
Category cat)
- Parameters:
treecat - the TreeCat calling this methodcomputedValue - the value already computed by tha TreeCatcat - the Category to display
- Returns:
- String the updated value
getReadablePub
public String getReadablePub(TreeCat treecat,
String computedValue,
Category cat)
- Parameters:
treecat - the TreeCat calling this methodcomputedValue - the value already computed by tha TreeCatcat - the Category to display
- Returns:
- String the updated value
getPubCount
public String getPubCount(TreeCat treecat,
String computedValue,
Category cat,
int pubCount)
- Parameters:
treecat - the TreeCat calling this methodcomputedValue - the value already computed by tha TreeCatcat - the Category to displaypubCount - the pre computed publication count or 1
- Returns:
- String the updated value
getRights
public String getRights(TreeCat treecat,
String computedValue,
Category cat)
- Parameters:
treecat - the TreeCat calling this methodcomputedValue - the value already computed by tha TreeCatcat - the Category to display
- Returns:
- String the updated value
getHelp
public String getHelp(TreeCat treecat,
String computedValue,
Category cat)
- Parameters:
treecat - the TreeCat calling this methodcomputedValue - the value already computed by tha TreeCatcat - the Category to display
- Returns:
- String the updated value
getPortals
public String getPortals(TreeCat treecat,
String computedValue,
Category cat)
- Parameters:
treecat - the TreeCat calling this methodcomputedValue - the value already computed by tha TreeCatcat - the Category to display
- Returns:
- String the updated value
getWorkspaces
public String getWorkspaces(TreeCat treecat,
String computedValue,
Category cat)
- Parameters:
treecat - the TreeCat calling this methodcomputedValue - the value already computed by tha TreeCatcat - the Category to display
- Returns:
- String the updated value
getEdit
public String getEdit(TreeCat treecat,
String computedValue,
Category cat)
- Parameters:
treecat - the TreeCat calling this methodcomputedValue - the value already computed by tha TreeCatcat - the Category to display
- Returns:
- String the updated value
Copyright © 2001-2010 Jalios SA. All Rights Reserved.