|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 listener| Method Detail |
|---|
public void scapeRemoved(ScapeEvent scapeEvent)
scapeRemoved in interface ScapeListenerscapeRemoved in class DefaultScapeListenerscapeEvent - the scape removed notification eventscapeAddedpublic void scapeNotification(ScapeEvent scapeEvent)
scapeNotification in interface ScapeListenerscapeNotification in class DefaultScapeListenerscapeEvent - a scape event updatepublic void notifyScapeUpdated()
notifyScapeUpdated in class DefaultScapeListenerpublic 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 | |||||||||