WebObjects 5.4.2

com.webobjects.eoapplication
Class EOWindowObserver

java.lang.Object
  extended by com.webobjects.eoapplication.EOWindowObserver
All Implemented Interfaces:
EOAction.Enabling, NSDisposable, WindowListener, EventListener

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
See Also:
Constant Field Values

LastWindowClosedNotification

public static final String LastWindowClosedNotification
See Also:
Constant Field Values
Constructor Detail

EOWindowObserver

protected EOWindowObserver()

Method Detail

dispose

public void dispose()

Specified by:
dispose in interface NSDisposable

registerWindow

public void registerWindow(Window window,
                           EOController controller)

Parameters:
window -
controller -

registerWindow

public void registerWindow(Window window)

Parameters:
window -

unregisterWindow

public void unregisterWindow(Window window)

Parameters:
window -

unregisterWindowOfController

public void unregisterWindowOfController(EOController controller)

Parameters:
controller -

controllerForWindow

public EOController controllerForWindow(Window window)

Parameters:
window -
Returns:

windowForController

public Window windowForController(EOController controller)

Parameters:
controller -
Returns:

activeWindow

public Window activeWindow()

Returns:

controllerForActiveWindow

public EOController controllerForActiveWindow()

Returns:

latestDeactivatedWindow

public Window latestDeactivatedWindow()

Returns:

controllerForLatestDeactivatedWindow

public EOController controllerForLatestDeactivatedWindow()

Returns:

activateBestWindow

public void activateBestWindow()


visibleWindows

public NSArray visibleWindows()

Returns:

registeredWindows

public NSArray registeredWindows()

Returns:

blockActiveWindowChangedNotification

public void blockActiveWindowChangedNotification()


unblockActiveWindowChangedNotification

public void unblockActiveWindowChangedNotification()


windowDidBecomeVisible

protected void windowDidBecomeVisible(Window window)

Parameters:
window -

windowDidBecomeInvisible

protected void windowDidBecomeInvisible(Window window)

Parameters:
window -

windowDidBecomeActive

protected void windowDidBecomeActive(Window window)

Parameters:
window -

windowDidBecomeInactive

protected void windowDidBecomeInactive(Window window)

Parameters:
window -

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

previousWindowToActivate

public Window previousWindowToActivate()

Returns:

activatePreviousWindow

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


minimizeActiveWindow

public void minimizeActiveWindow()

bringAllWindowsToFront

public void bringAllWindowsToFront()

windowOpened

public void windowOpened(WindowEvent event)

Specified by:
windowOpened in interface WindowListener
Parameters:
event -

windowClosed

public void windowClosed(WindowEvent event)

Specified by:
windowClosed in interface WindowListener
Parameters:
event -

windowActivated

public void windowActivated(WindowEvent event)

Specified by:
windowActivated 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 -

windowIconified

public void windowIconified(WindowEvent event)

Specified by:
windowIconified in interface WindowListener
Parameters:
event -

windowClosing

public void windowClosing(WindowEvent event)

Specified by:
windowClosing in interface WindowListener
Parameters:
event -

Last updated June 2008

Copyright © 2000-2008 Apple Inc.