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

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

public class DivLogHandler
extends LogHandler

Logger which outputs to a draggable floating DIV.


Constructor Summary
DivLogHandler()
          Default constructor.
 
Method Summary
 void clear()
          Clears the handler if clear is supported.
static java.lang.String formatMessage(java.lang.String message, Level level, java.lang.Throwable throwable)
           
 com.google.gwt.user.client.ui.Widget getWidget()
           
 void hideHandler()
          Hides the handler, if hiding is supported.
 boolean isSupported()
          Is this handler supported in the given compilation configuration? By default the answer is "yes".
 boolean isVisible()
           
static java.lang.String makeTitle(java.lang.String message, java.lang.Throwable throwable)
           
 void moveTo(int x, int y)
           
 void publish(java.lang.String message, Level level, java.lang.String category, java.lang.Throwable throwable)
          publish the message.
 void setPixelSize(int width, int height)
           
 void setSize(java.lang.String width, java.lang.String height)
           
 
Methods inherited from class com.google.gwt.libideas.logging.shared.LogHandler
format, getLevel, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DivLogHandler

public DivLogHandler()
Default constructor.

Method Detail

clear

public final void clear()
Description copied from class: LogHandler
Clears the handler if clear is supported.

Overrides:
clear in class LogHandler

getWidget

public final com.google.gwt.user.client.ui.Widget getWidget()

isSupported

public final boolean isSupported()
Description copied from class: LogHandler
Is this handler supported in the given compilation configuration? By default the answer is "yes".

Overrides:
isSupported in class LogHandler
Returns:
is the handler supported;

isVisible

public final boolean isVisible()

moveTo

public final void moveTo(int x,
                         int y)

setPixelSize

public final void setPixelSize(int width,
                               int height)

setSize

public final void setSize(java.lang.String width,
                          java.lang.String height)

publish

public final void publish(java.lang.String message,
                          Level level,
                          java.lang.String category,
                          java.lang.Throwable throwable)
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
throwable - optional throwable

formatMessage

public static java.lang.String formatMessage(java.lang.String message,
                                             Level level,
                                             java.lang.Throwable throwable)

makeTitle

public static java.lang.String makeTitle(java.lang.String message,
                                         java.lang.Throwable throwable)

hideHandler

public void hideHandler()
Description copied from class: LogHandler
Hides the handler, if hiding is supported.

Overrides:
hideHandler in class LogHandler