WebObjects 5.4.2

com.webobjects.eoapplication
Class EOSwitchController

java.lang.Object
  extended by com.webobjects.eoapplication.EOController
      extended by com.webobjects.eoapplication.EOComponentController
          extended by com.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/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
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

dispose

public void dispose()

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

addComponentOfSubcontroller

protected void addComponentOfSubcontroller(EOComponentController controller)

Overrides:
addComponentOfSubcontroller in class EOComponentController
Parameters:
controller -

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:
See Also:
EOController.disposeIfTransient()

newDisplayComponent

protected abstract JComponent newDisplayComponent()

Returns:

generateComponent

protected void generateComponent()

Overrides:
generateComponent in class EOComponentController

minimumComponentSize

public Dimension minimumComponentSize()

Overrides:
minimumComponentSize in class EOComponentController
Returns:

resetUserInterface

public void resetUserInterface()

Specified by:
resetUserInterface in interface EOComponentController.ResetUserInterface

subcontrollerVisibilityDidChange

public void subcontrollerVisibilityDidChange(EOComponentController controller)

Parameters:
controller -

componentDidBecomeVisible

protected void componentDidBecomeVisible()

Overrides:
componentDidBecomeVisible in class EOComponentController

componentDidBecomeInvisible

protected void componentDidBecomeInvisible()

Overrides:
componentDidBecomeInvisible in class EOComponentController

showSubcontroller

protected boolean showSubcontroller(EOComponentController controller)

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

hideSubcontroller

protected boolean hideSubcontroller(EOComponentController controller)

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

displayComponentBorderSize

protected Dimension displayComponentBorderSize()

borderSize

public Dimension borderSize()

borderedSizeForComponentSize

public Dimension borderedSizeForComponentSize(Dimension componentSize)

Parameters:
componentSize -
Returns:

componentSizeForBorderedSize

public Dimension componentSizeForBorderedSize(Dimension componentSize)

Parameters:
componentSize -
Returns:

subcontrollerMinimumSizeDidChange

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

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

switchedControllers

protected NSArray switchedControllers()

Returns:

borderComponents

protected NSArray borderComponents()

Returns:

showBorderComponentAtIndex

protected void showBorderComponentAtIndex(int index)

Parameters:
index -

visibleBorderComponentIndex

protected int visibleBorderComponentIndex()

Returns:

selectedBorderComponentInDisplayComponent

protected abstract JComponent selectedBorderComponentInDisplayComponent(JComponent displayComponent)

Parameters:
displayComponent -
Returns:

addBorderComponentForControllerToDisplayComponent

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

Parameters:
controller -
borderComponent -
displayComponent -

removeBorderComponentForControllerFromDisplayComponent

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

Parameters:
controller -
borderComponent -
displayComponent -
index -

showBorderComponentAtIndexInDisplayComponent

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

Parameters:
borderComponent -
displayComponent -
index -

componentShouldChange

public boolean componentShouldChange(int newIndex)

Parameters:
newIndex -
Returns:

componentSwitched

public void componentSwitched(int selectedIndex)

Parameters:
selectedIndex -

Last updated June 2008

Copyright © 2000-2008 Apple Inc.