story.dbcore.gui
Class ProgressNotifier

java.lang.Object
  extended by story.dbcore.gui.ProgressNotifier
All Implemented Interfaces:
RenderableObject

public class ProgressNotifier
extends java.lang.Object
implements RenderableObject

Companion class for WaitFrame that manages updating the progress bar.


Constructor Summary
ProgressNotifier(WaitFrame waitDialog, double floor, double ceiling)
           
 
Method Summary
 java.lang.StringBuffer render()
           
 void setProgress(double progress, java.lang.String message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressNotifier

public ProgressNotifier(WaitFrame waitDialog,
                        double floor,
                        double ceiling)
Parameters:
floor - The progress that the bar should start from, so that it is shown when the progress sent to this notifier is 0.
ceiling - The progress that the bar should show (between 0 and 1) when the progress sent to this notifier reaches 1. In other words, the scaling factor that this progress notifier uses in pushing progress to the overall progress bar.
Method Detail

setProgress

public void setProgress(double progress,
                        java.lang.String message)

render

public java.lang.StringBuffer render()
Specified by:
render in interface RenderableObject


Copyright © 2011 David K. Elson. All Rights Reserved.