com.allen_sauer.gwt.log.client
Class DivLogger

java.lang.Object
  extended by com.allen_sauer.gwt.log.client.DivLogger
All Implemented Interfaces:
Logger

public class DivLogger
extends java.lang.Object
implements Logger

Logger which outputs to a draggable floating DIV.


Constructor Summary
DivLogger()
          Default constructor.
 
Method Summary
 void clear()
           
 com.google.gwt.user.client.ui.Widget getWidget()
           
 boolean isSupported()
           
 boolean isVisible()
           
 void log(LogRecord record)
           
 void moveTo(int x, int y)
           
 void setCurrentLogLevel(int level)
           
 void setPixelSize(int width, int height)
          Set explicit size of log scroll panel area.
 void setSize(java.lang.String width, java.lang.String height)
          Set explicit size of log scroll panel area.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DivLogger

public DivLogger()
Default constructor.

Method Detail

clear

public final void clear()
Specified by:
clear in interface Logger

getWidget

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

isSupported

public final boolean isSupported()
Specified by:
isSupported in interface Logger

isVisible

public final boolean isVisible()

log

public void log(LogRecord record)
Specified by:
log in interface Logger

moveTo

public final void moveTo(int x,
                         int y)

setCurrentLogLevel

public void setCurrentLogLevel(int level)
Specified by:
setCurrentLogLevel in interface Logger

setPixelSize

public final void setPixelSize(int width,
                               int height)
Set explicit size of log scroll panel area.

Parameters:
width - width in pixels
height - height in pixels

setSize

public final void setSize(java.lang.String width,
                          java.lang.String height)
Set explicit size of log scroll panel area.

Parameters:
width - width
height - height