|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ascape.model.event.DefaultScapeListener org.ascape.model.event.ScapeListenerDelegate
public class ScapeListenerDelegate
Manages the relationship between a listener and its scape, including listener registeration and managing calling appopriate view methods for scape events.
Field Summary |
---|
Fields inherited from class org.ascape.model.event.DefaultScapeListener |
---|
listeningToScape, name, scape |
Constructor Summary | |
---|---|
ScapeListenerDelegate()
Constructs the ScapeListenerDelegate. |
|
ScapeListenerDelegate(ScapeListener scapeListener)
Constructs the ScapeListenerDelegate. |
Method Summary | |
---|---|
ScapeListener |
getScapeListener()
Returns the scape view that this delegate is responsible for. |
void |
notifyScapeUpdated()
Calls the observed scape and notifies it that the view has finished updating its state. |
void |
scapeNotification(ScapeEvent scapeEvent)
Notifies the delegating view that something has happened on the scape. |
void |
scapeRemoved(ScapeEvent scapeEvent)
Notifies the listener that the scape has removed it. |
void |
setScapeListener(ScapeListener scapeListener)
Sets the scape view that this delegate is responsible for. |
java.lang.String |
toString()
Returns a description of the deleaget and is delegating view. |
Methods inherited from class org.ascape.model.event.DefaultScapeListener |
---|
clone, environmentQuiting, getName, getScape, isGraphic, isLifeOfScape, isNotifyScapeAutomatically, scapeAdded, scapeClosing, scapeDeserialized, scapeInitialized, scapeIterated, scapeSetup, scapeStarted, scapeStopped, setName, setNotifyScapeAutomatically |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScapeListenerDelegate()
public ScapeListenerDelegate(ScapeListener scapeListener)
scapeListener
- the scape listenerMethod Detail |
---|
public void scapeRemoved(ScapeEvent scapeEvent)
scapeRemoved
in interface ScapeListener
scapeRemoved
in class DefaultScapeListener
scapeEvent
- the scape removed notification eventscapeAdded
public void scapeNotification(ScapeEvent scapeEvent)
scapeNotification
in interface ScapeListener
scapeNotification
in class DefaultScapeListener
scapeEvent
- a scape event updatepublic void notifyScapeUpdated()
notifyScapeUpdated
in class DefaultScapeListener
public ScapeListener getScapeListener()
public void setScapeListener(ScapeListener scapeListener)
scapeListener
- the scape listenerpublic java.lang.String toString()
toString
in class DefaultScapeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |