cometa.gui
Class ExecutionProgress

java.lang.Object
  extended by cometa.gui.ExecutionProgress
All Implemented Interfaces:
java.lang.Runnable

public class ExecutionProgress
extends java.lang.Object
implements java.lang.Runnable

This class shows a small dialog (without decoration) in the middle of the screen, with a progess bar.


Constructor Summary
ExecutionProgress(java.lang.String text)
          It creates a new progress bar with a given text.
 
Method Summary
 void run()
          It shows the progress bar dialog.
 void setText(java.lang.String newText)
          It sets the text on the progress bar dialog.
 void setVisible(boolean value)
          This method shows or hides the progress bar dialog.
 void stop()
          It hides the progress bar dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionProgress

public ExecutionProgress(java.lang.String text)
It creates a new progress bar with a given text.

Parameters:
text - The text to be shown in the progress bar dialog.
Method Detail

setVisible

public void setVisible(boolean value)
This method shows or hides the progress bar dialog.

Parameters:
value - If true, the dialog is shown, otherwise it is hidden.

setText

public void setText(java.lang.String newText)
It sets the text on the progress bar dialog.

Parameters:
newText - The text to be set.

run

public void run()
It shows the progress bar dialog.

Specified by:
run in interface java.lang.Runnable

stop

public void stop()
It hides the progress bar dialog.