WebObjects 5.2.3

com.webobjects.eoapplication
Class EOSimpleWindowController

java.lang.Object
  extended bycom.webobjects.eoapplication.EOController
      extended bycom.webobjects.eoapplication.EOComponentController
          extended bycom.webobjects.eoapplication.EOWindowController
              extended bycom.webobjects.eoapplication.EOSimpleWindowController
All Implemented Interfaces:
ActionListener, ComponentListener, EOAction.Enabling, EOComponentController.Activation, EOComponentController.ResetUserInterface, EventListener, NSDisposable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, WindowListener
Direct Known Subclasses:
EODialogController, EOFrameController

public abstract class EOSimpleWindowController
extends EOWindowController
implements WindowListener, ComponentListener, EOComponentController.ResetUserInterface


Nested Class Summary
 
Nested classes inherited from class com.webobjects.eoapplication.EOComponentController
EOComponentController.ActionCollector, EOComponentController.Activation, EOComponentController.EndEditing, EOComponentController.Modal, EOComponentController.ResetUserInterface
 
Nested classes inherited from class com.webobjects.eoapplication.EOController
EOController.Enumeration
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Field Summary
 
Fields inherited from class com.webobjects.eoapplication.EOComponentController
Bottom, BottomLeft, BottomRight, Center, Left, Right, Top, TopLeft, TopRight
 
Fields inherited from class com.webobjects.eoapplication.EOController
ControllerAndSubcontrollersEnumeration, ControllerAndSupercontrollersEnumeration, SubcontrollersEnumeration, SupercontrollersEnumeration
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
KeyPathSeparator
 
Constructor Summary
EOSimpleWindowController()
          
EOSimpleWindowController(EOXMLUnarchiver unarchiver)
          
 
Method Summary
 void activateWindow()
          
protected  void addComponentOfSubcontroller(EOComponentController controller)
          
 boolean closeWindow()
          
protected  void componentDidBecomeInvisible()
          
protected  void componentDidBecomeVisible()
          
 void componentHidden(ComponentEvent event)
          
 void componentMoved(ComponentEvent event)
          
 void componentResized(ComponentEvent event)
          
 void componentShown(ComponentEvent event)
          
 void deactivateWindow()
          
 void dispose()
          
 boolean disposeIfDeactivated()
          
protected  void integrationComponentDidBecomeInvisible()
          
protected  void integrationComponentDidBecomeVisible()
          
 boolean makeVisible()
          
protected  Window newWindow()
          
protected abstract  Window newWindow(JComponent component)
          
 void resetUserInterface()
          
 void setDisposeIfDeactivated(boolean flag)
          
 void setLabel(String string)
          
 void setWindow(Window window)
          
protected abstract  void setWindowResizable(Window window, boolean flag)
          
protected abstract  void setWindowTitle(Window window, String title)
          
protected  void startListeningToWindow()
          
protected  void stopListeningToWindow()
          
 void subcontrollerEditedDidChange(EOController controller)
          
 void subcontrollerMinimumSizeDidChange(EOComponentController controller, JComponent component, Dimension updateMinimumSize)
          
protected  Dimension verifyContentMinimumSize(Window window, Dimension size)
          
 Window window()
          
 void windowActivated(WindowEvent event)
          
 void windowClosed(WindowEvent event)
          
 void windowClosing(WindowEvent event)
          
 void windowDeactivated(WindowEvent event)
          
 void windowDeiconified(WindowEvent event)
          
 void windowIconified(WindowEvent event)
          
 void windowOpened(WindowEvent event)
          
 
Methods inherited from class com.webobjects.eoapplication.EOWindowController
actionPerformed, activate, borderedSizeForComponentSize, borderSize, componentShouldBeResizable, componentSizeForBorderedSize, defaultActions, generateBorderSizeForRootPaneContainerClass, generateComponent, integrationComponent, minimumIntegrationComponentSize, removeTransientSubcontroller, setUsesActivationAction, setUsesActivationButton, setUsesUserDefaultsWindowLocation, setUsesUserDefaultsWindowSize, setWindowPosition, usesActivationAction, usesActivationButton, usesUserDefaultsWindowLocation, usesUserDefaultsWindowSize, windowBorderSize, windowPosition
 
Methods inherited from class com.webobjects.eoapplication.EOComponentController
activateFirstFocusComponent, alignsComponents, canBeTransient, canResizeHorizontally, canResizeVertically, component, defaultComponentSize, ensureMinimumComponentSizeWithoutSubcontrollers, ensureMinimumSubcontrollerAreaSize, firstFocusComponent, handleTakeValueForUnboundKey, hideInSupercontroller, hideSubcontroller, icon, insets, isComponentPrepared, isRootComponentController, isVisible, label, lastFocusComponent, makeInvisible, minimumComponentSize, minimumComponentSizeWithoutSubcontrollers, minimumSubcontrollerAreaSize, prefersIconOnly, prepareComponent, removeComponentOfSubcontroller, setAlignsComponents, setCanResizeHorizontally, setCanResizeVertically, setComponent, setDefaultComponentSize, setFirstFocusComponent, setIcon, setInsets, setLastFocusComponent, setPrefersIconOnly, setSubcontrollerArea, setToolTip, setUsesHorizontalLayout, setVisible, showInSupercontroller, showSubcontroller, subcontrollerArea, subcontrollerWasAdded, subcontrollerWasRemoved, toolTip, toolTipComponent, toString, usesHorizontalLayout
 
Methods inherited from class com.webobjects.eoapplication.EOController
actionNames, actions, actionWithName, additionalActions, additionalKeyValuePairs, addSubcontroller, breakConnection, breakConnectionToSubcontrollers, canAccessFieldsDirectly, canPerformActionNamed, connectionWasBroken, connectionWasEstablished, controllerEnumeration, controllersInEnumeration, controllersWithKeyValuePair, controllersWithKeyValuePairs, controllerWithKeyValuePair, controllerWithKeyValuePairs, disableActionNamed, disposableRegistry, disposeIfTransient, enableActionNamed, enabledActions, establishConnection, establishConnectionToSupercontrollers, handleQueryWithUnboundKey, hierarchicalControllerForKey, hierarchicalValueForKey, invokeMethod, isActionNamedEnabled, isAncestorOfController, isConnected, isSupercontrollerOfController, isTransientExplicitlyForbidden, prepareForNewTask, removeFromSupercontroller, removeSubcontroller, resetActions, setAdditionalActions, setAdditionalKeyValuePair, setAdditionalKeyValuePairs, setConnected, setSupercontroller, setTransientExplicitlyForbidden, setTypeName, subcontrollers, supercontroller, supercontroller, takeValueForKey, takeValueForKeyPath, typeName, unableToSetNullForKey, valueForKey, valueForKeyPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EOSimpleWindowController

public EOSimpleWindowController()


EOSimpleWindowController

public EOSimpleWindowController(EOXMLUnarchiver unarchiver)

Parameters:
unarchiver -
Method Detail

activateWindow

public void activateWindow()

Specified by:
activateWindow in class EOWindowController

addComponentOfSubcontroller

protected void addComponentOfSubcontroller(EOComponentController controller)

Overrides:
addComponentOfSubcontroller in class EOComponentController
Parameters:
controller -

closeWindow

public boolean closeWindow()

Returns:

componentDidBecomeInvisible

protected void componentDidBecomeInvisible()

Overrides:
componentDidBecomeInvisible in class EOWindowController

componentDidBecomeVisible

protected void componentDidBecomeVisible()

Overrides:
componentDidBecomeVisible in class EOComponentController

componentHidden

public void componentHidden(ComponentEvent event)

Specified by:
componentHidden in interface ComponentListener
Parameters:
event -

componentMoved

public void componentMoved(ComponentEvent event)

Specified by:
componentMoved in interface ComponentListener
Parameters:
event -

componentResized

public void componentResized(ComponentEvent event)

Specified by:
componentResized in interface ComponentListener
Parameters:
event -

componentShown

public void componentShown(ComponentEvent event)

Specified by:
componentShown in interface ComponentListener
Parameters:
event -

deactivateWindow

public void deactivateWindow()


dispose

public void dispose()

Specified by:
dispose in interface NSDisposable
Overrides:
dispose in class EOWindowController

disposeIfDeactivated

public boolean disposeIfDeactivated()

Returns:

integrationComponentDidBecomeInvisible

protected void integrationComponentDidBecomeInvisible()

Overrides:
integrationComponentDidBecomeInvisible in class EOComponentController

integrationComponentDidBecomeVisible

protected void integrationComponentDidBecomeVisible()

Overrides:
integrationComponentDidBecomeVisible in class EOComponentController

makeVisible

public boolean makeVisible()

Overrides:
makeVisible in class EOComponentController
Returns:

newWindow

protected Window newWindow()

Returns:

newWindow

protected abstract Window newWindow(JComponent component)

Parameters:
component -
Returns:

resetUserInterface

public void resetUserInterface()

Specified by:
resetUserInterface in interface EOComponentController.ResetUserInterface

setDisposeIfDeactivated

public void setDisposeIfDeactivated(boolean flag)

Parameters:
flag -

setLabel

public void setLabel(String string)

Overrides:
setLabel in class EOComponentController
Parameters:
string -

setWindow

public void setWindow(Window window)


setWindowResizable

protected abstract void setWindowResizable(Window window,
                                           boolean flag)

Parameters:
window -
flag -

setWindowTitle

protected abstract void setWindowTitle(Window window,
                                       String title)

Parameters:
window -
title -

startListeningToWindow

protected void startListeningToWindow()


stopListeningToWindow

protected void stopListeningToWindow()


subcontrollerEditedDidChange

public void subcontrollerEditedDidChange(EOController controller)

Parameters:
controller -

subcontrollerMinimumSizeDidChange

public void subcontrollerMinimumSizeDidChange(EOComponentController controller,
                                              JComponent component,
                                              Dimension updateMinimumSize)

Overrides:
subcontrollerMinimumSizeDidChange in class EOComponentController
Parameters:
controller -
component -
updateMinimumSize -

verifyContentMinimumSize

protected Dimension verifyContentMinimumSize(Window window,
                                             Dimension size)

Parameters:
window -
size -
Returns:

window

public Window window()

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 -

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 Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.