com.google.gwt.libideas.logging.client
Class TreeLogHandler

java.lang.Object
  extended by com.google.gwt.libideas.logging.shared.LogHandler
      extended by com.google.gwt.libideas.logging.client.PopupWidgetLogHandler
          extended by com.google.gwt.libideas.logging.client.TreeLogHandler

public class TreeLogHandler
extends PopupWidgetLogHandler

Publishes log messages into a popup tree sorted by category.


Field Summary
 
Fields inherited from class com.google.gwt.libideas.logging.client.PopupWidgetLogHandler
autoShow, popup
 
Constructor Summary
TreeLogHandler(boolean autoShow)
          TreeHandler, used only in development.
 
Method Summary
 void clear()
          Clears the contents of the current log messages.
 FastTreeItem getChild(HasFastTreeItems parent, java.lang.String childName)
           
 com.google.gwt.user.client.ui.Widget getWidget()
           
 void publish(java.lang.String message, Level level, java.lang.String category, java.lang.Throwable e)
          publish the message.
 
Methods inherited from class com.google.gwt.libideas.logging.client.PopupWidgetLogHandler
hideHandler, setPopupPosition, showLog
 
Methods inherited from class com.google.gwt.libideas.logging.shared.LogHandler
format, getLevel, isSupported, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeLogHandler

public TreeLogHandler(boolean autoShow)
TreeHandler, used only in development.

Parameters:
autoShow - is the tree handler shown when new logging messages are added.
Method Detail

clear

public void clear()
Clears the contents of the current log messages.

Overrides:
clear in class LogHandler

getChild

public FastTreeItem getChild(HasFastTreeItems parent,
                             java.lang.String childName)

getWidget

public com.google.gwt.user.client.ui.Widget getWidget()
Specified by:
getWidget in class PopupWidgetLogHandler

publish

public void publish(java.lang.String message,
                    Level level,
                    java.lang.String category,
                    java.lang.Throwable e)
Description copied from class: LogHandler
publish the message.

Specified by:
publish in class LogHandler
Parameters:
message - the message
level - the message's level
category - optional category
e - optional throwable