|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Desktop
interface for applications "desktop". The desktop implementation is
responsible to provide a window area to each application. It offers the
application access to the toplevel window for its visual area and distributes
ApplicationEvent
s between all Application
s. The desktop
implementation creates an ActionHandler
for Action
s common to
all Application
s and it provides a common ProgressMonitor
.
AbstractApplicationLauncher
Field Summary | |
---|---|
static Dimension |
defaultStartupSize
|
static String |
ID_DESKTOP
|
static String |
ID_TITLE
|
Method Summary | |
---|---|
void |
createMainFrame(Application<?> app)
creates the rootlevel window |
void |
doAbout(ActionEvent ae)
pops up the about dialog |
boolean |
doConfig(String mode)
pops up the preferences dialog |
void |
doExit(ActionEvent ae)
terminate all applications |
void |
doHelp(ActionEvent ae)
pops up the help browser |
void |
doSwitch(Application<?> app)
switch to another loaded application |
JarExtension |
getArchiveInfo()
returns the archive info (result from verifyArchive) |
JComponent |
getConfigPage()
returns the desktops configuration page. |
String |
getCurApp()
returns the name of the current active application |
Application<?> |
getDefaultApp()
returns the default application, which is the application, that should be opened first |
String |
getName()
returns the name of the implementing class |
String |
getVersionString()
returns the version as string |
void |
init(List<Application<?>> apps)
first stage of initialization |
void |
setActionHandler(DesktopActionHandler handler)
setter for the DesktopActionHandler, which handles the user-actions common to all applications, like application-switching or exiting of the entire application. |
void |
setArchiveInfo(JarExtension archiveInfo)
sets the archive info (result from verifyArchive) |
void |
setConfig(DesktopConfig ac)
sets the configuration instance |
void |
setCurApp(Application<?> curApp)
sets the current active application |
void |
setCurApp(String curApp)
sets the current active application |
void |
setDefaultApp(Application<?> defaultApp)
sets the default application |
void |
setDefaultApp(String defaultApp)
sets the default application |
void |
setName(String name)
sets the name of the desktop implementation |
void |
setupFrom(Desktop other)
method to support user configurable desktop environment. |
void |
start()
second stage of application setup and start of the game |
void |
validateUser()
validates a user |
Methods inherited from interface org.springframework.context.ApplicationEventPublisher |
---|
publishEvent |
Methods inherited from interface de.schwarzrot.ui.RootWindowHandler |
---|
getMainWindow, getProgressMonitor, setProgressMonitor |
Field Detail |
---|
static final Dimension defaultStartupSize
static final String ID_DESKTOP
static final String ID_TITLE
Method Detail |
---|
void createMainFrame(Application<?> app)
app
- - applicationvoid doAbout(ActionEvent ae)
ae
- - action eventboolean doConfig(String mode)
mode
- - should be null for standard operation. If there's an error
on application startup, the mode may be "init" to change into
initial setup mode.
void doExit(ActionEvent ae)
ae
- - action eventvoid doHelp(ActionEvent ae)
ae
- - action eventvoid doSwitch(Application<?> app)
app
- - the application to switch toJarExtension getArchiveInfo()
JComponent getConfigPage()
String getCurApp()
Application<?> getDefaultApp()
String getName()
String getVersionString()
void init(List<Application<?>> apps)
apps
- - list of loaded applicationsvoid setActionHandler(DesktopActionHandler handler)
In order to allow switching of the desktop interface, the handling of the actions is separated from the desktop implementations.
handler
- - the handler for desktop actionsvoid setArchiveInfo(JarExtension archiveInfo)
archiveInfo
- - the archive infovoid setConfig(DesktopConfig ac)
ac
- - the configuration instancevoid setCurApp(Application<?> curApp)
curApp
- - an applicationvoid setCurApp(String curApp)
curApp
- - the name of an applicationvoid setDefaultApp(Application<?> defaultApp)
defaultApp
- - an applicationvoid setDefaultApp(String defaultApp)
defaultApp
- - an application namevoid setName(String name)
name
- - name of desktop implementationvoid setupFrom(Desktop other)
other
- - the probably already configured desktop implementationvoid start()
void validateUser()
|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |