WebObjects 5.2.3

com.webobjects.eogeneration
Class EOMultipleValuesEnumerationController

java.lang.Object
  extended bycom.webobjects.eoapplication.EOController
      extended bycom.webobjects.eoapplication.EOComponentController
          extended bycom.webobjects.eogeneration.EOWidgetController
              extended bycom.webobjects.eogeneration.EOAssociationController
                  extended bycom.webobjects.eogeneration.EOTitlesController
                      extended bycom.webobjects.eogeneration.EOEnumerationController
                          extended bycom.webobjects.eogeneration.EOMultipleValuesEnumerationController
All Implemented Interfaces:
ActionListener, ComponentListener, EOAction.Enabling, EOAssociationConnector, EOComponentController.EndEditing, EOEditable, EventListener, MouseListener, NSDisposable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions

public class EOMultipleValuesEnumerationController
extends EOEnumerationController
implements ActionListener, ComponentListener, MouseListener, EOComponentController.EndEditing


Nested Class Summary
 
Nested classes inherited from class com.webobjects.eogeneration.EOWidgetController
EOWidgetController.DefaultAction, EOWidgetController.FormatWidget, EOWidgetController.QueryWidget, EOWidgetController.TableWidget
 
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.eogeneration.EOTitlesController
NewTitlesDisplayGroupProviderMethodName
 
Fields inherited from class com.webobjects.eogeneration.EOAssociationController
ControllerDisplayGroupProviderMethodName
 
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.eoapplication.EOEditable
AlwaysEditable, IfSupercontrollerEditable, NeverEditable
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
KeyPathSeparator
 
Constructor Summary
EOMultipleValuesEnumerationController()
           
EOMultipleValuesEnumerationController(EOXMLUnarchiver unarchiver)
           
 
Method Summary
 void actionPerformed(ActionEvent event)
           
 void add()
           
 void addDetailKey(String key)
           
 boolean allowsDuplicates()
           
 boolean allowsRemoveAll()
           
 boolean canAdd()
           
 boolean canDown()
           
 boolean canPerformActionNamed(String actionName)
          Returns true if the receiver can perform the action method (sent by an EOAction object) named actionName, false otherwise.
 boolean canRemove()
           
 boolean canUp()
           
protected  void componentDidBecomeVisible()
          Invoked when the receiver's component becomes visible, giving the receiver a chance to react.
 void componentHidden(ComponentEvent event)
           
 void componentMoved(ComponentEvent event)
           
 void componentResized(ComponentEvent event)
           
 void componentShown(ComponentEvent event)
           
protected  void connectionWasBroken()
          Invoked from breakConnection to notify the receiver that its connection to its supercontroller has been broken, giving the receiver the opportunity to clean up after its become idle.
protected  void connectionWasEstablished()
          Invoked from establishConnection to notify the receiver that its connection to the controller hierarchy has been established, giving the receiver the opportunity to prepare itself (for example, setting delegates).
 EODisplayGroup detailDisplayGroup()
           
protected  NSArray detailDisplayGroupSortOrderings()
           
 String detailEntityName()
           
 NSArray detailKeys()
           
 String detailRelationshipPath()
           
protected  void disposeAssociations()
           
 void down()
           
 boolean endEditing()
          Ensures that all current edits in the user interface are flushed to the underlying data objects.
 String indexKey()
           
 void mouseClicked(MouseEvent event)
           
 void mouseEntered(MouseEvent event)
           
 void mouseExited(MouseEvent event)
           
 void mousePressed(MouseEvent event)
           
 void mouseReleased(MouseEvent event)
           
protected  EOAssociation newAssociation(JComponent widget, EODisplayGroup displayGroup, String enabledKey, EODisplayGroup enabledDisplayGroup)
           
protected  JComponent newWidget()
           
protected  int preferredLabelComponentPosition()
           
 void prepareForNewTask(boolean prepareSubcontrollersForNewTask)
          Prepares the receiver for performing a new task by resetting any data.
 void remove()
           
 void removeDetailKey(String key)
           
 void setAllowsDuplicates(boolean flag)
           
 void setAllowsRemoveAll(boolean flag)
           
 void setDetailKeys(NSArray keys)
           
 void setDetailRelationshipPath(String string)
           
 void setIndexKey(String string)
           
 void setSingleDetailKey(String key)
           
 void setUsesTableLabels(boolean flag)
           
protected  void startListeningToWidget()
           
protected  void stopListeningToWidget()
           
 String titlesEntityName()
           
 String toString()
          Returns the receiver as a string that states the receiver's class name and type name, whether the receiver is connected, the number of subcontrollers, whether or not the receiver has been prepared, whether or not the receiver is visible, information about widget sizing and alignment behavior, and so on.
 void up()
           
 boolean usesTableLabels()
           
 
Methods inherited from class com.webobjects.eogeneration.EOEnumerationController
preferredUsesLabelComponent, relationshipPath, setRelationshipPath
 
Methods inherited from class com.webobjects.eogeneration.EOTitlesController
addTitleKey, availableTitlesKey, newTitlesDataSource, newTitlesDisplayGroup, removeTitleKey, resetTitlesObjectsOnEveryConnect, searchesTitlesObjectsInEditingContext, setAvailableTitlesKey, setResetTitlesObjectsOnEveryConnect, setSearchesTitlesObjectsInEditingContext, setSingleTitleKey, setTitleKeys, setTitlesDisplayGroup, setTitlesDisplayGroupProviderMethodName, setTitlesEntityName, titleKeys, titlesDisplayGroup, titlesDisplayGroupProviderMethodName, titlesDisplayGroupSortOrderings
 
Methods inherited from class com.webobjects.eogeneration.EOAssociationController
association, controllerDisplayGroup, displayGroup, displayGroupProviderMethodName, dispose, disposeIfTransient, editability, enabledDisplayGroup, enabledDisplayGroupProviderMethodName, enabledKey, isEditable, prefersContinuousChangeNotification, setAssociation, setDisplayGroup, setDisplayGroupProviderMethodName, setEditability, setEnabledDisplayGroup, setEnabledDisplayGroupProviderMethodName, setEnabledKey, setPrefersContinuousChangeNotification, setSuppressesAssociation, supercontrollerEditabilityDidChange, suppressesAssociation, takeResponsibilityForEditabilityOfAssociation, takeResposibilityForConnectionOfAssociation
 
Methods inherited from class com.webobjects.eogeneration.EOWidgetController
generateComponent, highlightsLabel, labelComponent, labelComponentAlignment, labelComponentPosition, labelComponentWidth, minimumWidgetSize, newLabelComponent, preferredWidgetAutosizingMask, setAlignmentForWidget, setHighlightsLabel, setLabelComponent, setLabelComponentAlignment, setLabelComponentPosition, setLabelComponentWidth, setMinimumWidgetSize, setUsesLabelComponent, setWidget, setWidgetAlignment, toolTipComponent, usesLabelComponent, widget, widgetAlignment
 
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, usesHorizontalLayout
 
Methods inherited from class com.webobjects.eoapplication.EOController
actionNames, actions, actionWithName, additionalActions, additionalKeyValuePairs, addSubcontroller, breakConnection, breakConnectionToSubcontrollers, canAccessFieldsDirectly, controllerEnumeration, controllersInEnumeration, controllersWithKeyValuePair, controllersWithKeyValuePairs, controllerWithKeyValuePair, controllerWithKeyValuePairs, defaultActions, disableActionNamed, disposableRegistry, enableActionNamed, enabledActions, establishConnection, establishConnectionToSupercontrollers, handleQueryWithUnboundKey, hierarchicalControllerForKey, hierarchicalValueForKey, invokeMethod, isActionNamedEnabled, isAncestorOfController, isConnected, isSupercontrollerOfController, isTransientExplicitlyForbidden, 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

EOMultipleValuesEnumerationController

public EOMultipleValuesEnumerationController()

EOMultipleValuesEnumerationController

public EOMultipleValuesEnumerationController(EOXMLUnarchiver unarchiver)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Specified by:
actionPerformed in interface ActionListener

add

public void add()

addDetailKey

public void addDetailKey(String key)

allowsDuplicates

public boolean allowsDuplicates()

allowsRemoveAll

public boolean allowsRemoveAll()

canAdd

public boolean canAdd()

canDown

public boolean canDown()

canPerformActionNamed

public boolean canPerformActionNamed(String actionName)
Description copied from interface: EOAction.Enabling
Returns true if the receiver can perform the action method (sent by an EOAction object) named actionName, false otherwise. An EOController's implementation of this method generally returns false if the receiver doesn't have an action named actionName or if the actionName action is explicitly disabled.

Specified by:
canPerformActionNamed in interface EOAction.Enabling
Overrides:
canPerformActionNamed in class EOController

canRemove

public boolean canRemove()

canUp

public boolean canUp()

componentDidBecomeVisible

protected void componentDidBecomeVisible()
Description copied from class: EOComponentController
Invoked when the receiver's component becomes visible, giving the receiver a chance to react. EOComponentController's implementation invokes establishConnection to ensure the receiver is connected to the controller hierarchy.

Overrides:
componentDidBecomeVisible in class EOComponentController

componentHidden

public void componentHidden(ComponentEvent event)
Specified by:
componentHidden in interface ComponentListener

componentMoved

public void componentMoved(ComponentEvent event)
Specified by:
componentMoved in interface ComponentListener

componentResized

public void componentResized(ComponentEvent event)
Specified by:
componentResized in interface ComponentListener

componentShown

public void componentShown(ComponentEvent event)
Specified by:
componentShown in interface ComponentListener

connectionWasBroken

protected void connectionWasBroken()
Description copied from class: EOController
Invoked from breakConnection to notify the receiver that its connection to its supercontroller has been broken, giving the receiver the opportunity to clean up after its become idle.

Overrides:
connectionWasBroken in class EOTitlesController

connectionWasEstablished

protected void connectionWasEstablished()
Description copied from class: EOController
Invoked from establishConnection to notify the receiver that its connection to the controller hierarchy has been established, giving the receiver the opportunity to prepare itself (for example, setting delegates).

Overrides:
connectionWasEstablished in class EOTitlesController

detailDisplayGroup

public EODisplayGroup detailDisplayGroup()

detailDisplayGroupSortOrderings

protected NSArray detailDisplayGroupSortOrderings()

detailEntityName

public String detailEntityName()

detailKeys

public NSArray detailKeys()

detailRelationshipPath

public String detailRelationshipPath()

disposeAssociations

protected void disposeAssociations()
Overrides:
disposeAssociations in class EOTitlesController

down

public void down()

endEditing

public boolean endEditing()
Description copied from interface: EOComponentController.EndEditing
Ensures that all current edits in the user interface are flushed to the underlying data objects.

Specified by:
endEditing in interface EOComponentController.EndEditing
Overrides:
endEditing in class EOTitlesController

indexKey

public String indexKey()

mouseClicked

public void mouseClicked(MouseEvent event)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent event)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent event)
Specified by:
mouseExited in interface MouseListener

mousePressed

public void mousePressed(MouseEvent event)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent event)
Specified by:
mouseReleased in interface MouseListener

newAssociation

protected EOAssociation newAssociation(JComponent widget,
                                       EODisplayGroup displayGroup,
                                       String enabledKey,
                                       EODisplayGroup enabledDisplayGroup)
Overrides:
newAssociation in class EOTitlesController

newWidget

protected JComponent newWidget()
Specified by:
newWidget in class EOWidgetController

preferredLabelComponentPosition

protected int preferredLabelComponentPosition()
Overrides:
preferredLabelComponentPosition in class EOWidgetController

prepareForNewTask

public void prepareForNewTask(boolean prepareSubcontrollersForNewTask)
Description copied from class: EOController
Prepares the receiver for performing a new task by resetting any data. If prepareSubcontrollersForNewTask is true, this method also sends prepareForNewTask to each of the receiver's subcontrollers. This method is usually invoked to prepare a branch of the controller for reuse. Subclasses should override this method to get rid of data and perform any additional clean up.

Overrides:
prepareForNewTask in class EOTitlesController

remove

public void remove()

removeDetailKey

public void removeDetailKey(String key)

setAllowsDuplicates

public void setAllowsDuplicates(boolean flag)

setAllowsRemoveAll

public void setAllowsRemoveAll(boolean flag)

setDetailKeys

public void setDetailKeys(NSArray keys)

setDetailRelationshipPath

public void setDetailRelationshipPath(String string)

setIndexKey

public void setIndexKey(String string)

setSingleDetailKey

public void setSingleDetailKey(String key)

setUsesTableLabels

public void setUsesTableLabels(boolean flag)

startListeningToWidget

protected void startListeningToWidget()
Overrides:
startListeningToWidget in class EOWidgetController

stopListeningToWidget

protected void stopListeningToWidget()
Overrides:
stopListeningToWidget in class EOWidgetController

titlesEntityName

public String titlesEntityName()
Overrides:
titlesEntityName in class EOEnumerationController

toString

public String toString()
Description copied from class: EOComponentController
Returns the receiver as a string that states the receiver's class name and type name, whether the receiver is connected, the number of subcontrollers, whether or not the receiver has been prepared, whether or not the receiver is visible, information about widget sizing and alignment behavior, and so on.

Overrides:
toString in class EOEnumerationController

up

public void up()

usesTableLabels

public boolean usesTableLabels()

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

Copyright © 2004 Apple Computer, Inc.