org.openbp.swing.components.splash
Interface Progressable


public interface Progressable

This Interface declares objects that can be displayed in a splash screen.

Author:
Jens Ferchland

Method Summary
 double getProgress()
          Returns the progress of this Progressable object.
 javax.swing.JComponent getProgressableComponent()
          Returns the component that can show the progress.
 void setProgress(double d)
          Sets the progress of the object.
 

Method Detail

getProgressableComponent

javax.swing.JComponent getProgressableComponent()
Returns the component that can show the progress.

Returns:
This may be e. g. a JProgressBar

setProgress

void setProgress(double d)
Sets the progress of the object.

Parameters:
d - Progress (0 <= d <= 1f)
0 means nothing done and 1 means action finished.

getProgress

double getProgress()
Returns the progress of this Progressable object.

Returns:
Progress (0 <= d <= 1f)
0 means nothing done and 1 means action finished.


Copyright © 2011. All Rights Reserved.