SRJRCFrames
v0.1.296

de.schwarzrot.concurrent
Class ProgressPublisher

java.lang.Object
  extended by de.schwarzrot.concurrent.ProgressPublisher

public class ProgressPublisher
extends Object

counterpart of ProgressMonitor. The ProgressMonitor is the visual part of the "wait"-message, where as the ProgressPublisher is the stub used by the background tasks to update the "wait"-message.

Author:
Reinhard Mantey

Constructor Summary
ProgressPublisher()
           
ProgressPublisher(RootWindowHandler pmg)
           
 
Method Summary
protected  void checkMonitor()
           
protected  void checkMonitor(int minValue, int maxValue)
           
protected  void closeMonitor()
           
 void configure(int minValue, int maxValue)
          initialize the range of the "wait"-message slider.
 void end()
          closes the "wait"-message and releases blocked gui parts
 boolean isActive()
          returns true if already a "wait"-message is active.
 void publishProgress(int progress, String item)
          change the slider of "wait"-message.
protected  void setLimits(int minValue, int maxValue)
           
protected  void setProgress(int progress, String item)
           
 void start()
          popup the "wait"-message, that blocks related gui-parts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressPublisher

public ProgressPublisher()

ProgressPublisher

public ProgressPublisher(RootWindowHandler pmg)
Method Detail

configure

public void configure(int minValue,
                      int maxValue)
initialize the range of the "wait"-message slider.

Parameters:
minValue - where to start
maxValue - last step

end

public void end()
closes the "wait"-message and releases blocked gui parts


isActive

public final boolean isActive()
returns true if already a "wait"-message is active.

Returns:
true if a "wait"-message is active, false if a new one may be started

publishProgress

public void publishProgress(int progress,
                            String item)
change the slider of "wait"-message. Only usable it the limits have been set by a call of configure.

Parameters:
progress - number of completed steps
item - message to identify the current step

start

public void start()
popup the "wait"-message, that blocks related gui-parts


checkMonitor

protected void checkMonitor()

checkMonitor

protected void checkMonitor(int minValue,
                            int maxValue)

closeMonitor

protected void closeMonitor()

setLimits

protected void setLimits(int minValue,
                         int maxValue)

setProgress

protected void setProgress(int progress,
                           String item)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.