de.uni_paderborn.fujaba.app
Class ProgressBarWrapper

java.lang.Object
  extended byde.uni_paderborn.fujaba.app.ProgressBarWrapper

public class ProgressBarWrapper
extends java.lang.Object

Singleton ProgressBarWrapper gives a more comfortable access to the progress bar class, in the future this two classes should be merged.

Version:
$Revision: 1.17 $
Author:
$Author: schneider $

Constructor Summary
ProgressBarWrapper(javax.swing.JFrame frame, java.lang.String title, int max)
          The constructor.
 
Method Summary
 void closeWindow()
          Finally close the progress bar window.
 void increment(java.lang.String statusText)
          This Function increments the progress of an initialized progress bar by one.
 boolean isAborted()
          Get the aborted attribute of the ProgressBarWrapper object
 void openWindow()
          With this function you can open a Progress Bar window for showing the current whatsoever status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressBarWrapper

public ProgressBarWrapper(javax.swing.JFrame frame,
                          java.lang.String title,
                          int max)
The constructor.

Parameters:
frame - No description provided
title - No description provided
max - No description provided
Method Detail

openWindow

public void openWindow()
With this function you can open a Progress Bar window for showing the current whatsoever status.


increment

public void increment(java.lang.String statusText)
This Function increments the progress of an initialized progress bar by one.

Parameters:
statusText - No description provided

isAborted

public boolean isAborted()
Get the aborted attribute of the ProgressBarWrapper object

Returns:
The aborted value

closeWindow

public void closeWindow()
Finally close the progress bar window. Please invoke this method in a try-finally-block to reset the cursor.