org.hcilab.btprinter.platform.j2me
Class LogHandlerImpl

java.lang.Object
  extended by org.hcilab.btprinter.platform.j2me.LogHandlerImpl
All Implemented Interfaces:
org.hcilab.btprinter.abstractionlayer.LogHandler

public class LogHandlerImpl
extends java.lang.Object
implements org.hcilab.btprinter.abstractionlayer.LogHandler

Log handler implementation for the J2ME. Uses a form to outout messages.

Version:
1.0.0
Author:
Dominik Schmidt

Field Summary
private  javax.microedition.lcdui.Form form
          Form to putput log messages
private  byte level
          Log messages output level
 
Fields inherited from interface org.hcilab.btprinter.abstractionlayer.LogHandler
LEVEL_FINE, LEVEL_INFO, LEVEL_NONE, LEVEL_SEVERE
 
Constructor Summary
LogHandlerImpl(javax.microedition.lcdui.Form form)
          Initializes this log handler.
 
Method Summary
 void fine(java.lang.String msg)
           
 byte getLevel()
           
 void info(java.lang.String msg)
           
 void setLevel(byte level)
           
 void severe(java.lang.String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

form

private javax.microedition.lcdui.Form form
Form to putput log messages


level

private byte level
Log messages output level

Constructor Detail

LogHandlerImpl

public LogHandlerImpl(javax.microedition.lcdui.Form form)
Initializes this log handler.

Parameters:
form - Form to use for output log messages
Method Detail

fine

public void fine(java.lang.String msg)
Specified by:
fine in interface org.hcilab.btprinter.abstractionlayer.LogHandler

getLevel

public byte getLevel()
Specified by:
getLevel in interface org.hcilab.btprinter.abstractionlayer.LogHandler

info

public void info(java.lang.String msg)
Specified by:
info in interface org.hcilab.btprinter.abstractionlayer.LogHandler

setLevel

public void setLevel(byte level)
Specified by:
setLevel in interface org.hcilab.btprinter.abstractionlayer.LogHandler

severe

public void severe(java.lang.String msg)
Specified by:
severe in interface org.hcilab.btprinter.abstractionlayer.LogHandler