com.elixirtech.report2.runtime
Class BasicReportHost

java.lang.Object
  extended by com.elixirtech.report2.runtime.BasicReportHost
All Implemented Interfaces:
IReportHost

public class BasicReportHost
extends java.lang.Object
implements IReportHost

An implementation of the callback interface, IReportHost, that logs messages using Log4J


Field Summary
static org.apache.log4j.Logger m_Log
           
 
Constructor Summary
BasicReportHost()
           
 
Method Summary
 void error(java.lang.String msg)
          Log error message.
 void error(java.lang.String msg, java.lang.Throwable t)
          Log error message with stack trace.
 void info(java.lang.String msg)
          Log informative message.
 void setProgress(java.lang.String msg)
          Set progress.
 void userError(java.lang.String msg)
          Log error message that is useful to user.
 void warn(java.lang.String msg)
          Log warning message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Log

public static final org.apache.log4j.Logger m_Log
Constructor Detail

BasicReportHost

public BasicReportHost()
Method Detail

error

public void error(java.lang.String msg)
Log error message.

Specified by:
error in interface IReportHost
Parameters:
msg - error message to log.

error

public void error(java.lang.String msg,
                  java.lang.Throwable t)
Log error message with stack trace.

Specified by:
error in interface IReportHost
Parameters:
msg - error message to log.
t - error for stacktrace.

userError

public void userError(java.lang.String msg)
Log error message that is useful to user. Override to show a dialog. b

Specified by:
userError in interface IReportHost
Parameters:
msg - user error message to log.

warn

public void warn(java.lang.String msg)
Log warning message.

Specified by:
warn in interface IReportHost
Parameters:
msg - warn message to log.

info

public void info(java.lang.String msg)
Log informative message.

Specified by:
info in interface IReportHost
Parameters:
msg - informative message to log.

setProgress

public void setProgress(java.lang.String msg)
Set progress.

Specified by:
setProgress in interface IReportHost
Parameters:
msg - progress message