GWT Tk 0.2.3

asquare.gwt.debug.client
Class DebugUtil

java.lang.Object
  extended by asquare.gwt.debug.client.DebugUtil

public class DebugUtil
extends Object

Contains debugging utility methods.


Constructor Summary
DebugUtil()
           
 
Method Summary
static String getTagName(Element element)
          Get the HTML tag name.
static String getTagName(UIObject uio)
          Get the HTML tag name of the specified UIObject's element.
static String prettyPrintElement(Element element)
          Get a short description of the element.
static String prettyPrintEvent(Event event)
          Creates a human readable String describing the specified event.
static String prettyPrintEventMask(int eventMask)
          Renders an event bitmask as a human readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugUtil

public DebugUtil()
Method Detail

prettyPrintEventMask

public static String prettyPrintEventMask(int eventMask)
Renders an event bitmask as a human readable String.

Parameters:
eventMask -
Returns:
a String describing the events, or "" if eventMask is 0

prettyPrintEvent

public static String prettyPrintEvent(Event event)
Creates a human readable String describing the specified event.

Parameters:
event - an Event
Returns:
a String describing the event, or "null" if event is null

getTagName

public static String getTagName(Element element)
Get the HTML tag name.

Parameters:
element - a DOM element
Returns:
the value of the tagName property, or null if element is null

getTagName

public static String getTagName(UIObject uio)
Get the HTML tag name of the specified UIObject's element.

Parameters:
uio - a UIObject
Returns:
the value of the tagName property, or null if uio is null.

prettyPrintElement

public static String prettyPrintElement(Element element)
Get a short description of the element.

Parameters:
element - a DOM element or null
Returns:
a String or null if element is null

GWT Tk 0.2.3

© 2007 Mat Gessel