com.webobjects.eoapplication
Class EOSwitchController
java.lang.Object
com.webobjects.eoapplication.EOController
com.webobjects.eoapplication.EOComponentController
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
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 |
EOSwitchController
public EOSwitchController()
-
EOSwitchController
public EOSwitchController(EOXMLUnarchiver unarchiver)
-
- Parameters:
unarchiver
-
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:
Copyright © 2004 Apple Computer, Inc.