All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vnr.ide.WindowCoordinator

java.lang.Object
   |
   +----vnr.ide.WindowCoordinator

public class WindowCoordinator
extends Object
implements WindowListener
A class to coordinate application level windows

Specifically, it is responsible for keeping a list of windows for pluggable look and feel purposes, and for creating/opening windows that should only be opened once, but the user may try to do it multiple times, e.g. ClassView.


Variable Index

 o classViewList
 o helpViewList
 o openBuildResults
 o windowList

Constructor Index

 o WindowCoordinator()

Method Index

 o add(Window)
add a frame to the list of coordinated windows

Will also add this as a window listener to handle closing windows being removed from the list

 o createOrShowBuildResults(Desktop)
create and/or show a build results window

If there is an open buildresults window, return it, otherwise create it, add it to the list

Add the coordinator to it as a windowlistener, so it can be removed when closed.

 o createOrShowClassView(NetRexxClass, Desktop)
create and/or show a classview given a NetRexxClass.
 o createOrShowHelpView(URL)
create and/or show a help view in a frame if there is already a view open on the url passed, return it, otherwise create one on the url
 o remove(Window)
remove a frame to the list of coordinated windows Will also remove this a window listener
 o updateLookAndFeel()
update all coordinated windows with the latest (most recently set) look and feel
 o windowActivated(WindowEvent)
 o windowClosed(WindowEvent)
when a window closes:

If it's a classview, remove it from the list

Remove it from the windowList.

 o windowClosing(WindowEvent)
 o windowDeactivated(WindowEvent)
 o windowDeiconified(WindowEvent)
 o windowIconified(WindowEvent)
 o windowOpened(WindowEvent)

Variables

 o windowList
 protected Vector windowList
 o classViewList
 protected Hashtable classViewList
 o helpViewList
 protected Hashtable helpViewList
 o openBuildResults
 protected BuildResults openBuildResults

Constructors

 o WindowCoordinator
 public WindowCoordinator()

Methods

 o add
 public void add(Window window)
add a frame to the list of coordinated windows

Will also add this as a window listener to handle closing windows being removed from the list

 o remove
 public void remove(Window window)
remove a frame to the list of coordinated windows Will also remove this a window listener

See Also:
add
 o updateLookAndFeel
 public void updateLookAndFeel()
update all coordinated windows with the latest (most recently set) look and feel

 o createOrShowClassView
 public synchronized ClassView createOrShowClassView(NetRexxClass nrxClass,
                                                     Desktop dt)
create and/or show a classview given a NetRexxClass.

If the pkg.cls exists in the hash table, show it. Otherwise, create it and add it to the hashtable

Add the coordinator as a window listener, so that when the window is closed, it will be removed from the hashtable

Returns:
vnr.ide.ClassView
See Also:
Desktop
 o createOrShowBuildResults
 public synchronized BuildResults createOrShowBuildResults(Desktop dt)
create and/or show a build results window

If there is an open buildresults window, return it, otherwise create it, add it to the list

Add the coordinator to it as a windowlistener, so it can be removed when closed.

 o createOrShowHelpView
 public synchronized JFrame createOrShowHelpView(URL u)
create and/or show a help view in a frame if there is already a view open on the url passed, return it, otherwise create one on the url

 o windowClosed
 public void windowClosed(WindowEvent we)
when a window closes:

If it's a classview, remove it from the list

Remove it from the windowList.

 o windowOpened
 public void windowOpened(WindowEvent $2)
 o windowActivated
 public void windowActivated(WindowEvent $3)
 o windowDeactivated
 public void windowDeactivated(WindowEvent $4)
 o windowIconified
 public void windowIconified(WindowEvent $5)
 o windowDeiconified
 public void windowDeiconified(WindowEvent $6)
 o windowClosing
 public void windowClosing(WindowEvent $7)

All Packages  Class Hierarchy  This Package  Previous  Next  Index