WebObjects 5.4.2

com.webobjects.eoapplication
Class EOSimpleWindowController

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

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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.eoapplication.EOComponentController
EOComponentController.ActionCollector, EOComponentController.Activation, EOComponentController.EndEditing, EOComponentController.Modal, EOComponentController.ResetUserInterface
 
Nested classes/interfaces inherited from class com.webobjects.eoapplication.EOController
EOController.Enumeration
 
Nested classes/interfaces inherited from interface 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.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

dispose

public void dispose()

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

addComponentOfSubcontroller

protected void addComponentOfSubcontroller(EOComponentController controller)

Overrides:
addComponentOfSubcontroller in class EOComponentController
Parameters:
controller -

newWindow

protected Window newWindow()

Returns:

resetUserInterface

public void resetUserInterface()

Specified by:
resetUserInterface in interface EOComponentController.ResetUserInterface

setLabel

public void setLabel(String string)

Overrides:
setLabel in class EOComponentController
Parameters:
string -

activateWindow

public void activateWindow()

Specified by:
activateWindow in class EOWindowController

deactivateWindow

public void deactivateWindow()


subcontrollerMinimumSizeDidChange

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

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

setDisposeIfDeactivated

public void setDisposeIfDeactivated(boolean flag)

Parameters:
flag -

disposeIfDeactivated

public boolean disposeIfDeactivated()

Returns:

integrationComponentDidBecomeVisible

protected void integrationComponentDidBecomeVisible()

Overrides:
integrationComponentDidBecomeVisible in class EOComponentController

integrationComponentDidBecomeInvisible

protected void integrationComponentDidBecomeInvisible()

Overrides:
integrationComponentDidBecomeInvisible in class EOComponentController

componentDidBecomeVisible

protected void componentDidBecomeVisible()

Overrides:
componentDidBecomeVisible in class EOComponentController

componentDidBecomeInvisible

protected void componentDidBecomeInvisible()

Overrides:
componentDidBecomeInvisible in class EOWindowController

makeVisible

public boolean makeVisible()

Overrides:
makeVisible in class EOComponentController
Returns:

subcontrollerEditedDidChange

public void subcontrollerEditedDidChange(EOController controller)

Parameters:
controller -

newWindow

protected abstract Window newWindow(JComponent component)

Parameters:
component -
Returns:

verifyContentMinimumSize

protected Dimension verifyContentMinimumSize(Window window,
                                             Dimension size)

Parameters:
window -
size -
Returns:

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()


setWindow

public void setWindow(Window window)


window

public Window window()

Returns:

closeWindow

public boolean closeWindow()

Returns:

windowOpened

public void windowOpened(WindowEvent event)

Specified by:
windowOpened in interface WindowListener
Parameters:
event -

windowClosing

public void windowClosing(WindowEvent event)

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

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 -

Last updated June 2008

Copyright © 2000-2008 Apple Inc.