SRJRCFrames
v0.1.296

de.schwarzrot.ui
Class MWIDesktop

java.lang.Object
  extended by de.schwarzrot.ui.support.AbstractDesktop
      extended by de.schwarzrot.ui.MWIDesktop
All Implemented Interfaces:
Desktop, RootWindowHandler, ApplicationEventPublisher

public class MWIDesktop
extends AbstractDesktop

a desktop implementation to handle MWI - multi window interface, where each toplevel application has a real toplevel window

Author:
Reinhard Mantey

Field Summary
 
Fields inherited from class de.schwarzrot.ui.support.AbstractDesktop
taFactory
 
Fields inherited from interface de.schwarzrot.ui.Desktop
defaultStartupSize, ID_DESKTOP, ID_TITLE
 
Constructor Summary
MWIDesktop(String appName)
           
 
Method Summary
 void createMainFrame(Application<?> app)
          creates the rootlevel window
 void doCloseApp(WindowEvent we)
          parent closes all applications and terminates the application frame.
 void doSwitch(Application<?> app)
          switch to another loaded application
 void start()
          second stage of application setup and start of the game
 
Methods inherited from class de.schwarzrot.ui.support.AbstractDesktop
addApplication, createMenuBar, createMenuBar, createToolBar, createToolBar, decOpenedFramesCounter, doAbout, doCloseApp, doConfig, doEditMappings, doExit, doHelp, getActionHandler, getArchiveInfo, getConfig, getConfigPage, getCurApp, getDefaultApp, getMainWindow, getName, getOpenedFramesCounter, getProgressMonitor, getServicesPage, getVersionString, getXOffset, getYOffset, incOpenedFramesCounter, init, publishEvent, setActionHandler, setArchiveInfo, setConfig, setCurApp, setCurApp, setDefaultApp, setDefaultApp, setName, setProgressMonitor, setupFrom, setVersionBuild, setVersionMajor, setVersionMinor, validateUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MWIDesktop

public MWIDesktop(String appName)
Method Detail

createMainFrame

public void createMainFrame(Application<?> app)
Description copied from interface: Desktop
creates the rootlevel window

Parameters:
app - - application

doCloseApp

public void doCloseApp(WindowEvent we)
parent closes all applications and terminates the application frame. We have top windows for each application, so we only close one application. Only the last application will terminate the application frame.

Overrides:
doCloseApp in class AbstractDesktop
Parameters:
we - - the window event

doSwitch

public void doSwitch(Application<?> app)
Description copied from interface: Desktop
switch to another loaded application

Parameters:
app - - the application to switch to

start

public void start()
Description copied from interface: Desktop
second stage of application setup and start of the game

Specified by:
start in interface Desktop
Specified by:
start in class AbstractDesktop

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.