All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.dnd.WinCollection

java.lang.Object
   |
   +----com.ibm.dnd.WinCollection

public class WinCollection
extends Object
implements WindowListener
This class is used for finding a window that contains a given point and to determine if this window is currently active.


Constructor Index

 o WinCollection()
The default constructor.

Method Index

 o containsWindow(Window)
Returns whether the window collection contains the specified window
 o deregisterWindow(Window)
A method for unregistering previously registered windows.
 o findWindow(Point)
This method is used for finding any registered window on the screen under the given point.
 o getAllWindows()
 o isWindowActive(Window)
A method indicating if the given window is active.
 o registerWindow(Window)
A method for registering windows.
 o windowActivated(WindowEvent)
Invoked when a window is activated.
 o windowClosed(WindowEvent)
Invoked when a window has been closed.
 o windowClosing(WindowEvent)
Invoked when a window is in the process of being closed.
 o windowDeactivated(WindowEvent)
Invoked when a window is deactivated.
 o windowDeiconified(WindowEvent)
Invoked when a window is de-iconified.
 o windowIconified(WindowEvent)
Invoked when a window is iconified.
 o windowOpened(WindowEvent)
Invoked when a window has been opened.

Constructors

 o WinCollection
 public WinCollection()
The default constructor.

Methods

 o containsWindow
 public boolean containsWindow(Window wnd)
Returns whether the window collection contains the specified window

Parameters:
wnd - java.awt.Window
Returns:
boolean indicating whether the window collection contains the specified window
 o deregisterWindow
 public synchronized void deregisterWindow(Window window)
A method for unregistering previously registered windows. This method removes a window from the list.

Parameters:
window - java.awt.Window window to be unregistered
 o findWindow
 public synchronized Window findWindow(Point point)
This method is used for finding any registered window on the screen under the given point. Point should be in the screen coordinate space. You may use isWindowActive() method to determine if this window is active or not.

Parameters:
point - the point
 o getAllWindows
 public Vector getAllWindows()
 o isWindowActive
 public synchronized boolean isWindowActive(Window window)
A method indicating if the given window is active.

Parameters:
window - java.awt.Window
 o registerWindow
 public synchronized void registerWindow(Window window)
A method for registering windows. This method puts a window into the list and adds WindowListener to it.

Parameters:
window - java.awt.Window window to be registered
 o windowActivated
 public void windowActivated(WindowEvent e)
Invoked when a window is activated.

 o windowClosed
 public void windowClosed(WindowEvent e)
Invoked when a window has been closed.

 o windowClosing
 public void windowClosing(WindowEvent e)
Invoked when a window is in the process of being closed.

 o windowDeactivated
 public void windowDeactivated(WindowEvent e)
Invoked when a window is deactivated.

 o windowDeiconified
 public void windowDeiconified(WindowEvent e)
Invoked when a window is de-iconified.

 o windowIconified
 public void windowIconified(WindowEvent e)
Invoked when a window is iconified.

 o windowOpened
 public void windowOpened(WindowEvent e)
Invoked when a window has been opened.


All Packages  Class Hierarchy  This Package  Previous  Next  Index