asquare.gwt.debug.client
Class DebugHierarchyInspector
java.lang.Object
asquare.gwt.debug.client.DebugEventListener
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.
|
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 |
DEFAULT_ENABLE_KEY
public static final char DEFAULT_ENABLE_KEY
- The default enabler key (
'h').
- See Also:
- Constant Field Values
DebugHierarchyInspector
public DebugHierarchyInspector()
DebugHierarchyInspector
public DebugHierarchyInspector(char enableKey,
int eventMask)
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
© 2007 Mat Gessel