GWT Tk 0.2.3

asquare.gwt.debug.client
Class DebugHierarchyInspector

java.lang.Object
  extended by asquare.gwt.debug.client.DebugEventListener
      extended by asquare.gwt.debug.client.DebugHierarchyInspector

public class DebugHierarchyInspector
extends DebugEventListener

Dumps the DOM containment of an element to the console. To use, put this in onModuleLoad():

 new DebugHierarchyInspector().install();
In the browser, press 'h' twice and click on an element.


Field Summary
static char DEFAULT_ENABLE_KEY
          The default enabler key ('h').
 
Fields inherited from class asquare.gwt.debug.client.DebugEventListener
DEFAULT_MASK, MASK_ALL
 
Constructor Summary
DebugHierarchyInspector()
           
DebugHierarchyInspector(char enableKey, int eventMask)
           
 
Method Summary
protected  String createDetailString(Element element)
          Override this method to change the details you want to display for each element in the hierarchy.
protected  void doEvent(Event event)
          Override to perform a custom action for each event.
 
Methods inherited from class asquare.gwt.debug.client.DebugEventListener
doDisabled, doEnabled, enable, eventDispatched, getEnableKey, getEventMask, install, setEnabled, setEnableKey, setEventMask, uninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ENABLE_KEY

public static final char DEFAULT_ENABLE_KEY
The default enabler key ('h').

See Also:
Constant Field Values
Constructor Detail

DebugHierarchyInspector

public DebugHierarchyInspector()

DebugHierarchyInspector

public DebugHierarchyInspector(char enableKey,
                               int eventMask)
Method Detail

doEvent

protected void doEvent(Event event)
Description copied from class: DebugEventListener
Override to perform a custom action for each event.

Overrides:
doEvent in class DebugEventListener

createDetailString

protected String createDetailString(Element element)
Override this method to change the details you want to display for each element in the hierarchy.

Parameters:
element -
Returns:
a string

GWT Tk 0.2.3

© 2007 Mat Gessel