diva.gui
Class MultiWindowApplication

java.lang.Object
  extended by diva.gui.AbstractApplication
      extended by diva.gui.MultiWindowApplication
All Implemented Interfaces:
Application
Direct Known Subclasses:
MultiWindowGraphEditor

public abstract class MultiWindowApplication
extends AbstractApplication

An application that manages a group of toplevel frames for each document. These toplevel frames are raised and lowered together.

Version:
$Revision: 1.2 $
Author:
Steve Neuendorffer (neuendor@eecs.berkeley.edu)

Constructor Summary
MultiWindowApplication(AppContext context)
          Create a MultiWindow application based on the given context.
 
Method Summary
 void addView(View v)
          Add a view to the list of views currently known by this application.
abstract  View createView(Document d)
          Create a view to display the given document.
 View getView(Window w)
          Get the Document displayed by the given component.
 void removeView(View v)
          Remove the given view.
 
Methods inherited from class diva.gui.AbstractApplication
actions, addAction, addDocument, addDocumentListener, addMenuItem, addMenuItem, addPropertyChangeListener, addToolBarButton, addToolBarButton, addViewListener, closeDocument, closeView, documentList, getAction, getAppContext, getClipboard, getCurrentView, getDocumentFactory, getResources, getStoragePolicy, getTitle, isVisible, removeDocument, removeDocumentListener, removePropertyChangeListener, removeViewListener, setAppContext, setClipboard, setCurrentView, setDocumentFactory, setStoragePolicy, setVisible, showError, viewList, viewList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiWindowApplication

public MultiWindowApplication(AppContext context)
Create a MultiWindow application based on the given context.

Method Detail

createView

public abstract View createView(Document d)
Create a view to display the given document. The document should already be added to the application. After calling this method, most callers should set this view to be the current view.

Specified by:
createView in interface Application
Specified by:
createView in class AbstractApplication

addView

public void addView(View v)
Description copied from class: AbstractApplication
Add a view to the list of views currently known by this application. Fire a view list event to registered listeners. Throw an exception if the view is already in the list of views.

Specified by:
addView in interface Application
Overrides:
addView in class AbstractApplication

removeView

public void removeView(View v)
Remove the given view.

Specified by:
removeView in interface Application
Overrides:
removeView in class AbstractApplication

getView

public View getView(Window w)
Get the Document displayed by the given component.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.