info.magnolia.ui.vaadin.gwt.client.editor.jsni
Class JavascriptUtils

java.lang.Object
  extended by info.magnolia.ui.vaadin.gwt.client.editor.jsni.JavascriptUtils

Deprecated.

@Deprecated
public final class JavascriptUtils
extends Object

A JSNI wrapper around native javascript functions found in general.js, inline.js and others plus some utilities.


Method Summary
static String detectCurrentLocale()
          Deprecated. A String representing the value for the GWT meta property whose content is locale.
static void exposeMgnlMessagesToGwtDictionary(String basename)
          Deprecated. Exposes the messages object corresponding to the passed in basename as a global (thus accessible by GWT Dictionary) variable named mgnlGwtMessages.
static String getContextPath()
          Deprecated.  
static String getI18nMessage(String key)
          Deprecated. This method will look for the specified key inside a GWT Dictionary named mgnlGwtMessages.
static String getWindowLocation()
          Deprecated.  
static boolean isEmpty(String string)
          Deprecated.  
static boolean isNotEmpty(String string)
          Deprecated.  
static void mgnlDeleteNode(String path)
          Deprecated.  
static void mgnlMoveNodeEnd(Object source, String path)
          Deprecated.  
static void mgnlMoveNodeHigh(Object source)
          Deprecated.  
static void mgnlMoveNodeReset(Object source)
          Deprecated.  
static void mgnlMoveNodeStart(String id)
          Deprecated.  
static void mgnlOpenDialog(String path, String collectionName, String nodeName, String paragraph, String workspace, String dialogPage, String width, String height, String locale)
          Deprecated.  
static void moveComponent(String idTarget, String idSource, String path, String order)
          Deprecated.  
static void setWindowLocation(String windowLocation)
          Deprecated.  
static void showTree(String workspace, String path)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getWindowLocation

public static String getWindowLocation()
Deprecated. 

setWindowLocation

public static void setWindowLocation(String windowLocation)
Deprecated. 

mgnlOpenDialog

public static void mgnlOpenDialog(String path,
                                  String collectionName,
                                  String nodeName,
                                  String paragraph,
                                  String workspace,
                                  String dialogPage,
                                  String width,
                                  String height,
                                  String locale)
Deprecated. 

mgnlMoveNodeStart

public static void mgnlMoveNodeStart(String id)
Deprecated. 

mgnlMoveNodeHigh

public static void mgnlMoveNodeHigh(Object source)
Deprecated. 

mgnlMoveNodeEnd

public static void mgnlMoveNodeEnd(Object source,
                                   String path)
Deprecated. 

mgnlMoveNodeReset

public static void mgnlMoveNodeReset(Object source)
Deprecated. 

mgnlDeleteNode

public static void mgnlDeleteNode(String path)
Deprecated. 

exposeMgnlMessagesToGwtDictionary

public static void exposeMgnlMessagesToGwtDictionary(String basename)
Deprecated. 
Exposes the messages object corresponding to the passed in basename as a global (thus accessible by GWT Dictionary) variable named mgnlGwtMessages.


showTree

public static void showTree(String workspace,
                            String path)
Deprecated. 

getContextPath

public static String getContextPath()
Deprecated. 

isNotEmpty

public static boolean isNotEmpty(String string)
Deprecated. 

isEmpty

public static boolean isEmpty(String string)
Deprecated. 

getI18nMessage

public static String getI18nMessage(String key)
Deprecated. 
This method will look for the specified key inside a GWT 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


detectCurrentLocale

public static String detectCurrentLocale()
Deprecated. 
A String representing the value for the GWT meta property whose content is locale. See also GWT Dev Guide to i18n


moveComponent

public static void moveComponent(String idTarget,
                                 String idSource,
                                 String path,
                                 String order)
Deprecated. 


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.