WebObjects 5.2

com.webobjects.eoapplication
Class EOWindowObserver

java.lang.Object
  |
  +--com.webobjects.eoapplication.EOWindowObserver
All Implemented Interfaces:
EOAction.Enabling, EventListener, NSDisposable, WindowListener

public class EOWindowObserver
extends Object
implements WindowListener, NSDisposable, EOAction.Enabling


Field Summary
static String ActiveWindowChangedNotification
           
static String LastWindowClosedNotification
           
 
Constructor Summary
protected EOWindowObserver()
          
 
Method Summary
 void activateBestWindow()
          
 void activatePreviousWindow()
          Activates the previously active window.
 Window activeWindow()
          
 void blockActiveWindowChangedNotification()
          
 void bringAllWindowsToFront()
           
 boolean canPerformActionNamed(String actionName)
          Implemented to handle window observer specific action enabling and disabling.
 EOController controllerForActiveWindow()
          
 EOController controllerForLatestDeactivatedWindow()
          
 EOController controllerForWindow(Window window)
          
 void dispose()
          
 Window latestDeactivatedWindow()
          
 void minimizeActiveWindow()
           
 Window previousWindowToActivate()
          
 NSArray registeredWindows()
          
 void registerWindow(Window window)
          
 void registerWindow(Window window, EOController controller)
          
 void unblockActiveWindowChangedNotification()
          
 void unregisterWindow(Window window)
          
 void unregisterWindowOfController(EOController controller)
          
 NSArray visibleWindows()
          
 void windowActivated(WindowEvent event)
          
 void windowClosed(WindowEvent event)
          
 void windowClosing(WindowEvent event)
          
 void windowDeactivated(WindowEvent event)
          
 void windowDeiconified(WindowEvent event)
          
protected  void windowDidBecomeActive(Window window)
          
protected  void windowDidBecomeInactive(Window window)
          
protected  void windowDidBecomeInvisible(Window window)
          
protected  void windowDidBecomeVisible(Window window)
          
 Window windowForController(EOController controller)
          
 void windowIconified(WindowEvent event)
          
 void windowOpened(WindowEvent event)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ActiveWindowChangedNotification

public static final String ActiveWindowChangedNotification

LastWindowClosedNotification

public static final String LastWindowClosedNotification
Constructor Detail

EOWindowObserver

protected EOWindowObserver()
Method Detail

activateBestWindow

public void activateBestWindow()

activatePreviousWindow

public void activatePreviousWindow()
Activates the previously active window. The user can usually trigger this method from the Window menu.

activeWindow

public Window activeWindow()
Returns:

blockActiveWindowChangedNotification

public void blockActiveWindowChangedNotification()

bringAllWindowsToFront

public void bringAllWindowsToFront()

canPerformActionNamed

public boolean canPerformActionNamed(String actionName)
Implemented to handle window observer specific action enabling and disabling.
Specified by:
canPerformActionNamed in interface EOAction.Enabling
Parameters:
actionName - the action method name
Returns:
true if the action should be enabled; false otherwise
See Also:
EOAction.Enabling

controllerForActiveWindow

public EOController controllerForActiveWindow()
Returns:

controllerForLatestDeactivatedWindow

public EOController controllerForLatestDeactivatedWindow()
Returns:

controllerForWindow

public EOController controllerForWindow(Window window)
Parameters:
window -
Returns:

dispose

public void dispose()
Specified by:
dispose in interface NSDisposable

latestDeactivatedWindow

public Window latestDeactivatedWindow()
Returns:

minimizeActiveWindow

public void minimizeActiveWindow()

previousWindowToActivate

public Window previousWindowToActivate()
Returns:

registerWindow

public void registerWindow(Window window,
                           EOController controller)
Parameters:
window -
controller -

registerWindow

public void registerWindow(Window window)
Parameters:
window -

registeredWindows

public NSArray registeredWindows()
Returns:

unblockActiveWindowChangedNotification

public void unblockActiveWindowChangedNotification()

unregisterWindow

public void unregisterWindow(Window window)
Parameters:
window -

unregisterWindowOfController

public void unregisterWindowOfController(EOController controller)
Parameters:
controller -

visibleWindows

public NSArray visibleWindows()
Returns:

windowActivated

public void windowActivated(WindowEvent event)
Specified by:
windowActivated in interface WindowListener
Parameters:
event -

windowClosed

public void windowClosed(WindowEvent event)
Specified by:
windowClosed in interface WindowListener
Parameters:
event -

windowClosing

public void windowClosing(WindowEvent event)
Specified by:
windowClosing in interface WindowListener
Parameters:
event -

windowDeactivated

public void windowDeactivated(WindowEvent event)
Specified by:
windowDeactivated in interface WindowListener
Parameters:
event -

windowDeiconified

public void windowDeiconified(WindowEvent event)
Specified by:
windowDeiconified in interface WindowListener
Parameters:
event -

windowDidBecomeActive

protected void windowDidBecomeActive(Window window)
Parameters:
window -

windowDidBecomeInactive

protected void windowDidBecomeInactive(Window window)
Parameters:
window -

windowDidBecomeInvisible

protected void windowDidBecomeInvisible(Window window)
Parameters:
window -

windowDidBecomeVisible

protected void windowDidBecomeVisible(Window window)
Parameters:
window -

windowForController

public Window windowForController(EOController controller)
Parameters:
controller -
Returns:

windowIconified

public void windowIconified(WindowEvent event)
Specified by:
windowIconified in interface WindowListener
Parameters:
event -

windowOpened

public void windowOpened(WindowEvent event)
Specified by:
windowOpened in interface WindowListener
Parameters:
event -

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.