|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Observable
this interface is used by classes running tasks to implements Observer / Observable paradigm.
Eache watchable can have multiple watchers and must call the method update(object) of his watchers each time the watchable state changes.
Method Summary | |
---|---|
boolean |
addObserver(Observer o)
add a observer to this observable |
int |
getMax()
returns the number of steps the task will use. |
java.lang.String |
getMessage()
a string that describes the current operation. |
int |
getProgress()
returns a integere between 0 and max giving the progress of the task. |
long |
getProgressPercent()
returns a long between 0 an 100 that indicate the % of the task completed. |
boolean |
isFinished()
boolean returning true if task is finished |
void |
removeObserver(Observer o)
remove an observer from this observable |
Methods inherited from interface java.lang.Runnable |
---|
run |
Method Detail |
---|
boolean addObserver(Observer o)
void removeObserver(Observer o)
long getProgressPercent()
int getProgress()
int getMax()
java.lang.String getMessage()
boolean isFinished()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |