public class BasicWysiwygPolicyFilter extends AbstractPolicyFilter implements WysiwygPolicyFilter, PluginComponent
WidgetPolicyFilter| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REVISION |
order| Constructor and Description |
|---|
BasicWysiwygPolicyFilter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
afterRendering(java.lang.String text,
java.util.Locale userLocale)
This method is called after wysiwyg rendering
|
java.lang.String |
beforeRendering(java.lang.String text,
java.util.Locale userLocale)
This method is called before wysiwyg rendering
|
void |
checkGlobalWysiwygCSS(java.util.Set globalStyle,
Workspace workspace)
This method is a hook called by Workspace to manage wysiwyg
css global style to display.
|
void |
checkLocalWysiwygCSS(java.util.Set localStyle,
java.lang.String globalStyle,
Workspace workspace)
This method is a hook called by Workspace to manage wysiwyg
css local style to display.
|
void |
checkWysiwygCSSFile(java.util.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. |
compareTo, equals, getOrder, setOrderpublic static final java.lang.String REVISION
public boolean init(Plugin plugin)
PluginComponentinit in interface PluginComponentplugin - the calling pluginPluginComponent.init(Plugin)public boolean loadWysiwygEditor(JcmsJspContext context, boolean load)
WysiwygPolicyFilterJcmsJspContext to fill the
JavaScript headers with the javascript files required to provide the
WYSIWYG editor.loadWysiwygEditor in interface WysiwygPolicyFiltercontext - 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(java.util.Set cssFileSet)
WysiwygPolicyFiltercheckWysiwygCSSFile in interface WysiwygPolicyFiltercssFileSet - the path of CSSFile to work withWysiwygPolicyFilter.checkWysiwygCSSFile(Set)public void checkGlobalWysiwygCSS(java.util.Set globalStyle,
Workspace workspace)
WysiwygPolicyFiltercheckGlobalWysiwygCSS in interface WysiwygPolicyFilterglobalStyle - Set of global styleworkspace - the current WorkspaceWysiwygPolicyFilter.checkGlobalWysiwygCSS(Set, Workspace)public void checkLocalWysiwygCSS(java.util.Set localStyle,
java.lang.String globalStyle,
Workspace workspace)
WysiwygPolicyFiltercheckLocalWysiwygCSS in interface WysiwygPolicyFilterlocalStyle - Set of local styleglobalStyle - the chosen global styleworkspace - the current WorkspaceWysiwygPolicyFilter.checkLocalWysiwygCSS(Set, String, Workspace)public java.lang.String beforeRendering(java.lang.String text,
java.util.Locale userLocale)
WysiwygPolicyFilterbeforeRendering in interface WysiwygPolicyFiltertext - the text to be rendered.userLocale - an optionnal Locale of the user for which the text will be generatedWysiwygPolicyFilter.beforeRendering(String, Locale)public java.lang.String afterRendering(java.lang.String text,
java.util.Locale userLocale)
WysiwygPolicyFilterafterRendering in interface WysiwygPolicyFiltertext - the text after the rendering.userLocale - an optionnal Locale of the user for which the text will be generatedWysiwygPolicyFilter.afterRendering(String, Locale)Copyright © 2001-2010 Jalios SA. All Rights Reserved.