Package 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$
    Author:
    John Reekie
    • 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.