com.jalios.jcms.policy
Class BasicWidgetPolicyFilter
java.lang.Object
   com.jalios.jcms.policy.AbstractPolicyFilter
com.jalios.jcms.policy.AbstractPolicyFilter
       com.jalios.jcms.policy.BasicWidgetPolicyFilter
com.jalios.jcms.policy.BasicWidgetPolicyFilter
- All Implemented Interfaces: 
- PluginComponent, PolicyFilter, WidgetPolicyFilter, Comparable
- public class BasicWidgetPolicyFilter 
- extends AbstractPolicyFilter- implements WidgetPolicyFilter, PluginComponent
This class allow users to customize behaviour of widgets
 by re-writing call-back methods.
- Since:
- jcms-5.5.0
- Version:
- $Revision: 19809 $
- Author:
- Jean-Philippe Encausse
- See Also:
- WidgetPolicyFilter
 
 
 
 
 
 
 
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
BasicWidgetPolicyFilter
public BasicWidgetPolicyFilter()
init
public boolean init(Plugin plugin)
- Description copied from interface: PluginComponent
- Initialize the component with the given plugin configuration
 
- 
- Specified by:
- initin interface- PluginComponent
 
- 
- Parameters:
- plugin- the calling plugin
- Returns:
- true if the conponent has been correctly initialized.
- Since:
- jcms-5.7.1
- See Also:
- PluginComponent.init(Plugin)
 
updateHiddenActions
public String updateHiddenActions(String hiddenActions,
                                  AbstractWidget widget)
- Description copied from interface: WidgetPolicyFilter
- This method is called by all widget to update the hidden actions configuration.
 This method is usefull to set a custom behavior for all given widget.
 Remove all: ABCDEFGHIKLMPQRSTUX
 
 C - Create
 S - Select (Pub Chooser)
 R - Remove
 T - Trash
 U - Up / Left
 D - Down / Right
 E - Edit
 A - Add
 L - Id (data link)
 K - Calendar
 I - Image Chooser (upload) 
 X - Doc Chooser
 P - File chooser
 M - Media chooser
 F - Color chooser
 B - DBRecord chooser
 Q - Query chooser
 H - Member chooser
 G - Group chooser
 
- 
- Specified by:
- updateHiddenActionsin interface- WidgetPolicyFilter
 
- 
- Parameters:
- hiddenActions- the action set to the widget
- widget- the calling widget
- Returns:
- String null or hiddenActions to do nothing otherwise a custom String descripting the hiddenActions
- See Also:
- WidgetPolicyFilter.updateHiddenActions(String, AbstractWidget)
 
updateCSS
public String updateCSS(String css,
                        AbstractWidget widget)
- Description copied from interface: WidgetPolicyFilter
- This method is called by all widget to update the css configuration.
 This method is usefull to set a custom look for all given widget.
 
- 
- Specified by:
- updateCSSin interface- WidgetPolicyFilter
 
- 
- Parameters:
- css- the current css
- widget- the calling widget
- Returns:
- null or css otherwise a custom String descripting the css
- See Also:
- WidgetPolicyFilter.updateCSS(String, AbstractWidget)
 
getTreeCatNodeExtraContent
public String getTreeCatNodeExtraContent(TreeCat treecat,
                                         String extraContent,
                                         Category cat,
                                         int level,
                                         int pubcount)
- Description copied from interface: WidgetPolicyFilter
- This method is called by TreeCat to append some specific content
 for each category node or leaf. First argument TreeCat is used
 to retrieve configuration. Otherwise channel.getCurrentServletRequest()
 may be called to read contextual information.
 
- 
- Specified by:
- getTreeCatNodeExtraContentin interface- WidgetPolicyFilter
 
- 
- Parameters:
- treecat- the TreeCat calling this method
- extraContent- the previous extraContent
- cat- the current category
- level- the level asked to be displayed
- pubcount- the count of publication if it has been calculated
- Returns:
- String HTML extra content to append to node
- See Also:
- WidgetPolicyFilter.getTreeCatNodeExtraContent(TreeCat, String, Category, int, int)
 
Copyright © 2001-2007 Jalios SA. All Rights Reserved.