|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectshady.common.ui.UI
shady.common.ui.multi.MultiUI
public abstract class MultiUI
MultiShady UI.
Copyright (C) 2006 Marsette A. Vona, III
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
| Field Summary | |
|---|---|
private static java.lang.String |
cvsid
|
static java.lang.String |
DEFAULT_MULTI_APPNAME
The default name of the application. |
static java.lang.String |
DEFAULT_MULTI_JS_PROMPT
The default JScheme prompt. |
static java.lang.String |
JS_CHAIN
The name of the chain scheme. |
protected MultiShadyCommonAPI |
multiShady
The MultiShady. |
protected int |
selectedIndex
Index of the currently selected member (which UI.shady
references), or negative if none (shady null). |
static java.lang.String |
SHADY_JS_MULTI_API
The name of the scheme bindings for the multi api. |
static java.lang.String |
SHADY_JS_MULTI_EXTRA
The name of the scheme bindings for the multi extra stuff. |
| Constructor Summary | |
|---|---|
MultiUI()
Covers MultiUI(String[]), no args. |
|
MultiUI(MultiEnvironment environment,
MultiShadyCommonAPI multiShady,
int selectedIndex,
java.lang.String[] arg)
Create a new MultiUI. |
|
MultiUI(java.lang.String[] arg)
Covers MultiUI(MultiEnvironment, MultiShadyCommonAPI, int,
String[]), always makeDefaultMultiShady(shady.common.multi.MultiEnvironment) and UI.makeDefaultEnvironment() and select no member. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getAppname()
Get the application name. |
java.lang.String |
getJSchemePrompt()
Get the JScheme interpreter prompt to use. |
int |
getSelectedIndex()
Get the index of the current selected MemberShady, if any. |
protected void |
loadJSchemeFiles()
Load initial JScheme files iff UI.js is not null |
protected AccountingDisplay |
makeAccountingDisplay(ShadyCommonAPI shady)
This impl returns null. |
protected ControlsDisplay |
makeControlsDisplay(ShadyCommonAPI shady)
Make the controls display. |
protected abstract MultiShadyCommonAPI |
makeDefaultMultiShady(MultiEnvironment environment)
Make a default MultiShady to use if none is specified to the constructor. |
protected ShadyCommonAPI |
makeDefaultShady(Environment environment)
Make a default shady to use if none is specified to the constructor. |
protected GraphicsDisplay |
makeGraphicsDisplay(ShadyCommonAPI shady,
Environment environment)
Make the graphics display. |
protected ControlsDisplay |
makeMultiControlsDisplay(MultiShadyCommonAPI multiShady)
Make the multi ControlsDisplay. |
protected MultiGraphicsDisplay |
makeMultiGraphicsDisplay(MultiShadyCommonAPI multiShady,
MultiEnvironment environment)
Make the MultiGraphicsDisplay. |
protected Pathfinder |
makePathfinder(ShadyCommonAPI shady,
Environment environment,
GraphicsDisplay graphicsDisplay)
This impl returns null. |
protected PoseDisplay |
makePoseDisplay(ShadyCommonAPI shady,
GraphicsDisplay graphicsDisplay)
Make the pose display. |
protected StateDisplay |
makeStateDisplay(ShadyCommonAPI shady)
Make the state display. |
protected void |
setJSGlobals(jscheme.JScheme js)
Bind global JScheme values. |
void |
setSelectedIndex(int index)
Set the index of the current selected MemberShady. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String cvsid
public static final java.lang.String DEFAULT_MULTI_APPNAME
The default name of the application.
public static final java.lang.String SHADY_JS_MULTI_API
The name of the scheme bindings for the multi api.
public static final java.lang.String SHADY_JS_MULTI_EXTRA
The name of the scheme bindings for the multi extra stuff.
public static final java.lang.String DEFAULT_MULTI_JS_PROMPT
The default JScheme prompt.
public static final java.lang.String JS_CHAIN
The name of the chain scheme.
protected MultiShadyCommonAPI multiShady
The MultiShady.
protected int selectedIndex
Index of the currently selected member (which UI.shady
references), or negative if none (shady null).
| Constructor Detail |
|---|
public MultiUI(MultiEnvironment environment,
MultiShadyCommonAPI multiShady,
int selectedIndex,
java.lang.String[] arg)
throws java.lang.Exception
Create a new MultiUI.
Everything is init from the various make*() methods.
environment - the mechanism's environment, if null then UI.makeDefaultEnvironment()multiShady - the MultiShady with which to interact, if null then
makeDefaultMultiShady(shady.common.multi.MultiEnvironment)selectedIndex - the index of the initial selected member in
multiShady, negative for nonearg - the arguments that were passed to main, null if applet
java.lang.Exception
public MultiUI(java.lang.String[] arg)
throws java.lang.Exception
Covers MultiUI(MultiEnvironment, MultiShadyCommonAPI, int,
String[]), always makeDefaultMultiShady(shady.common.multi.MultiEnvironment) and UI.makeDefaultEnvironment() and select no member.
java.lang.Exception
public MultiUI()
throws java.lang.Exception
Covers MultiUI(String[]), no args.
java.lang.Exception| Method Detail |
|---|
protected ShadyCommonAPI makeDefaultShady(Environment environment)
throws java.lang.Exception
Make a default shady to use if none is specified to the constructor.
This impl returns null, see makeDefaultMultiShady(shady.common.multi.MultiEnvironment).
makeDefaultShady in class UIenvironment - the Environment, null if none
java.lang.Exceptionprotected abstract MultiShadyCommonAPI makeDefaultMultiShady(MultiEnvironment environment)
Make a default MultiShady to use if none is specified to the constructor.
environment - the MultiEnvironment, null if none
protected StateDisplay makeStateDisplay(ShadyCommonAPI shady)
Make the state display.
This is a hook so subclasses can use a specialized display or disable it.
Default impl returns a new StateDisplay.
This impl returns null.
makeStateDisplay in class UIshady - the shady to display
protected GraphicsDisplay makeGraphicsDisplay(ShadyCommonAPI shady,
Environment environment)
Make the graphics display.
This is a hook so subclasses can use a specialized display or disable it.
Default impl returns a new GraphicsDisplay.
This impl returns null, see makeMultiGraphicsDisplay(shady.common.multi.MultiShadyCommonAPI, shady.common.multi.MultiEnvironment).
makeGraphicsDisplay in class UIshady - the shady to displayenvironment - the environment if any
protected MultiGraphicsDisplay makeMultiGraphicsDisplay(MultiShadyCommonAPI multiShady,
MultiEnvironment environment)
Make the MultiGraphicsDisplay.
This is a hook so subclasses can use a specialized display or disable it.
Default impl returns a new MultiGraphicsDisplay.
multiShady - the MultiShady to displayenvironment - the environment if any
protected PoseDisplay makePoseDisplay(ShadyCommonAPI shady,
GraphicsDisplay graphicsDisplay)
Make the pose display.
This is a hook so subclasses can use a specialized display or disable it.
Default impl returns a new PoseDisplay.
This impl returns null.
makePoseDisplay in class UIshady - the shady to display
protected ControlsDisplay makeControlsDisplay(ShadyCommonAPI shady)
Make the controls display.
This is a hook so subclasses can use a specialized display or disable it.
Default impl returns a new ControlsDisplay.
This impl returns null, see makeMultiGraphicsDisplay(shady.common.multi.MultiShadyCommonAPI, shady.common.multi.MultiEnvironment).
makeControlsDisplay in class UIshady - the shady to display
protected ControlsDisplay makeMultiControlsDisplay(MultiShadyCommonAPI multiShady)
Make the multi ControlsDisplay.
This is a hook so subclasses can use a specialized display or disable it.
Default impl returns null.
multiShady - the MultiShady to display
protected AccountingDisplay makeAccountingDisplay(ShadyCommonAPI shady)
This impl returns null.
makeAccountingDisplay in class UIshady - the shady to display
protected Pathfinder makePathfinder(ShadyCommonAPI shady,
Environment environment,
GraphicsDisplay graphicsDisplay)
This impl returns null.
makePathfinder in class UIshady - the shadyenvironment - the Environment, null if nonegraphicsDisplay - the GraphicsDisplay, null if none
public void setSelectedIndex(int index)
Set the index of the current selected MemberShady.
index - the zero-based index of the current selected MemberShady,
negative or >= nummembers to unsetpublic int getSelectedIndex()
Get the index of the current selected MemberShady, if any.
protected void setJSGlobals(jscheme.JScheme js)
Bind global JScheme values.
setJSGlobals in class UIprotected void loadJSchemeFiles()
Load initial JScheme files iff UI.js is not null
Default impl loads UI.SHADY_JS_COMMON_API, UI.JS_COMMON_EXTRA, and UI.JS_PATHFINDER.
This impl also loads SHADY_JS_MULTI_API, SHADY_JS_MULTI_EXTRA, and JS_CHAIN.
loadJSchemeFiles in class UIpublic java.lang.String getJSchemePrompt()
Get the JScheme interpreter prompt to use.
Default impl returns UI.DEFAULT_JS_PROMPT.
This impl returns DEFAULT_MULTI_JS_PROMPT.
getJSchemePrompt in class UIprotected java.lang.String getAppname()
Get the application name.
Default impl returns UI.DEFAULT_APPNAME.
This impl returns DEFAULT_MULTI_APPNAME.
getAppname in class UI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||