java.lang.Objectucot.core.DummyProgressBar
public class DummyProgressBar
DummyProgressBar which does absolutely nothing but helps avoiding null values in ProgressBar variables.
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 |
---|
public DummyProgressBar()
Method Detail |
---|
public int getMaximum()
ProgressBarInterface
Gets the maximum value for the progress bar.
getMaximum
in interface ProgressBarInterface
public int getMinimum()
ProgressBarInterface
Gets the minimum value for the progress bar.
getMinimum
in interface ProgressBarInterface
public double getPercentageComplete()
ProgressBarInterface
Gets the current percentage completed. Which is
getValue() / (getMaximum() - getMinimum())
.
getPercentageComplete
in interface ProgressBarInterface
public java.lang.String getString()
ProgressBarInterface
Gets the current action description.
getString
in interface ProgressBarInterface
public int getValue()
ProgressBarInterface
Gets the current value of the progress bar.
getValue
in interface ProgressBarInterface
public void setMaximum(int maximum)
ProgressBarInterface
Sets the maximum value of the progress bar.
setMaximum
in interface ProgressBarInterface
maximum
- Maximum value of the progress bar.public void setMinimum(int minimum)
ProgressBarInterface
Sets the minimum value of the progress bar.
setMinimum
in interface ProgressBarInterface
minimum
- Minimum value of the progress bar.public void setString(java.lang.String string)
ProgressBarInterface
Sets the action description string.
setString
in interface ProgressBarInterface
string
- Current action description.public void setValue(int value)
ProgressBarInterface
Sets the current value of the progress bar.
setValue
in interface ProgressBarInterface
value
- Current value.public void setVisible(boolean visible)
ProgressBarInterface
Method for setting the progress bar (dialog) visible or hiding it.
setVisible
in interface ProgressBarInterface
visible
- Indicates wether the progress bar is visible or invisible.