com.sibvisions.rad.ui.web.ext.gwt
Class GVxUtil

java.lang.Object
  extended by com.sibvisions.rad.ui.web.ext.gwt.GVxUtil

public final class GVxUtil
extends Object

The GVxUtil contains useful methods for the client.


Method Summary
static void alert(Exception pException)
          Shows an exception with the stack trace in an alert box.
static void alert(String pMessage)
          Shows a message in an alert box.
static boolean equals(Object pObject1, Object pObject2)
          Compares two object and supports null object compare.
static String getElementTagName(Element pElement)
          Get the tag name of an element.
static String getMetaProperty(String pPropName)
          Get a named meta property from the current root panel's head element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public static boolean equals(Object pObject1,
                             Object pObject2)
Compares two object and supports null object compare.

Parameters:
pObject1 - an object
pObject2 - another object
Returns:
true if both objects are equal or both objects are null, false otherwise

alert

public static void alert(String pMessage)
Shows a message in an alert box.

Parameters:
pMessage - the message

alert

public static void alert(Exception pException)
Shows an exception with the stack trace in an alert box.

Parameters:
pException - the exception

getElementTagName

public static String getElementTagName(Element pElement)
Get the tag name of an element.

Parameters:
pElement - the element name
Returns:
the tag name

getMetaProperty

public static String getMetaProperty(String pPropName)
Get a named meta property from the current root panel's head element. Statically cached for efficiency.
e.g. <meta name="gwt:property" content="key=value">

Parameters:
pPropName - the property name
Returns:
the value of the property


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.