|
||||||||||
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.runtime.RuntimeEnvironment
public class RuntimeEnvironment
Supports all non-ui shared aspects of Ascape runtime environment, including console view, managing environment views, etc..
Field Summary |
---|
Fields inherited from class org.ascape.model.event.DefaultScapeListener |
---|
listeningToScape, name, scape |
Constructor Summary | |
---|---|
RuntimeEnvironment()
Instantiates a new runtime environment. |
Method Summary | |
---|---|
void |
addView(ScapeListener view)
Adds the view. |
void |
addView(ScapeListener view,
boolean createFrame)
Adds the view. |
void |
addViews(ScapeListener[] views)
Adds the views. |
void |
addViews(ScapeListener[] views,
boolean createFrame)
Adds the views. |
void |
environmentQuiting(ScapeEvent scapeEvent)
Setup up a basic interactive controlBar time userEnvironment for a model application. |
static void |
exit()
Final kill. |
ConsoleOutView |
getConsole()
Gets the consoleOutView for the ModelRoot object. |
java.util.ArrayList |
getEnvironmentViews()
Gets the environment views. |
void |
quit()
Exits the application; allowing views to close themseleves gracefully. |
void |
removeView(ScapeListener view)
Removes the view. |
void |
removeViews(ScapeListener[] views)
Removes the views. |
void |
scapeAdded(ScapeEvent scapeEvent)
When a scape is added add any persiten views to it and set frame title. |
void |
setConsole(ConsoleOutView consoleOutView)
Sets consoleOutView for the ModelRoot object. |
Methods inherited from class org.ascape.model.event.DefaultScapeListener |
---|
clone, getName, getScape, isGraphic, isLifeOfScape, isNotifyScapeAutomatically, notifyScapeUpdated, scapeClosing, scapeDeserialized, scapeInitialized, scapeIterated, scapeNotification, scapeRemoved, scapeSetup, scapeStarted, scapeStopped, setName, setNotifyScapeAutomatically, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RuntimeEnvironment()
Method Detail |
---|
public void addView(ScapeListener view, boolean createFrame)
view
- the viewcreateFrame
- the create framepublic void addView(ScapeListener view)
view
- the viewpublic void addViews(ScapeListener[] views)
views
- the viewspublic void addViews(ScapeListener[] views, boolean createFrame)
views
- the viewscreateFrame
- the create framepublic void removeView(ScapeListener view)
view
- the viewpublic void removeViews(ScapeListener[] views)
views
- the viewspublic void environmentQuiting(ScapeEvent scapeEvent)
environmentQuiting
in interface ScapeListener
environmentQuiting
in class DefaultScapeListener
scapeEvent
- the scape eventpublic void quit()
quit()
instead, allowing a running scape to stop
gracefully. Override this method if you want to provide any scape related
pre-quit finalization or clean-up.
quit()
public static void exit()
public void scapeAdded(ScapeEvent scapeEvent) throws java.util.TooManyListenersException
scapeAdded
in interface ScapeListener
scapeAdded
in class DefaultScapeListener
scapeEvent
- the scape event
java.util.TooManyListenersException
- the too many listeners exceptionpublic ConsoleOutView getConsole()
public void setConsole(ConsoleOutView consoleOutView)
consoleOutView
- the consoleOutViewpublic java.util.ArrayList getEnvironmentViews()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |