ghm.follow.event
Class WindowTracker

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by ghm.follow.event.WindowTracker
All Implemented Interfaces:
java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener, java.util.EventListener

public class WindowTracker
extends java.awt.event.WindowAdapter

Will write window position/size to the supplied FollowAppAttributes object. The supplied keys will be used when writing position/size values to the FollowAppAttributes object.

Author:
Greg Merrill, Carl Hall

Field Summary
protected  FollowAppAttributes attributes
           
protected  SystemInterface systemInterface
           
protected  javax.swing.JTabbedPane tabbedPane
           
 
Constructor Summary
WindowTracker(FollowAppAttributes attributes, javax.swing.JTabbedPane tabbedPane, SystemInterface systemInterface)
          Construct a new WindowTracker which will write window position/size to the supplied FollowAppAttributes object.
 
Method Summary
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
          Each time this method is invoked, the position/size of the window which is closing will be written to the FollowAppAttributes object.
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

protected FollowAppAttributes attributes

tabbedPane

protected javax.swing.JTabbedPane tabbedPane

systemInterface

protected SystemInterface systemInterface
Constructor Detail

WindowTracker

public WindowTracker(FollowAppAttributes attributes,
                     javax.swing.JTabbedPane tabbedPane,
                     SystemInterface systemInterface)
Construct a new WindowTracker which will write window position/size to the supplied FollowAppAttributes object. The supplied keys will be used when writing position/size values to the FollowAppAttributes object.

Parameters:
attributes - attributes object to which window size & position should be written
Method Detail

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Each time this method is invoked, the position/size of the window which is closing will be written to the FollowAppAttributes object.

Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class java.awt.event.WindowAdapter

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener
Overrides:
windowClosed in class java.awt.event.WindowAdapter


Copyright © 2008. All Rights Reserved.