VTT Java
2010 Version

gov.nih.nlm.nls.vtt.GuiControl
Class WindowControl

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by gov.nih.nlm.nls.vtt.GuiControl.WindowControl
All Implemented Interfaces:
java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener, java.util.EventListener

public class WindowControl
extends java.awt.event.WindowAdapter

This is the Java class of Window controller for WindowAdapter. Its main feature is close the window.

History:

Version:
V-2010
Author:
NLM NLS Development Team, clu

Constructor Summary
WindowControl(javax.swing.JFrame owner, VttObj vttObj)
          Create a WindowControl object for window controller by specifying vttObj.
 
Method Summary
static void SetOwner(javax.swing.JFrame owner)
          Set the owner.
 void windowClosing(java.awt.event.WindowEvent evt)
          Override methods for closing window.
 
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
 

Constructor Detail

WindowControl

public WindowControl(javax.swing.JFrame owner,
                     VttObj vttObj)
Create a WindowControl object for window controller by specifying vttObj.

Parameters:
vttObj - the vttObj Java object
Method Detail

SetOwner

public static void SetOwner(javax.swing.JFrame owner)
Set the owner.

Parameters:
owner - the parents GUI component of this class

windowClosing

public void windowClosing(java.awt.event.WindowEvent evt)
Override methods for closing window.

Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class java.awt.event.WindowAdapter
Parameters:
evt - a low-level event that indicates that a window has changed its status.

VTT Java
2010 Version

Submit a bug or feature

Copyright © 2010 National Library of Medicine