public class CmsGwtActionElement extends CmsJspActionElement
see jsp file /system/workplace/commons/sitemap.jsp.
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
SCRIPT_TAG_CLOSE
The closing script tag.
|
protected static java.lang.String |
SCRIPT_TAG_OPEN
The opening script tag.
|
NOT_INITIALIZED
Constructor and Description |
---|
CmsGwtActionElement(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createNoCacheScript(java.lang.String moduleName)
Deprecated.
|
static java.lang.String |
createNoCacheScript(java.lang.String moduleName,
java.lang.String moduleVersion)
Returns the script tag for the "*.nocache.js".
|
java.lang.String |
export()
Returns the serialized data for the core provider wrapped in a script tag.
|
java.lang.String |
export(java.lang.String iconCssClassPrefix)
Returns the serialized data for the core provider wrapped into a script tag.
|
java.lang.String |
exportAll()
Returns the serialized data for the core provider.
|
java.lang.String |
exportAll(java.lang.String cssIconClassPrefix)
Exports everything, using the given CSS selector prefix.
|
static java.lang.String |
exportCommon(CmsObject cms,
CmsCoreData coreData,
java.lang.String iconCssClassPrefix)
Returns the serialized data for the core provider wrapped into a script tag.
|
static java.lang.String |
exportDictionary(java.lang.String name,
java.lang.reflect.Method method,
java.lang.Object data)
Serializes the result of the given method for RPC-prefetching.
|
static java.lang.String |
exportDictionary(java.lang.String name,
java.lang.String data)
Exports a dictionary by the given name as the content attribute of a meta tag.
|
static java.lang.String |
exportMeta(java.lang.String name,
java.lang.String data)
Generates the HTML for a meta tag with given name and content.
|
protected java.lang.String |
exportModuleScriptTag(java.lang.String moduleName)
Exports script tag to the main OpenCms GWT no-cache js script tag.
|
CmsCoreData |
getCoreData()
Returns the needed server data for client-side usage.
|
java.util.Locale |
getWorkplaceLocale()
Returns the workplace locale for the current user.
|
static java.lang.String |
serialize(java.lang.reflect.Method method,
java.lang.Object data)
Serializes the result of the given method for RPC-prefetching.
|
static java.lang.String |
wrapScript(java.lang.String... s)
Concatenates the given strings and surrounds them with script tags.
|
editable, editable, editable, editableManualClose, editableManualOpen, getContent, getContent, getMessages, getMessages, getMessages, getMessages, getNavigation, getNavigationUri, img, img, include, include, include, include, include, include, includeSilent, includeSilent, includeSilent, includeSilent, info, label, link, link, properties, properties, property, property, property, property, template, template, template, toAbsolute, user
getCmsObject, getController, getJspContext, getMessage, getRequest, getRequestContext, getResponse, handleException, handleMissingFlexController, init, isNotInitialized, isSupressingExceptions, setContentType, setStatus, setSupressingExceptions
protected static final java.lang.String SCRIPT_TAG_CLOSE
protected static final java.lang.String SCRIPT_TAG_OPEN
public CmsGwtActionElement(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
context
- the JSP page context objectreq
- the JSP requestres
- the JSP response@Deprecated public java.lang.String createNoCacheScript(java.lang.String moduleName)
moduleName
- the module name to get the script tag for"<script>"
tag for the "*.nocache.js".public static java.lang.String createNoCacheScript(java.lang.String moduleName, java.lang.String moduleVersion)
moduleName
- the module name to get the script tag formoduleVersion
- the module version"<script>"
tag for the "*.nocache.js".public java.lang.String export() throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic java.lang.String export(java.lang.String iconCssClassPrefix) throws java.lang.Exception
iconCssClassPrefix
- the prefix for icon css class rulesjava.lang.Exception
- if something goes wrongpublic java.lang.String exportAll() throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic java.lang.String exportAll(java.lang.String cssIconClassPrefix) throws java.lang.Exception
cssIconClassPrefix
- the CSS selector prefixjava.lang.Exception
- if something goes wrongpublic static java.lang.String exportCommon(CmsObject cms, CmsCoreData coreData, java.lang.String iconCssClassPrefix) throws java.lang.Exception
cms
- the CMS contextcoreData
- the core data to write into the pageiconCssClassPrefix
- the prefix for icon css class rulesjava.lang.Exception
- if something goes wrongpublic static java.lang.String exportDictionary(java.lang.String name, java.lang.reflect.Method method, java.lang.Object data) throws com.google.gwt.user.client.rpc.SerializationException
name
- the dictionary namemethod
- the methoddata
- the result to serializecom.google.gwt.user.client.rpc.SerializationException
- if something goes wrongpublic static java.lang.String exportDictionary(java.lang.String name, java.lang.String data)
name
- the dictionary namedata
- the datapublic static java.lang.String exportMeta(java.lang.String name, java.lang.String data)
name
- the name of the meta tagdata
- the content of the meta tagprotected java.lang.String exportModuleScriptTag(java.lang.String moduleName)
moduleName
- the client module to startpublic CmsCoreData getCoreData()
public java.util.Locale getWorkplaceLocale()
public static java.lang.String serialize(java.lang.reflect.Method method, java.lang.Object data) throws com.google.gwt.user.client.rpc.SerializationException
method
- the methoddata
- the result to serializecom.google.gwt.user.client.rpc.SerializationException
- if something goes wrongpublic static java.lang.String wrapScript(java.lang.String... s)
s
- the array of strings to concatenate and wrap