com.webobjects.eogeneration
Class EOListController
java.lang.Object
|
+--com.webobjects.eoapplication.EOController
|
+--com.webobjects.eoapplication.EOComponentController
|
+--com.webobjects.eoapplication.EOArchiveController
|
+--com.webobjects.eoapplication.EOEntityController
|
+--com.webobjects.eoapplication.EODocumentController
|
+--com.webobjects.eogeneration.EOEditingController
|
+--com.webobjects.eogeneration.EOListController
- All Implemented Interfaces:
- EOAction.Enabling, EOAssociationConnector, EOComponentController.EndEditing, EOControllerFactory.List, EOControllerFactory.Select, EODocument, EOEditable, EOModalDialogController.ModalActions, EOObjectDisplay, EOObjectDisplayDocument, EOObserving, EOWidgetController.DefaultAction, NSDisposable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions
- public class EOListController
- extends EOEditingController
- implements EOModalDialogController.ModalActions, EOWidgetController.DefaultAction, EOControllerFactory.Select, EOControllerFactory.List
| Methods inherited from class com.webobjects.eogeneration.EOEditingController |
connectionWasBroken, connectionWasEstablished, dispose, disposeIfTransient, entityName, fetchesOnConnect, mandatoryRelationshipPaths, masterDetailAssociation, newDisplayGroup, relationshipPath, setEntityName, setMandatoryRelationshipPaths, setMasterDetailAssociation, setRelationshipPath, toString |
| Methods inherited from class com.webobjects.eoapplication.EODocumentController |
canRedo, canRevert, canSave, canUndo, deleteSelectedObjects, editability, handleEditingContextNotification, insertObject, isEditable, isEdited, isRootDocumentController, prepareForNewTask, redo, revert, revertAndMakeInvisible, revertChanges, revertFailed, saveAndMakeInvisible, saveChanges, saveFailed, saveIfUserConfirms, saveIfUserConfirms, saveIfUserConfirmsAndMakeInvisible, saveIfUserConfirmsAndMakeInvisible, setEditability, setEdited, supercontrollerEditabilityDidChange, takeResponsibilityForEditabilityOfAssociation, undo, wasEdited |
| Methods inherited from class com.webobjects.eoapplication.EOEntityController |
controllerDidLoadArchive, controllerWillLoadArchive, displayGroup, displayGroupProviderMethodName, displayGroupSortOrderings, editingContext, editingContextProviderMethodName, endEditing, establishConnection, isFetchesOnConnectEnabled, isRootEntityController, nestedEditingContext, newDataSource, newDisplayGroupUsingOptimisticRefresh, newEditingContext, objectForOutletPath, resetsEditingContextWhenPreparingForNewTask, selectedObject, selectedObjectGlobalID, selectedObjects, selectedObjectsGlobalIDs, setDisplayGroup, setDisplayGroupProviderMethodName, setEditingContext, setEditingContextProviderMethodName, setFetchesOnConnect, setFetchesOnConnectEnabled, setObjectsWithFetchSpecification, setObjectsWithGlobalIDs, setObjectWithGlobalID, setResetsEditingContextWhenPreparingForNewTask, startListeningToDisplayGroup, startListeningToEditingContext, stopListeningToDisplayGroup, stopListeningToEditingContext, takeResposibilityForConnectionOfAssociation |
| Methods inherited from class com.webobjects.eoapplication.EOComponentController |
activateFirstFocusComponent, addComponentOfSubcontroller, alignsComponents, canBeTransient, canResizeHorizontally, canResizeVertically, component, componentDidBecomeInvisible, componentDidBecomeVisible, defaultComponentSize, ensureMinimumComponentSizeWithoutSubcontrollers, ensureMinimumSubcontrollerAreaSize, firstFocusComponent, generateComponent, handleTakeValueForUnboundKey, hideInSupercontroller, hideSubcontroller, icon, insets, integrationComponent, integrationComponentDidBecomeInvisible, integrationComponentDidBecomeVisible, isComponentPrepared, isRootComponentController, isVisible, label, lastFocusComponent, makeInvisible, makeVisible, minimumComponentSize, minimumComponentSizeWithoutSubcontrollers, minimumIntegrationComponentSize, minimumSubcontrollerAreaSize, prefersIconOnly, 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, usesHorizontalLayout |
| Methods inherited from class com.webobjects.eoapplication.EOController |
actionNames, actions, actionWithName, additionalActions, additionalKeyValuePairs, addSubcontroller, breakConnection, breakConnectionToSubcontrollers, canAccessFieldsDirectly, controllerEnumeration, controllersInEnumeration, controllersWithKeyValuePair, controllersWithKeyValuePairs, controllerWithKeyValuePair, controllerWithKeyValuePairs, disableActionNamed, disposableRegistry, enableActionNamed, enabledActions, 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 |
EOListController
public EOListController()
EOListController
public EOListController(EOXMLUnarchiver unarchiver)
canPerformActionNamed
public boolean canPerformActionNamed(String actionName)
- Description copied from class:
EODocumentController
- Overridden to handle editing-related action enabling and disabling.
- Overrides:
canPerformActionNamed in class EOEditingController
- Following copied from class:
com.webobjects.eoapplication.EODocumentController
- Parameters:
actionName - the action method name- Returns:
true if the action should be enabled; false otherwise- See Also:
EOAction.Enabling
cancel
public void cancel()
- Description copied from interface:
EOModalDialogController.ModalActions
- The action method invoked when the user cancels the modal dialog.
- Specified by:
cancel in interface EOModalDialogController.ModalActions
defaultAction
public void defaultAction()
- Specified by:
defaultAction in interface EOWidgetController.DefaultAction
defaultActions
protected NSArray defaultActions()
- Description copied from class:
EODocumentController
- Adds actions for handling editing (like save, revert) the default
actions defined by the superclass, EOEntityController (but only
if the receiver is a root document controller and if it's not
used in a modal dialog.
- Overrides:
defaultActions in class EOEditingController
- Following copied from class:
com.webobjects.eoapplication.EOController
- Returns:
- an array of the receiver's default actions
- See Also:
EOController.actions(),
EOController.resetActions()
delete
public boolean delete()
- Overrides:
delete in class EOEditingController
finishSelecting
public void finishSelecting()
- Specified by:
finishSelecting in interface EOControllerFactory.Select
insert
public boolean insert()
- Overrides:
insert in class EOEditingController
insertWithTask
public boolean insertWithTask()
isDocumentForGlobalID
public boolean isDocumentForGlobalID(EOGlobalID globalID,
String entityName)
- Description copied from class:
EODocumentController
- Conformance to EODocument. Returns whether the receiver is a document for the
enterprise object associated with
globalID and entityName.
See the method description of isDocumentForGlobalID in the interface
specification for EODocument. EODocumentController's default implementation returns
true if the receiver is a root document controller and receiver's display
group displays only the specified object. Subclasses might have to override this
method to return false, for example list controllers can't really
be documents for a single object and should return false.
- Overrides:
isDocumentForGlobalID in class EODocumentController
- Following copied from class:
com.webobjects.eoapplication.EODocumentController
- Parameters:
globalID - the EOGlobalID of the enterprise objectentityName - the name of the entity of the enterprise object- Returns:
true if the receiver is a root document controller and its display group
is displaying only the specified enteprise object; false otherwise- See Also:
EODocument.isDocumentForGlobalID(EOGlobalID, String)
listObjectsWithFetchSpecification
public void listObjectsWithFetchSpecification(EOFetchSpecification fetchSpecification)
- Specified by:
listObjectsWithFetchSpecification in interface EOControllerFactory.List
listObjectsWithGlobalIDs
public void listObjectsWithGlobalIDs(NSArray globalIDs)
- Specified by:
listObjectsWithGlobalIDs in interface EOControllerFactory.List
modalDialogShouldClose
public boolean modalDialogShouldClose()
- Description copied from interface:
EOModalDialogController.ModalActions
- This method is invoked by the modal dialog controller on its subcontrollers
when the user attempts to close the modal dialog with the dialog's close
button (not the usual ok/cancel buttons). Subcontrollers return whether
the dialog can be closed (which corresponds to a cancel operation) or not.
- Specified by:
modalDialogShouldClose in interface EOModalDialogController.ModalActions
- Following copied from interface:
com.webobjects.eoapplication.EOModalDialogController.ModalActions
- Returns:
true if the dialog can be closed (the operation can
be cancelled); false otherwise.
ok
public boolean ok()
- Description copied from interface:
EOModalDialogController.ModalActions
- The action method invoked when the user wants to finish the modal dialog.
- Specified by:
ok in interface EOModalDialogController.ModalActions
- Following copied from interface:
com.webobjects.eoapplication.EOModalDialogController.ModalActions
- Returns:
true if the dialog can be closed (the operation was
performed successfully); false otherwise.
openWithTask
public boolean openWithTask()
- Overrides:
openWithTask in class EOEditingController
prepareToSelect
public void prepareToSelect(boolean allowMultipleObjects,
boolean allowInsertingObject)
- Specified by:
prepareToSelect in interface EOControllerFactory.Select
provideSelectedObjectGlobalID
public EOGlobalID provideSelectedObjectGlobalID()
- Specified by:
provideSelectedObjectGlobalID in interface EOControllerFactory.Select
provideSelectedObjectsGlobalIDs
public NSArray provideSelectedObjectsGlobalIDs()
- Specified by:
provideSelectedObjectsGlobalIDs in interface EOControllerFactory.Select
save
public boolean save()
- Description copied from class:
EODocumentController
- Saves the receiver's editing context changes by invoking
saveChanges,
requesting an error dialog upon failure. Returns whether the save succeeded.
- Overrides:
save in class EODocumentController
- Following copied from class:
com.webobjects.eoapplication.EODocumentController
- Returns:
true if the save succeeded; false otherwise- See Also:
EODocumentController.saveChanges(boolean, String)
Copyright © 2003 Apple Computer, Inc.