ucot.core
Class DummyProgressBar

java.lang.Object
  extended by ucot.core.DummyProgressBar
All Implemented Interfaces:
ProgressBarInterface

public class DummyProgressBar
extends java.lang.Object
implements ProgressBarInterface

DummyProgressBar which does absolutely nothing but helps avoiding null values in ProgressBar variables.

Author:
tujupien

Constructor Summary
DummyProgressBar()
           
 
Method Summary
 int getMaximum()
          Gets the maximum value for the progress bar.
 int getMinimum()
          Gets the minimum value for the progress bar.
 double getPercentageComplete()
          Gets the current percentage completed.
 java.lang.String getString()
          Gets the current action description.
 int getValue()
          Gets the current value of the progress bar.
 void setMaximum(int maximum)
          Sets the maximum value of the progress bar.
 void setMinimum(int minimum)
          Sets the minimum value of the progress bar.
 void setString(java.lang.String string)
          Sets the action description string.
 void setValue(int value)
          Sets the current value of the progress bar.
 void setVisible(boolean visible)
          Method for setting the progress bar (dialog) visible or hiding it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyProgressBar

public DummyProgressBar()
Method Detail

getMaximum

public int getMaximum()
Description copied from interface: ProgressBarInterface

Gets the maximum value for the progress bar.

Specified by:
getMaximum in interface ProgressBarInterface
Returns:
The maximum value for the progress bar.

getMinimum

public int getMinimum()
Description copied from interface: ProgressBarInterface

Gets the minimum value for the progress bar.

Specified by:
getMinimum in interface ProgressBarInterface
Returns:
The minimum value for the progress bar.

getPercentageComplete

public double getPercentageComplete()
Description copied from interface: ProgressBarInterface

Gets the current percentage completed. Which is getValue() / (getMaximum() - getMinimum()).

Specified by:
getPercentageComplete in interface ProgressBarInterface
Returns:
Current percentage completed.

getString

public java.lang.String getString()
Description copied from interface: ProgressBarInterface

Gets the current action description.

Specified by:
getString in interface ProgressBarInterface
Returns:
Action description.

getValue

public int getValue()
Description copied from interface: ProgressBarInterface

Gets the current value of the progress bar.

Specified by:
getValue in interface ProgressBarInterface
Returns:
Current value.

setMaximum

public void setMaximum(int maximum)
Description copied from interface: ProgressBarInterface

Sets the maximum value of the progress bar.

Specified by:
setMaximum in interface ProgressBarInterface
Parameters:
maximum - Maximum value of the progress bar.

setMinimum

public void setMinimum(int minimum)
Description copied from interface: ProgressBarInterface

Sets the minimum value of the progress bar.

Specified by:
setMinimum in interface ProgressBarInterface
Parameters:
minimum - Minimum value of the progress bar.

setString

public void setString(java.lang.String string)
Description copied from interface: ProgressBarInterface

Sets the action description string.

Specified by:
setString in interface ProgressBarInterface
Parameters:
string - Current action description.

setValue

public void setValue(int value)
Description copied from interface: ProgressBarInterface

Sets the current value of the progress bar.

Specified by:
setValue in interface ProgressBarInterface
Parameters:
value - Current value.

setVisible

public void setVisible(boolean visible)
Description copied from interface: ProgressBarInterface

Method for setting the progress bar (dialog) visible or hiding it.

Specified by:
setVisible in interface ProgressBarInterface
Parameters:
visible - Indicates wether the progress bar is visible or invisible.