ghm.follow.event
Class WindowTracker

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

public class WindowTracker
extends java.awt.event.WindowAdapter

Implementation of WindowListener which writes the position and size of a window to a FollowAppAttributes object each time windowClosing() is invoked.

Author:
Greg Merrill

Field Summary
protected  FollowAppAttributes attributes_
           
 
Constructor Summary
WindowTracker(FollowAppAttributes attributes)
          Construct a new WindowTracker which will write window position/size to the supplied FollowAppAttributes object.
 
Method Summary
 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, windowClosed, 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_
Constructor Detail

WindowTracker

public WindowTracker(FollowAppAttributes attributes)
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.