info.magnolia.templating.editor.client.jsni
Class LegacyJavascript

java.lang.Object
  extended by info.magnolia.templating.editor.client.jsni.LegacyJavascript

public final class LegacyJavascript
extends Object

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

Version:
$Id$

Method Summary
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 boolean isEmpty(String string)
           
static boolean isNotEmpty(String string)
           
static boolean isPreviewMode()
           
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 mgnlPreview(boolean setPreview)
           
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

mgnlOpenDialog

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

mgnlMoveNodeStart

public static void mgnlMoveNodeStart(String id)

mgnlMoveNodeHigh

public static void mgnlMoveNodeHigh(Object source)

mgnlMoveNodeEnd

public static void mgnlMoveNodeEnd(Object source,
                                   String path)

mgnlMoveNodeReset

public static void mgnlMoveNodeReset(Object source)

mgnlDeleteNode

public static void mgnlDeleteNode(String path)

exposeMgnlMessagesToGwtDictionary

public 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.


showTree

public static void showTree(String workspace,
                            String path)

mgnlPreview

public static void mgnlPreview(boolean setPreview)

isPreviewMode

public static boolean isPreviewMode()
Returns:
true if the current page is in preview mode, false otherwise.

getContextPath

public static String getContextPath()

isNotEmpty

public static boolean isNotEmpty(String string)

isEmpty

public static boolean isEmpty(String string)


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.