|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.policy.AbstractPolicyFilter com.jalios.jcms.policy.BasicWysiwygPolicyFilter
public class BasicWysiwygPolicyFilter
This class allow users to customize behaviour of widgets by re-writing call-back methods.
WidgetPolicyFilter
Field Summary | |
---|---|
static String |
REVISION
|
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter |
---|
order |
Constructor Summary | |
---|---|
BasicWysiwygPolicyFilter()
|
Method Summary | |
---|---|
String |
afterRendering(String text,
Locale userLocale)
This method is called after wysiwyg rendering |
String |
beforeRendering(String text,
Locale userLocale)
This method is called before wysiwyg rendering |
void |
checkGlobalWysiwygCSS(Set globalStyle,
Workspace workspace)
This method is a hook called by Workspace to manage wysiwyg css global style to display. |
void |
checkLocalWysiwygCSS(Set localStyle,
String globalStyle,
Workspace workspace)
This method is a hook called by Workspace to manage wysiwyg css local style to display. |
void |
checkWysiwygCSSFile(Set cssFileSet)
This method is a hook called by Workspace to manage wysiwyg css files to parse and to display in wysiwyg css bar. |
boolean |
init(Plugin plugin)
Initialize the component with the given plugin configuration |
boolean |
loadWysiwygEditor(JcmsJspContext context,
boolean load)
This method is a hook called by JcmsJspContext to fill the
JavaScript headers with the javascript files required to provide the
WYSIWYG editor. |
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter |
---|
compareTo, equals, getOrder, setOrder |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public BasicWysiwygPolicyFilter()
Method Detail |
---|
public boolean init(Plugin plugin)
PluginComponent
init
in interface PluginComponent
plugin
- the calling plugin
PluginComponent.init(Plugin)
public boolean loadWysiwygEditor(JcmsJspContext context, boolean load)
WysiwygPolicyFilter
JcmsJspContext
to fill the
JavaScript headers with the javascript files required to provide the
WYSIWYG editor.
loadWysiwygEditor
in interface WysiwygPolicyFilter
context
- the JcmsJspContext for which the check should be made.load
- the value computed by JCMS, true
if the
wysiwyg's javascript files need to be included,
false
otherwise.
true
when the wysiwyg's javascript files are
to be included, false
otherwise. false
when the load argument was computed to true
as you
will prevent the editor to be loaded where it is needed by default.WysiwygPolicyFilter.loadWysiwygEditor(JcmsJspContext, boolean)
public void checkWysiwygCSSFile(Set cssFileSet)
WysiwygPolicyFilter
checkWysiwygCSSFile
in interface WysiwygPolicyFilter
cssFileSet
- the path of CSSFile to work withWysiwygPolicyFilter.checkWysiwygCSSFile(Set)
public void checkGlobalWysiwygCSS(Set globalStyle, Workspace workspace)
WysiwygPolicyFilter
checkGlobalWysiwygCSS
in interface WysiwygPolicyFilter
globalStyle
- Set of global styleworkspace
- the current WorkspaceWysiwygPolicyFilter.checkGlobalWysiwygCSS(Set, Workspace)
public void checkLocalWysiwygCSS(Set localStyle, String globalStyle, Workspace workspace)
WysiwygPolicyFilter
checkLocalWysiwygCSS
in interface WysiwygPolicyFilter
localStyle
- Set of local styleglobalStyle
- the chosen global styleworkspace
- the current WorkspaceWysiwygPolicyFilter.checkLocalWysiwygCSS(Set, String, Workspace)
public String beforeRendering(String text, Locale userLocale)
WysiwygPolicyFilter
beforeRendering
in interface WysiwygPolicyFilter
text
- the text to be rendered.userLocale
- an optionnal Locale
of the user for which the text will be generated
WysiwygPolicyFilter.beforeRendering(String, Locale)
public String afterRendering(String text, Locale userLocale)
WysiwygPolicyFilter
afterRendering
in interface WysiwygPolicyFilter
text
- the text after the rendering.userLocale
- an optionnal Locale
of the user for which the text will be generated
WysiwygPolicyFilter.afterRendering(String, Locale)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |