org.razvan.jzx
Class AppletLogger

java.lang.Object
  extended by org.razvan.jzx.AppletLogger
All Implemented Interfaces:
ILogger

public class AppletLogger
extends java.lang.Object
implements ILogger

Log messages using the AppletContext.showStatus() method (when JZX is running as an Applet.)

Author:
Razvan Surdulescu (c) 2001 - 2006
You may use and distribute this software for free provided you include this copyright notice. You may not sell this software, use my name for publicity reasons or modify the code without permission from me.
See Also:
ILogger

Field Summary
 
Fields inherited from interface org.razvan.jzx.ILogger
C_DEBUG, C_ERROR
 
Constructor Summary
AppletLogger(java.applet.Applet applet)
          Construct the AppletLogger using the AppletContext object from the specified Applet object.
 
Method Summary
 void log(int channel, java.lang.String message)
          Display the message in the status bar.
 void log(int channel, java.lang.Throwable t)
          Display the exception message in the status bar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppletLogger

public AppletLogger(java.applet.Applet applet)
Construct the AppletLogger using the AppletContext object from the specified Applet object.

Method Detail

log

public void log(int channel,
                java.lang.String message)
Display the message in the status bar.

Specified by:
log in interface ILogger

log

public void log(int channel,
                java.lang.Throwable t)
Display the exception message in the status bar.

Specified by:
log in interface ILogger