WebObjects 5.2.3

com.webobjects.eoapplication
Class EOSwitchController

java.lang.Object
  extended bycom.webobjects.eoapplication.EOController
      extended bycom.webobjects.eoapplication.EOComponentController
          extended bycom.webobjects.eoapplication.EOSwitchController
All Implemented Interfaces:
EOAction.Enabling, EOComponentController.ResetUserInterface, NSDisposable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions
Direct Known Subclasses:
EOMenuSwitchController, EOProgrammaticSwitchController, EOTabSwitchController

public abstract class EOSwitchController
extends EOComponentController
implements 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
EOSwitchController()
          
EOSwitchController(EOXMLUnarchiver unarchiver)
          
 
Method Summary
protected abstract  void addBorderComponentForControllerToDisplayComponent(EOComponentController controller, JComponent borderComponent, JComponent displayComponent)
          
protected  void addComponentOfSubcontroller(EOComponentController controller)
          
protected  NSArray borderComponents()
          
 Dimension borderedSizeForComponentSize(Dimension componentSize)
          
 Dimension borderSize()
           
protected  void componentDidBecomeInvisible()
          
protected  void componentDidBecomeVisible()
          
 boolean componentShouldChange(int newIndex)
          
 Dimension componentSizeForBorderedSize(Dimension componentSize)
          
 void componentSwitched(int selectedIndex)
          
protected  Dimension displayComponentBorderSize()
           
 void dispose()
          
protected  void generateComponent()
          
protected  boolean hideSubcontroller(EOComponentController controller)
          
 Dimension minimumComponentSize()
          
protected abstract  JComponent newDisplayComponent()
          
protected abstract  void removeBorderComponentForControllerFromDisplayComponent(EOComponentController controller, JComponent borderComponent, JComponent displayComponent, int index)
          
protected  void removeComponentOfSubcontroller(EOComponentController controller)
          
protected  boolean removeTransientSubcontroller(EOController controller)
          
 void resetUserInterface()
          
protected abstract  JComponent selectedBorderComponentInDisplayComponent(JComponent displayComponent)
          
protected  void showBorderComponentAtIndex(int index)
          
protected abstract  void showBorderComponentAtIndexInDisplayComponent(JComponent borderComponent, JComponent displayComponent, int index)
          
protected  boolean showSubcontroller(EOComponentController controller)
          
 void subcontrollerMinimumSizeDidChange(EOComponentController controller, JComponent component, Dimension updateMinimumSize)
          
 void subcontrollerVisibilityDidChange(EOComponentController controller)
          
protected  NSArray switchedControllers()
          
protected  int visibleBorderComponentIndex()
          
 
Methods inherited from class com.webobjects.eoapplication.EOComponentController
activateFirstFocusComponent, alignsComponents, canBeTransient, canResizeHorizontally, canResizeVertically, component, defaultComponentSize, ensureMinimumComponentSizeWithoutSubcontrollers, ensureMinimumSubcontrollerAreaSize, firstFocusComponent, handleTakeValueForUnboundKey, hideInSupercontroller, icon, insets, integrationComponent, integrationComponentDidBecomeInvisible, integrationComponentDidBecomeVisible, isComponentPrepared, isRootComponentController, isVisible, label, lastFocusComponent, makeInvisible, makeVisible, minimumComponentSizeWithoutSubcontrollers, minimumIntegrationComponentSize, minimumSubcontrollerAreaSize, prefersIconOnly, prepareComponent, setAlignsComponents, setCanResizeHorizontally, setCanResizeVertically, setComponent, setDefaultComponentSize, setFirstFocusComponent, setIcon, setInsets, setLabel, setLastFocusComponent, setPrefersIconOnly, setSubcontrollerArea, setToolTip, setUsesHorizontalLayout, setVisible, showInSupercontroller, 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, defaultActions, 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

EOSwitchController

public EOSwitchController()


EOSwitchController

public EOSwitchController(EOXMLUnarchiver unarchiver)

Parameters:
unarchiver -
Method Detail

addBorderComponentForControllerToDisplayComponent

protected abstract void addBorderComponentForControllerToDisplayComponent(EOComponentController controller,
                                                                          JComponent borderComponent,
                                                                          JComponent displayComponent)

Parameters:
controller -
borderComponent -
displayComponent -

addComponentOfSubcontroller

protected void addComponentOfSubcontroller(EOComponentController controller)

Overrides:
addComponentOfSubcontroller in class EOComponentController
Parameters:
controller -

borderComponents

protected NSArray borderComponents()

Returns:

borderSize

public Dimension borderSize()

borderedSizeForComponentSize

public Dimension borderedSizeForComponentSize(Dimension componentSize)

Parameters:
componentSize -
Returns:

componentDidBecomeInvisible

protected void componentDidBecomeInvisible()

Overrides:
componentDidBecomeInvisible in class EOComponentController

componentDidBecomeVisible

protected void componentDidBecomeVisible()

Overrides:
componentDidBecomeVisible in class EOComponentController

componentShouldChange

public boolean componentShouldChange(int newIndex)

Parameters:
newIndex -
Returns:

componentSizeForBorderedSize

public Dimension componentSizeForBorderedSize(Dimension componentSize)

Parameters:
componentSize -
Returns:

componentSwitched

public void componentSwitched(int selectedIndex)

Parameters:
selectedIndex -

displayComponentBorderSize

protected Dimension displayComponentBorderSize()

dispose

public void dispose()

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

generateComponent

protected void generateComponent()

Overrides:
generateComponent in class EOComponentController

hideSubcontroller

protected boolean hideSubcontroller(EOComponentController controller)

Overrides:
hideSubcontroller in class EOComponentController
Parameters:
controller -
Returns:

minimumComponentSize

public Dimension minimumComponentSize()

Overrides:
minimumComponentSize in class EOComponentController
Returns:

newDisplayComponent

protected abstract JComponent newDisplayComponent()

Returns:

removeBorderComponentForControllerFromDisplayComponent

protected abstract void removeBorderComponentForControllerFromDisplayComponent(EOComponentController controller,
                                                                               JComponent borderComponent,
                                                                               JComponent displayComponent,
                                                                               int index)

Parameters:
controller -
borderComponent -
displayComponent -
index -

removeComponentOfSubcontroller

protected void removeComponentOfSubcontroller(EOComponentController controller)

Overrides:
removeComponentOfSubcontroller in class EOComponentController
Parameters:
controller -

removeTransientSubcontroller

protected boolean removeTransientSubcontroller(EOController controller)

Overrides:
removeTransientSubcontroller in class EOComponentController
Parameters:
controller -
Returns:

resetUserInterface

public void resetUserInterface()

Specified by:
resetUserInterface in interface EOComponentController.ResetUserInterface

selectedBorderComponentInDisplayComponent

protected abstract JComponent selectedBorderComponentInDisplayComponent(JComponent displayComponent)

Parameters:
displayComponent -
Returns:

showBorderComponentAtIndex

protected void showBorderComponentAtIndex(int index)

Parameters:
index -

showBorderComponentAtIndexInDisplayComponent

protected abstract void showBorderComponentAtIndexInDisplayComponent(JComponent borderComponent,
                                                                     JComponent displayComponent,
                                                                     int index)

Parameters:
borderComponent -
displayComponent -
index -

showSubcontroller

protected boolean showSubcontroller(EOComponentController controller)

Overrides:
showSubcontroller in class EOComponentController
Parameters:
controller -
Returns:

subcontrollerMinimumSizeDidChange

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

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

subcontrollerVisibilityDidChange

public void subcontrollerVisibilityDidChange(EOComponentController controller)

Parameters:
controller -

switchedControllers

protected NSArray switchedControllers()

Returns:

visibleBorderComponentIndex

protected int visibleBorderComponentIndex()

Returns:

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.