WebObjects 5.4.2

com.webobjects.eoapplication
Class EOActionWidgetController

java.lang.Object
  extended by com.webobjects.eoapplication.EOController
      extended by com.webobjects.eoapplication.EOComponentController
          extended by com.webobjects.eoapplication.EOActionWidgetController
All Implemented Interfaces:
EOAction.Enabling, EOComponentController.ActionCollector, NSDisposable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions
Direct Known Subclasses:
EOActionButtonsController, EOActionMenuController

public abstract class EOActionWidgetController
extends EOComponentController
implements EOComponentController.ActionCollector


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
EOActionWidgetController()
          
EOActionWidgetController(EOXMLUnarchiver unarchiver)
          
 
Method Summary
 JComponent actionWidgetContainer()
          
 int actionWidgetPosition()
          
abstract  NSArray actionWidgets()
          
 NSArray collectedActions()
          
protected  void componentDidBecomeVisible()
          
protected abstract  void createWidgetsForActionsAndPlaceInContainers(NSArray actions, NSArray secondaryActions, JComponent container, JComponent secondaryContainer, int widgetPosition)
          
 void dispose()
          
protected abstract  void disposeActionWidgets()
          
protected  void generateComponent()
          
 void resetActions()
          
 JComponent secondaryActionWidgetContainer()
          
 void setActionWidgetContainer(JComponent component)
          
 void setActionWidgetPosition(int position)
          
 void setSecondaryActionWidgetContainer(JComponent component)
          
 void subcontrollerActionsDidChange(EOController controller)
          
 void subcontrollerConnectionDidChange(EOController controller)
          
protected  boolean supportsSecondaryActionWidget()
          
protected abstract  void updateActionWidgetEnabling()
          
 
Methods inherited from class com.webobjects.eoapplication.EOComponentController
activateFirstFocusComponent, addComponentOfSubcontroller, alignsComponents, canBeTransient, canResizeHorizontally, canResizeVertically, component, componentDidBecomeInvisible, defaultComponentSize, ensureMinimumComponentSizeWithoutSubcontrollers, ensureMinimumSubcontrollerAreaSize, firstFocusComponent, handleTakeValueForUnboundKey, hideInSupercontroller, hideSubcontroller, icon, insets, integrationComponent, integrationComponentDidBecomeInvisible, integrationComponentDidBecomeVisible, isComponentPrepared, isRootComponentController, isVisible, label, lastFocusComponent, makeInvisible, makeVisible, minimumComponentSize, minimumComponentSizeWithoutSubcontrollers, minimumIntegrationComponentSize, minimumSubcontrollerAreaSize, prefersIconOnly, prepareComponent, removeComponentOfSubcontroller, removeTransientSubcontroller, setAlignsComponents, setCanResizeHorizontally, setCanResizeVertically, setComponent, setDefaultComponentSize, setFirstFocusComponent, setIcon, setInsets, setLabel, setLastFocusComponent, setPrefersIconOnly, setSubcontrollerArea, setToolTip, setUsesHorizontalLayout, setVisible, showInSupercontroller, showSubcontroller, subcontrollerArea, subcontrollerMinimumSizeDidChange, 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, 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

EOActionWidgetController

public EOActionWidgetController()


EOActionWidgetController

public EOActionWidgetController(EOXMLUnarchiver unarchiver)

Parameters:
unarchiver -
Method Detail

dispose

public void dispose()

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

disposeActionWidgets

protected abstract void disposeActionWidgets()


setActionWidgetPosition

public void setActionWidgetPosition(int position)

Parameters:
position -

actionWidgetPosition

public int actionWidgetPosition()

Returns:

setActionWidgetContainer

public void setActionWidgetContainer(JComponent component)

Parameters:
component -

actionWidgetContainer

public JComponent actionWidgetContainer()

Returns:

setSecondaryActionWidgetContainer

public void setSecondaryActionWidgetContainer(JComponent component)

Parameters:
component -

secondaryActionWidgetContainer

public JComponent secondaryActionWidgetContainer()

Returns:

generateComponent

protected void generateComponent()

Overrides:
generateComponent in class EOComponentController

supportsSecondaryActionWidget

protected boolean supportsSecondaryActionWidget()

Returns:

actionWidgets

public abstract NSArray actionWidgets()

Returns:

updateActionWidgetEnabling

protected abstract void updateActionWidgetEnabling()


createWidgetsForActionsAndPlaceInContainers

protected abstract void createWidgetsForActionsAndPlaceInContainers(NSArray actions,
                                                                    NSArray secondaryActions,
                                                                    JComponent container,
                                                                    JComponent secondaryContainer,
                                                                    int widgetPosition)

Parameters:
actions -
container -
widgetPosition -

componentDidBecomeVisible

protected void componentDidBecomeVisible()

Overrides:
componentDidBecomeVisible in class EOComponentController

subcontrollerConnectionDidChange

public void subcontrollerConnectionDidChange(EOController controller)

Parameters:
controller -

subcontrollerActionsDidChange

public void subcontrollerActionsDidChange(EOController controller)

Parameters:
controller -

collectedActions

public NSArray collectedActions()

Specified by:
collectedActions in interface EOComponentController.ActionCollector
Returns:

resetActions

public void resetActions()

Overrides:
resetActions in class EOController

Last updated June 2008

Copyright © 2000-2008 Apple Inc.