diva.gui
Interface MDIContext

All Superinterfaces:
AppContext, javax.swing.RootPaneContainer
All Known Implementing Classes:
DesktopContext

public interface MDIContext
extends AppContext

An app context that provides methods for multiple documents and views. [FIXME: more docs]

Version:
$Id: MDIContext.java 38798 2005-07-08 20:00:01Z cxh $
Author:
John Reekie

Method Summary
 void addContentPane(java.lang.String title, javax.swing.JComponent pane)
          Add a new content pane to this frame.
 void addViewListener(ViewListener listener)
          Add a view listener to this frame.
 javax.swing.JComponent getCurrentContentPane()
          Get the content pane that is displayed as the current content pane.
 javax.swing.Icon getFrameIcon()
          Get the icon that is displayed in internal frames.
 void removeContentPane(javax.swing.JComponent pane)
          Remove the given content pane from the display and close.
 void removeViewListener(ViewListener listener)
          Remove a view listener from this frame.
 void setCurrentContentPane(javax.swing.JComponent pane)
          Set the given content pane to be displayed as the current content pane.
 void setFrameIcon(javax.swing.Icon icon)
          Set the icon that is displayed in internal frames.
 
Methods inherited from interface diva.gui.AppContext
getExitAction, getIconImage, getJMenuBar, getTitle, isVisible, makeComponent, setExitAction, setIconImage, setJMenuBar, setSize, setTitle, setVisible, showStatus
 
Methods inherited from interface javax.swing.RootPaneContainer
getContentPane, getGlassPane, getLayeredPane, getRootPane, setContentPane, setGlassPane, setLayeredPane
 

Method Detail

addContentPane

void addContentPane(java.lang.String title,
                    javax.swing.JComponent pane)
Add a new content pane to this frame. Generally, a client should call setCurrentPane() after calling this method.


addViewListener

void addViewListener(ViewListener listener)
Add a view listener to this frame. These listeners will be notified when views are modified. Generally, an application will add itself to this listener list, as it is an easy way of getting notification about operations on the content panes.


getCurrentContentPane

javax.swing.JComponent getCurrentContentPane()
Get the content pane that is displayed as the current content pane.


getFrameIcon

javax.swing.Icon getFrameIcon()
Get the icon that is displayed in internal frames.


removeContentPane

void removeContentPane(javax.swing.JComponent pane)
Remove the given content pane from the display and close.


removeViewListener

void removeViewListener(ViewListener listener)
Remove a view listener from this frame.


setCurrentContentPane

void setCurrentContentPane(javax.swing.JComponent pane)
Set the given content pane to be displayed as the current content pane.


setFrameIcon

void setFrameIcon(javax.swing.Icon icon)
Set the icon that is displayed in internal frames.