com.jgoodies.uif.splash
Class LogSplash

java.lang.Object
  extended by com.jgoodies.uif.splash.LogSplash
All Implemented Interfaces:
SplashProvider

public final class LogSplash
extends Object
implements SplashProvider

A SplashProvider implementation that logs progress and splash messages to a Logger.

Version:
$Revision: 1.4 $
Author:
Karsten Lentzsch
See Also:
Splash

Constructor Summary
LogSplash()
          Constructs a LogSplash with a default Logger logging on the INFO level.
LogSplash(Logger logger, Level logLevel)
          Constructs a LogSplash for the specified Logger and Level.
 
Method Summary
 void closeSplash()
          Implements the close splash behavior; does nothing.
 void openSplash()
          Implements the open splash behavior; does nothing.
 void setNote(String message)
          Logs the given splash message.
 void setProgress(int percent)
          Logs the given splash progress.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogSplash

public LogSplash()
Constructs a LogSplash with a default Logger logging on the INFO level.


LogSplash

public LogSplash(Logger logger,
                 Level logLevel)
Constructs a LogSplash for the specified Logger and Level.

Parameters:
logger - the Logger used to log splash events
logLevel - the log level used to log the splash events
Method Detail

openSplash

public void openSplash()
Implements the open splash behavior; does nothing.

Specified by:
openSplash in interface SplashProvider

closeSplash

public void closeSplash()
Implements the close splash behavior; does nothing.

Specified by:
closeSplash in interface SplashProvider

setProgress

public void setProgress(int percent)
Logs the given splash progress.

Specified by:
setProgress in interface SplashProvider
Parameters:
percent - the new progress in percent

setNote

public void setNote(String message)
Logs the given splash message.

Specified by:
setNote in interface SplashProvider
Parameters:
message - the log message to be presented


Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.