ch.elca.el4j.gui.swing
Class AbstractMDIApplication

java.lang.Object
  extended by org.jdesktop.application.AbstractBean
      extended by org.jdesktop.application.Application
          extended by org.jdesktop.application.SingleFrameApplication
              extended by ch.elca.el4j.gui.swing.GUIApplication
                  extended by ch.elca.el4j.gui.swing.AbstractMDIApplication
Direct Known Subclasses:
MDIApplication

public abstract class AbstractMDIApplication
extends GUIApplication

Parent class for new MDI applications using an XML GUI description. Programmatically written GUI should use MDIApplication. Additional features: * allows adding internal frames (for the Documents of MDI) to the application Internal frames can (optionally) minimize themselves { @link JInternalFrame#setIconifiable(boolean) }

Author:
Stefan Wismer (SWI), Philipp Oser (POS)

Nested Class Summary
protected  class AbstractMDIApplication.ListenerToEvent
          Helper that listens to events of the internal frames.
 
Nested classes/interfaces inherited from class org.jdesktop.application.Application
org.jdesktop.application.Application.ExitListener
 
Field Summary
 
Fields inherited from class ch.elca.el4j.gui.swing.GUIApplication
m_config, m_instancesWithActionMappings, m_springContext
 
Constructor Summary
AbstractMDIApplication()
           
 
Method Summary
protected abstract  JDesktopPane getDesktopPane()
           
 void show(JComponent component)
          Show a nested component.
 void show(JInternalFrame frame, int index)
          Adds an internal frame to the MDI application In particular: keeps track of the frame, adds listeners to frame events and ensures properties of the frame are stored persistently.
 void showInternalFrame(JComponent frame)
          Adds an internal frame to the MDI application.
 
Methods inherited from class ch.elca.el4j.gui.swing.GUIApplication
addActionMappingInstance, createMenu, createPopup, getAction, getAction, getConfig, getInstance, getSpringContext, getString, launch, removeActionMappingInstance, setConfig, setSpringContext, show, showMain, showMain, showMain
 
Methods inherited from class org.jdesktop.application.SingleFrameApplication
configureWindow, getMainFrame, getMainView, setMainFrame, show, show, show, shutdown
 
Methods inherited from class org.jdesktop.application.Application
addExitListener, create, end, exit, exit, getContext, getExitListeners, getInstance, hide, initialize, launch, quit, ready, removeExitListener, setInstance, startup, waitForReady
 
Methods inherited from class org.jdesktop.application.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMDIApplication

public AbstractMDIApplication()
Method Detail

getDesktopPane

protected abstract JDesktopPane getDesktopPane()
Returns:
the desktop pane of this MDIApplication

showInternalFrame

public void showInternalFrame(JComponent frame)
Adds an internal frame to the MDI application.

Parameters:
frame - the frame to add
See Also:
show(JInternalFrame,int)

show

public void show(JComponent component)
Description copied from class: GUIApplication
Show a nested component.

Overrides:
show in class GUIApplication
Parameters:
component - the panel to show as MDI child window

show

public void show(JInternalFrame frame,
                 int index)
Adds an internal frame to the MDI application In particular: keeps track of the frame, adds listeners to frame events and ensures properties of the frame are stored persistently.

Parameters:
frame - the internal frame to add
index - the position at which to insert the component, or -1 to append the component to the end


Copyright © 2005-2008 ELCA. All Rights Reserved.