Package net.simplace.pipe.progress
Class FWProgressTask
java.lang.Object
net.simplace.pipe.progress.FWProgressTask
- All Implemented Interfaces:
Comparable<FWProgressTask>
- Author:
- Andreas Enders, Sebastian Brocks, Martin Schmitz
A task that should be displayed in a
FWProgressViewPane
Changes:
- MS-01, 11.05.2009 (Martin Schmitz)
Tries to avoid memory incriminating object references. Instead of holding the whole Observable, on store its ID (for which the Observable is needed at all).
- MS-01, 11.05.2009 (Martin Schmitz)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclasssome static variables for the state of the task -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintget the imagelabel for this taskintintget the textlabel for this task may benullif this task doesn't need a textual descriptionbooleanvoidsetFixedLabel(String aFixedLabel) voidsetMessage(String aMessage) voidsetNumberInRange(int aNumberInRange) sets the number of the Task in the range of Tasks to be performedvoidsetStateOfTask(String aStatusOfTask, FWObservable aParameterMap) voidsetStateProgressing(int aPercentDone, String aMessage) toString()
-
Constructor Details
-
FWProgressTask
- Parameters:
aProgressID-aX-aY-aSystemID-aFixedLabel-
-
-
Method Details
-
getTextLabel
get the textlabel for this task may benullif this task doesn't need a textual description- Returns:
- the
JLabel
-
getImageLabel
get the imagelabel for this task- Returns:
- the
JLabel
-
getProgressID
- Returns:
- the iD
-
isImageUsed
public boolean isImageUsed()- Returns:
- the iD
-
getMessage
- Returns:
- the message of the Task
-
setMessage
- Parameters:
aMessage- the message to set
-
setFixedLabel
- Parameters:
aFixedLabel- the fixedLabel to set
-
setStateProgressing
- Parameters:
aPercentDone-aMessage-the- statusOfTask is set to progressing. percentDone (0-100).
-
getPercentDone
public int getPercentDone()- Returns:
- the percentDone (0-100)
-
getNumberInRange
public int getNumberInRange()- Returns:
- the number of the Task in the range of Tasks to be performed
-
setNumberInRange
public void setNumberInRange(int aNumberInRange) sets the number of the Task in the range of Tasks to be performed- Parameters:
aNumberInRange-
-
getStateOfTask
- Returns:
- the statusOfTask
-
setStateOfTask
- Parameters:
aStatusOfTask- the statusOfTask to set - use Variables in class StateaParameterMap-
-
getClonedTask
- Parameters:
aFixedLabel-- Returns:
- a clone of FWProgressTask
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<FWProgressTask>
-