com.jalios.jcms.widget
Class TreeCatProxy

java.lang.Object
  extended by com.jalios.jcms.widget.TreeCatProxy
Direct Known Subclasses:
TreeCatMediaProxy

public class TreeCatProxy
extends java.lang.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

Constructor Summary
TreeCatProxy()
           
 
Method Summary
 java.lang.String getBranch(TreeCat treecat, java.lang.String computedValue, Category cat, int level)
           
 java.lang.String getEdit(TreeCat treecat, java.lang.String computedValue, Category cat)
           
 java.lang.String getHelp(TreeCat treecat, java.lang.String computedValue, Category cat)
           
 java.lang.String getNodeIcon(TreeCat treecat, java.lang.String computedValue, Category cat, int level)
           
 java.lang.String getNodeLink(TreeCat treecat, java.lang.String computedValue, java.lang.String name, Category cat, int pubCount)
           
 java.lang.String getNodeName(TreeCat treecat, java.lang.String computedValue, Category cat)
           
 java.lang.String getPortals(TreeCat treecat, java.lang.String computedValue, Category cat)
           
 java.lang.String getPubCount(TreeCat treecat, java.lang.String computedValue, Category cat, int pubCount)
           
 java.lang.String getReadablePub(TreeCat treecat, java.lang.String computedValue, Category cat)
           
 java.lang.String getRights(TreeCat treecat, java.lang.String computedValue, Category cat)
           
 java.lang.String getWidget(TreeCat treecat, java.lang.String computedValue, Category cat, int pubCount)
           
 java.lang.String getWorkspaces(TreeCat treecat, java.lang.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
 

Constructor Detail

TreeCatProxy

public TreeCatProxy()
Method Detail

initRoot

public void initRoot(TreeCat treecat,
                     Category cat)
Parameters:
treecat - the TreeCat calling this method
cat - the Category to display

resetRoots

public void resetRoots(TreeCat treecat)
Parameters:
treecat - the TreeCat calling this method

getBranch

public java.lang.String getBranch(TreeCat treecat,
                                  java.lang.String computedValue,
                                  Category cat,
                                  int level)
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
cat - the Category to display
level - the children level to display
Returns:
String displaying the category without <li></li>
See Also:
TreeCat.getBranch(Category, int)

getNodeIcon

public java.lang.String getNodeIcon(TreeCat treecat,
                                    java.lang.String computedValue,
                                    Category cat,
                                    int level)
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
cat - the Category to display
level - the children level to display
Returns:
String the updated value

getWidget

public java.lang.String getWidget(TreeCat treecat,
                                  java.lang.String computedValue,
                                  Category cat,
                                  int pubCount)
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
cat - the Category to display
pubCount - the pre computed publication count or 1
Returns:
String the updated value

getNodeLink

public java.lang.String getNodeLink(TreeCat treecat,
                                    java.lang.String computedValue,
                                    java.lang.String name,
                                    Category cat,
                                    int pubCount)
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
name - the node name
cat - the Category to display
pubCount - the pre computed publication count or 1
Returns:
String the updated value

getNodeName

public java.lang.String getNodeName(TreeCat treecat,
                                    java.lang.String computedValue,
                                    Category cat)
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
cat - the Category to display
Returns:
String the updated value

getReadablePub

public java.lang.String getReadablePub(TreeCat treecat,
                                       java.lang.String computedValue,
                                       Category cat)
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
cat - the Category to display
Returns:
String the updated value

getPubCount

public java.lang.String getPubCount(TreeCat treecat,
                                    java.lang.String computedValue,
                                    Category cat,
                                    int pubCount)
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
cat - the Category to display
pubCount - the pre computed publication count or 1
Returns:
String the updated value

getRights

public java.lang.String getRights(TreeCat treecat,
                                  java.lang.String computedValue,
                                  Category cat)
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
cat - the Category to display
Returns:
String the updated value

getHelp

public java.lang.String getHelp(TreeCat treecat,
                                java.lang.String computedValue,
                                Category cat)
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
cat - the Category to display
Returns:
String the updated value

getPortals

public java.lang.String getPortals(TreeCat treecat,
                                   java.lang.String computedValue,
                                   Category cat)
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
cat - the Category to display
Returns:
String the updated value

getWorkspaces

public java.lang.String getWorkspaces(TreeCat treecat,
                                      java.lang.String computedValue,
                                      Category cat)
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
cat - the Category to display
Returns:
String the updated value

getEdit

public java.lang.String getEdit(TreeCat treecat,
                                java.lang.String computedValue,
                                Category cat)
Parameters:
treecat - the TreeCat calling this method
computedValue - the value already computed by tha TreeCat
cat - the Category to display
Returns:
String the updated value


Copyright © 2001-2010 Jalios SA. All Rights Reserved.