|
![]() |
|||||||||
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.runtime.RuntimeEnvironment
org.ascape.runtime.AbstractUIEnvironment
org.ascape.runtime.swing.SwingEnvironment
public abstract class SwingEnvironment
User: milesparker Date: May 26, 2006 Time: 7:29:23 PM To change this template use File | Settings | File Templates.
Field Summary | |
---|---|
protected ControlBarView |
controlBarView
The control bar view. |
protected static javax.swing.JTextField |
modelNameField
The model name field. |
Fields inherited from class org.ascape.runtime.AbstractUIEnvironment |
---|
DEBUG_RUNTIME_MODE, RELEASE_RUNTIME_MODE, runtimeMode |
Fields inherited from class org.ascape.model.event.DefaultScapeListener |
---|
listeningToScape, name, scape |
Constructor Summary | |
---|---|
protected |
SwingEnvironment()
Instantiates a new UI environment. |
Method Summary | |
---|---|
void |
addView(ScapeListener view,
boolean createFrame)
Adds the view. |
void |
addViews(ScapeListener[] views,
boolean createFrame)
Adds the views. |
void |
createFrame(ComponentView view)
Creates the frame. |
abstract void |
createFrame(ComponentView[] views)
Creates the frame. |
java.util.Vector |
getAllFrames()
Returns the actual frame implementation. |
ControlBarView |
getControlBarView()
Gets the controlBarView for the ModelRoot object. |
java.awt.Container |
getRootPane()
Gets the root pane. |
java.lang.String |
openDialog()
Gets the users models name from a dialog and validates that it is a legitimate class name. |
void |
removeView(ScapeListener view)
Removes the view. |
void |
setControlBarView(ControlBarView controlBarView)
Sets controlBarView for the ModelRoot object. |
void |
setRootPane(java.awt.Container rootPane)
Sets the root pane. |
void |
showErrorDialog(Scape scape,
java.lang.RuntimeException e)
Displays a standard splash screen message asserting copyright and other information. |
static void |
showSplashScreenNotice()
Displays a standard splash screen message asserting copyright and other information. |
Methods inherited from class org.ascape.runtime.AbstractUIEnvironment |
---|
getCustomizer, getRuntimeMode, isInApplet, isRedirectConsole, isShowNavigator, setApplet, setCustomizer, setRedirectConsole, setRuntimeMode, setShowNavigator |
Methods inherited from class org.ascape.runtime.RuntimeEnvironment |
---|
addView, addViews, environmentQuiting, exit, getConsole, getEnvironmentViews, quit, removeViews, scapeAdded, setConsole |
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 |
Field Detail |
---|
protected transient ControlBarView controlBarView
protected static javax.swing.JTextField modelNameField
Constructor Detail |
---|
protected SwingEnvironment()
Method Detail |
---|
public ControlBarView getControlBarView()
public void setControlBarView(ControlBarView controlBarView)
controlBarView
- the controlBarViewpublic java.awt.Container getRootPane()
public void setRootPane(java.awt.Container rootPane)
rootPane
- the new root panepublic static final void showSplashScreenNotice()
public void showErrorDialog(Scape scape, java.lang.RuntimeException e)
showErrorDialog
in class AbstractUIEnvironment
scape
- the scapee
- the epublic java.lang.String openDialog()
openDialog
in class AbstractUIEnvironment
public void addViews(ScapeListener[] views, boolean createFrame)
RuntimeEnvironment
addViews
in class RuntimeEnvironment
views
- the viewscreateFrame
- the create framepublic void addView(ScapeListener view, boolean createFrame)
RuntimeEnvironment
addView
in class RuntimeEnvironment
view
- the viewcreateFrame
- the create framepublic void removeView(ScapeListener view)
RuntimeEnvironment
removeView
in class RuntimeEnvironment
view
- the viewpublic void createFrame(ComponentView view)
view
- the viewpublic abstract void createFrame(ComponentView[] views)
views
- the viewspublic java.util.Vector getAllFrames()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |