com.jalios.jcms.policy
Interface WidgetPolicyFilter
- All Superinterfaces:
- Comparable, PluginComponent, PolicyFilter
- All Known Implementing Classes:
- BasicWidgetPolicyFilter
public interface WidgetPolicyFilter
- extends PolicyFilter
This class allow users to customize behaviour of widgets
by re-writing call-back methods.
- Since:
- jcms-5.5.0
- Version:
- $Revision: 19371 $
- Author:
- Jean-Philippe Encausse
REVISION
static final String REVISION
- See Also:
- Constant Field Values
updateHiddenActions
String updateHiddenActions(String hiddenActions,
AbstractWidget widget)
- 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
- Parameters:
hiddenActions
- the action set to the widgetwidget
- the calling widget
- Returns:
- String null or hiddenActions to do nothing otherwise a custom String descripting the hiddenActions
- See Also:
AbstractWidget.setHiddenActions(String)
updateCSS
String updateCSS(String css,
AbstractWidget widget)
- 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.
- Parameters:
css
- the current csswidget
- the calling widget
- Returns:
- null or css otherwise a custom String descripting the css
getTreeCatNodeExtraContent
String getTreeCatNodeExtraContent(TreeCat treecat,
String extraContent,
Category cat,
int level,
int pubcount)
- 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.
- Parameters:
treecat
- the TreeCat calling this methodextraContent
- the previous extraContentcat
- the current categorylevel
- the level asked to be displayedpubcount
- the count of publication if it has been calculated
- Returns:
- String HTML extra content to append to node
- See Also:
Channel.getCurrentServletRequest()
,
TreeCat.getBranch(Category, int)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.