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.
-
WinCollection()
- The default constructor.
-
containsWindow(Window)
- Returns whether the window collection contains the specified window
-
deregisterWindow(Window)
- A method for unregistering previously registered windows.
-
findWindow(Point)
- This method is used for finding any registered window on the screen under the given point.
-
getAllWindows()
-
-
isWindowActive(Window)
- A method indicating if the given window is active.
-
registerWindow(Window)
- A method for registering windows.
-
windowActivated(WindowEvent)
- Invoked when a window is activated.
-
windowClosed(WindowEvent)
- Invoked when a window has been closed.
-
windowClosing(WindowEvent)
- Invoked when a window is in the process of being closed.
-
windowDeactivated(WindowEvent)
- Invoked when a window is deactivated.
-
windowDeiconified(WindowEvent)
- Invoked when a window is de-iconified.
-
windowIconified(WindowEvent)
- Invoked when a window is iconified.
-
windowOpened(WindowEvent)
- Invoked when a window has been opened.
WinCollection
public WinCollection()
- The default constructor.
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
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
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
getAllWindows
public Vector getAllWindows()
isWindowActive
public synchronized boolean isWindowActive(Window window)
- A method indicating if the given window is active.
- Parameters:
- window - java.awt.Window
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
windowActivated
public void windowActivated(WindowEvent e)
- Invoked when a window is activated.
windowClosed
public void windowClosed(WindowEvent e)
- Invoked when a window has been closed.
windowClosing
public void windowClosing(WindowEvent e)
- Invoked when a window is in the process of being closed.
windowDeactivated
public void windowDeactivated(WindowEvent e)
- Invoked when a window is deactivated.
windowDeiconified
public void windowDeiconified(WindowEvent e)
- Invoked when a window is de-iconified.
windowIconified
public void windowIconified(WindowEvent e)
- Invoked when a window is iconified.
windowOpened
public void windowOpened(WindowEvent e)
- Invoked when a window has been opened.
All Packages Class Hierarchy This Package Previous Next Index