|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.rt.UpdatingDisplayValue
public class UpdatingDisplayValue
An UpdatingDisplayValue is nearly identical to a DisplayValue, except that an UpdatingDisplayValue is provided with additional information that enables it to automatically refresh itself whenever the task given to it changes state. Objects can be notified of updates by using the addObserver method.
Method Summary | |
---|---|
void |
addObserver(DisplayValueObserver obs)
Adds an observer to listen for changes to this DisplayValue |
void |
disable()
Disables the display, stopping all notification of changes to the underlying expression. |
void |
enable()
Re-enables the display, resuming notification of events to all observers |
boolean |
equals(Object other)
|
FrameIdentifier |
getFrameIdentifier()
|
int |
getId()
|
String |
getName()
|
Task |
getTask()
|
Value |
getValue()
|
boolean |
isAvailable()
|
boolean |
isEnabled()
Check if this display is enabled or not. |
void |
refresh()
Updates the display to refect the new variable value |
boolean |
removeObserver(DisplayValueObserver obs)
Removes the given observer from the list of observers |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void refresh()
public void addObserver(DisplayValueObserver obs)
obs
- The new observer to be notifiedpublic boolean removeObserver(DisplayValueObserver obs)
obs
- The observer to remove
public boolean equals(Object other)
equals
in class Object
public void disable()
public void enable()
public boolean isEnabled()
public boolean isAvailable()
public Value getValue()
public FrameIdentifier getFrameIdentifier()
public Task getTask()
public String getName()
public int getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |