|
SRJRCFrames v0.1.296 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.schwarzrot.ui.support.AbstractDesktop
public abstract class AbstractDesktop
implementation of common stuff for Desktop implementations.
Desktop| Field Summary | |
|---|---|
protected static TransactionFactory |
taFactory
|
| Fields inherited from interface de.schwarzrot.ui.Desktop |
|---|
defaultStartupSize, ID_DESKTOP, ID_TITLE |
| Constructor Summary | |
|---|---|
AbstractDesktop(String appName)
|
|
| Method Summary | |
|---|---|
void |
addApplication(Application<?> app)
|
JMenuBar |
createMenuBar()
|
JMenuBar |
createMenuBar(Application<?> app)
|
JToolBar |
createToolBar()
|
JToolBar |
createToolBar(Application<?> app)
|
int |
decOpenedFramesCounter()
|
void |
doAbout(ActionEvent e)
pops up the about dialog |
void |
doCloseApp(MainFrame f)
close applications "top" window, which need not be a real top window. |
void |
doCloseApp(WindowEvent e)
default handling for desktops, that have only one top window. |
boolean |
doConfig(String mode)
pops up the preferences dialog |
void |
doEditMappings(JComponent parent)
|
void |
doExit(ActionEvent e)
terminate all applications |
void |
doHelp(ActionEvent e)
pops up the help browser |
DesktopActionHandler |
getActionHandler()
|
JarExtension |
getArchiveInfo()
returns the archive info (result from verifyArchive) |
LookAndFeelConfig |
getConfig()
|
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 |
Window |
getMainWindow()
|
String |
getName()
returns the name of the implementing class |
int |
getOpenedFramesCounter()
|
ProgressMonitor |
getProgressMonitor()
|
JComponent |
getServicesPage()
|
String |
getVersionString()
returns the version as string |
int |
getXOffset()
|
int |
getYOffset()
|
int |
incOpenedFramesCounter()
|
void |
init(List<Application<?>> knownApplications)
first stage of initialization |
void |
publishEvent(ApplicationEvent ae)
|
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 config)
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 appName)
sets the name of the desktop implementation |
void |
setProgressMonitor(ProgressMonitor pm)
|
void |
setupFrom(Desktop other)
method to support user configurable desktop environment. |
void |
setVersionBuild(String rawVer)
|
void |
setVersionMajor(int ver)
|
void |
setVersionMinor(int ver)
|
abstract void |
start()
second stage of application setup and start of the game |
void |
validateUser()
validates a user |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.schwarzrot.ui.Desktop |
|---|
createMainFrame, doSwitch |
| Field Detail |
|---|
protected static TransactionFactory taFactory
| Constructor Detail |
|---|
public AbstractDesktop(String appName)
| Method Detail |
|---|
public final void addApplication(Application<?> app)
public JMenuBar createMenuBar()
public JMenuBar createMenuBar(Application<?> app)
public JToolBar createToolBar()
public JToolBar createToolBar(Application<?> app)
public final int decOpenedFramesCounter()
public void doAbout(ActionEvent e)
Desktop
doAbout in interface Desktope - - action eventpublic void doCloseApp(MainFrame f)
f - - the frame that was closedpublic void doCloseApp(WindowEvent e)
e - - the window eventpublic boolean doConfig(String mode)
Desktop
doConfig in interface Desktopmode - - 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.
public void doEditMappings(JComponent parent)
public void doExit(ActionEvent e)
Desktop
doExit in interface Desktope - - action eventpublic void doHelp(ActionEvent e)
Desktop
doHelp in interface Desktope - - action eventpublic final DesktopActionHandler getActionHandler()
public final JarExtension getArchiveInfo()
Desktop
getArchiveInfo in interface Desktoppublic final LookAndFeelConfig getConfig()
public JComponent getConfigPage()
Desktop
getConfigPage in interface Desktoppublic final String getCurApp()
Desktop
getCurApp in interface Desktoppublic final Application<?> getDefaultApp()
Desktop
getDefaultApp in interface Desktoppublic Window getMainWindow()
getMainWindow in interface RootWindowHandlerpublic final String getName()
Desktop
getName in interface Desktoppublic final int getOpenedFramesCounter()
public final ProgressMonitor getProgressMonitor()
getProgressMonitor in interface RootWindowHandlerpublic JComponent getServicesPage()
public final String getVersionString()
Desktop
getVersionString in interface Desktoppublic final int getXOffset()
public final int getYOffset()
public final int incOpenedFramesCounter()
public void init(List<Application<?>> knownApplications)
Desktop
init in interface DesktopknownApplications - - list of loaded applicationspublic final void publishEvent(ApplicationEvent ae)
publishEvent in interface ApplicationEventPublisherpublic final void setActionHandler(DesktopActionHandler handler)
DesktopIn order to allow switching of the desktop interface, the handling of the actions is separated from the desktop implementations.
setActionHandler in interface Desktophandler - - the handler for desktop actionspublic final void setArchiveInfo(JarExtension archiveInfo)
Desktop
setArchiveInfo in interface DesktoparchiveInfo - - the archive infopublic final void setConfig(DesktopConfig config)
Desktop
setConfig in interface Desktopconfig - - the configuration instancepublic final void setCurApp(Application<?> curApp)
Desktop
setCurApp in interface DesktopcurApp - - an applicationpublic final void setCurApp(String curApp)
Desktop
setCurApp in interface DesktopcurApp - - the name of an applicationpublic final void setDefaultApp(Application<?> defaultApp)
Desktop
setDefaultApp in interface DesktopdefaultApp - - an applicationpublic final void setDefaultApp(String defaultApp)
Desktop
setDefaultApp in interface DesktopdefaultApp - - an application namepublic final void setName(String appName)
Desktop
setName in interface DesktopappName - - name of desktop implementationpublic final void setProgressMonitor(ProgressMonitor pm)
setProgressMonitor in interface RootWindowHandlerpublic void setupFrom(Desktop other)
Desktop
setupFrom in interface Desktopother - - the probably already configured desktop implementationpublic final void setVersionBuild(String rawVer)
public final void setVersionMajor(int ver)
public final void setVersionMinor(int ver)
public abstract void start()
Desktop
start in interface Desktoppublic void validateUser()
Desktop
validateUser in interface Desktop
|
SRJRCFrames v0.1.296 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||