Class JavascriptPluginInclusion
- java.lang.Object
-
- org.silverpeas.core.web.util.viewgenerator.html.JavascriptPluginInclusion
-
public class JavascriptPluginInclusion extends Object
This class embeds the process of the inclusion of some Javascript plugins used in Silverpeas.It acts as a mixin for the tags that which to include a specific tag in order to use the functionality of the underlying plugin.
- Author:
- mmoquillon
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getDynamicSubscriptionJavascriptLoadContent(String jsCallback)
Includes a dynamic loading of Silverpeas subscription JQuery Plugin.static org.apache.ecs.ElementContainer
includeComment(org.apache.ecs.ElementContainer xhtml)
static org.apache.ecs.ElementContainer
includeIFrameAjaxTransport(org.apache.ecs.ElementContainer xhtml)
static org.apache.ecs.ElementContainer
includeMinimalSilverpeas(org.apache.ecs.ElementContainer xhtml)
static org.apache.ecs.Element
link(String href)
Centralization of link instantiation.static String
normalizeWebResourceUrl(String url)
Normalizes the given url in order to handle: js and css minify version append in order to handle the cachestatic org.apache.ecs.Element
print(String href)
Centralization of print instantiation.static org.apache.ecs.Element
script(String src)
Centralization of script instantiation.static org.apache.ecs.Element
scriptContent(String content)
Centralization of script instantiation.
-
-
-
Method Detail
-
script
public static org.apache.ecs.Element script(String src)
Centralization of script instantiation.- Parameters:
src
-- Returns:
-
scriptContent
public static org.apache.ecs.Element scriptContent(String content)
Centralization of script instantiation.- Parameters:
content
- the script content.- Returns:
- the
Element
instance representing the script content.
-
print
public static org.apache.ecs.Element print(String href)
Centralization of print instantiation.- Parameters:
href
- the URL of the print css source.- Returns:
- the representation of the print css.
-
link
public static org.apache.ecs.Element link(String href)
Centralization of link instantiation.- Parameters:
href
- the URL of the css source.- Returns:
- the representation of the css.
-
includeMinimalSilverpeas
public static org.apache.ecs.ElementContainer includeMinimalSilverpeas(org.apache.ecs.ElementContainer xhtml)
-
includeIFrameAjaxTransport
public static org.apache.ecs.ElementContainer includeIFrameAjaxTransport(org.apache.ecs.ElementContainer xhtml)
-
includeComment
public static org.apache.ecs.ElementContainer includeComment(org.apache.ecs.ElementContainer xhtml)
-
getDynamicSubscriptionJavascriptLoadContent
public static String getDynamicSubscriptionJavascriptLoadContent(String jsCallback)
Includes a dynamic loading of Silverpeas subscription JQuery Plugin. This plugin depends on the 'popup' one and handles its loading.- Parameters:
jsCallback
- javascript routine as string (without function declaration that wraps it) that is always performed after that the plugin existence is verified.- Returns:
- the container that contains the script loading.
-
-