|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.templating.editor.client.jsni.JavascriptUtils
public final class JavascriptUtils
A JSNI wrapper around native javascript functions found in general.js, inline.js and others plus some utilities.
Method Summary | |
---|---|
static String |
detectCurrentLocale()
A String representing the value for the GWT meta property whose content is locale. |
static void |
exposeMgnlMessagesToGwtDictionary(String basename)
Exposes the messages object corresponding to the passed in basename as a global (thus accessible by GWT Dictionary) variable named mgnlGwtMessages. |
static String |
getContextPath()
|
static void |
getCookieContentId()
|
static void |
getCookiePosition()
|
static String |
getI18nMessage(String key)
This method will look for the specified key inside a GWT Dictionary named mgnlGwtMessages . |
static String |
getWindowLocation()
|
static boolean |
isEmpty(String string)
|
static boolean |
isNotEmpty(String string)
|
static void |
mgnlDeleteNode(String path)
|
static void |
mgnlMoveNodeEnd(Object source,
String path)
|
static void |
mgnlMoveNodeHigh(Object source)
|
static void |
mgnlMoveNodeReset(Object source)
|
static void |
mgnlMoveNodeStart(String id)
|
static void |
mgnlOpenDialog(String path,
String collectionName,
String nodeName,
String paragraph,
String workspace,
String dialogPage,
String width,
String height,
String locale)
|
static void |
moveComponent(String idTarget,
String idSource,
String path,
String order)
|
static void |
removeEditorContentIdCookie()
|
static void |
removeEditorPositionCookie()
|
static void |
resetEditorCookies()
Removes all editor cookies not belonging to this page/module. |
static void |
setEditorContentIdCookie(String value)
|
static void |
setEditorPositionCookie(String value)
|
static void |
setWindowLocation(String windowLocation)
|
static void |
showTree(String workspace,
String path)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getWindowLocation()
public static void setWindowLocation(String windowLocation)
public static void mgnlOpenDialog(String path, String collectionName, String nodeName, String paragraph, String workspace, String dialogPage, String width, String height, String locale)
public static void mgnlMoveNodeStart(String id)
public static void mgnlMoveNodeHigh(Object source)
public static void mgnlMoveNodeEnd(Object source, String path)
public static void mgnlMoveNodeReset(Object source)
public static void mgnlDeleteNode(String path)
public static void exposeMgnlMessagesToGwtDictionary(String basename)
public static void showTree(String workspace, String path)
public static String getContextPath()
public static boolean isNotEmpty(String string)
public static boolean isEmpty(String string)
public static String getI18nMessage(String key)
Dictionary
named mgnlGwtMessages
. If the key does not exist it will return a string
in the form ???missing.key???
. The keys looked for must reside in info.magnolia.module.admininterface.messages
and
MUST end with the special suffix .js
(i.e. my.cool.i18nkey.js
).
WARNING: this way of exposing i18n messages to GWT is very likely to change in 5.0
public static String detectCurrentLocale()
public static void moveComponent(String idTarget, String idSource, String path, String order)
public static void resetEditorCookies()
public static void setEditorPositionCookie(String value)
public static void setEditorContentIdCookie(String value)
public static void getCookiePosition()
public static void getCookieContentId()
public static void removeEditorContentIdCookie()
public static void removeEditorPositionCookie()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |