de.betabeans.scroogexhtml.debugging
Class DefaultDebugger

java.lang.Object
  extended by de.betabeans.scroogexhtml.debugging.DefaultDebugger
All Implemented Interfaces:
DebugInterface

public final class DefaultDebugger
extends java.lang.Object
implements DebugInterface

Simple debugger implementation.

Author:
Michael Justin

Field Summary
 
Fields inherited from interface de.betabeans.scroogexhtml.debugging.DebugInterface
CL_FONT, CL_INFO, CL_PARAM, CL_PARSED, CL_UNKNOWN, CL_WARN
 
Constructor Summary
DefaultDebugger()
           
 
Method Summary
 boolean isDebugMode()
          Gets the debugMode attribute of the Debugger object.
 void setDebugMode(boolean adebugMode)
          Sets the debugMode attribute of the Debugger object.
 void setDocument(Document adocument)
          Sets the document attribute of the Debugger object.
 void write(java.lang.String color, char debugChar)
          Write a character to the debugger.
 void write(java.lang.String color, java.lang.String debugText)
          Write a string to the debugger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDebugger

public DefaultDebugger()
Method Detail

setDebugMode

public void setDebugMode(boolean adebugMode)
Sets the debugMode attribute of the Debugger object.

Specified by:
setDebugMode in interface DebugInterface
Parameters:
adebugMode - The new debugMode value

setDocument

public void setDocument(Document adocument)
Sets the document attribute of the Debugger object.

Specified by:
setDocument in interface DebugInterface
Parameters:
adocument - The new document value

isDebugMode

public boolean isDebugMode()
Gets the debugMode attribute of the Debugger object.

Specified by:
isDebugMode in interface DebugInterface
Returns:
The debugMode value

write

public void write(java.lang.String color,
                  java.lang.String debugText)
Write a string to the debugger.

Specified by:
write in interface DebugInterface
Parameters:
debugText - The message to be written.
color - HTML color code.

write

public void write(java.lang.String color,
                  char debugChar)
Write a character to the debugger.

Specified by:
write in interface DebugInterface
Parameters:
color - HTML color code.
debugChar - The character to be written.


Copyright (c) 1998-2006 BetaSoft Michael Justin. All Rights Reserved.