com.webobjects.eogeneration
Class EOEditingController
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
- All Implemented Interfaces:
- EOAction.Enabling, EOAssociationConnector, EOComponentController.EndEditing, EODocument, EOEditable, EOObjectDisplay, EOObjectDisplayDocument, EOObserving, NSDisposable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions
- Direct Known Subclasses:
- EOFormController, EOListController
- public abstract class EOEditingController
- extends EODocumentController
Methods inherited from class com.webobjects.eoapplication.EODocumentController |
canRedo, canRevert, canSave, canUndo, deleteSelectedObjects, editability, handleEditingContextNotification, insertObject, isDocumentForGlobalID, isEditable, isEdited, isRootDocumentController, prepareForNewTask, redo, revert, revertAndMakeInvisible, revertChanges, revertFailed, save, 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 |
EOEditingController
public EOEditingController()
EOEditingController
public EOEditingController(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 EODocumentController
- 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
connectionWasBroken
protected void connectionWasBroken()
- Description copied from class:
EOEntityController
- Reacts to the connection for the receiver being broken, taking
care of association disconnecting.
- Overrides:
connectionWasBroken
in class EOEntityController
- Following copied from class:
com.webobjects.eoapplication.EOController
- See Also:
EOController.breakConnection()
connectionWasEstablished
protected void connectionWasEstablished()
- Description copied from class:
EODocumentController
- Reacts to the connection for the receiver being established, taking
care of editability issues in addition to the superclass implementation.
- Overrides:
connectionWasEstablished
in class EODocumentController
- Following copied from class:
com.webobjects.eoapplication.EOController
- See Also:
EOController.establishConnection()
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 EODocumentController
- 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()
dispose
public void dispose()
- Description copied from class:
EODocumentController
- Prepares the receiver so it is disposed when Java performs garbage collection.
- Overrides:
dispose
in class EODocumentController
disposeIfTransient
protected boolean disposeIfTransient()
- Description copied from class:
EOController
- Disposes the receiver if it's transient, first removing it from its
supercontroller with
removeTransientSubcontroller
If the
receiver's supercontroller is non-null
, this method also attempts to
dispose of the supercontroller if it's transient. Supercontrollers can
prevent a controller from becoming transient, in which case this method
returns false
. Subclasses should first invoke the super
implementation and only continue disposing if the super implementation
returns true
.
- Overrides:
disposeIfTransient
in class EOController
- Following copied from class:
com.webobjects.eoapplication.EOController
- Returns:
true
if the receiver can be transient and has been
disposed; false
otherwise- See Also:
EOController.removeTransientSubcontroller(EOController)
entityName
public String entityName()
- Description copied from interface:
EOObjectDisplay
- Returns the name of the entity of the enterprise objects
displayed in the receiver's display group.
- Overrides:
entityName
in class EOEntityController
- Following copied from interface:
com.webobjects.eoapplication.EOObjectDisplay
- Returns:
- the name of the entity of the enterprise objects displayed
fetchesOnConnect
public boolean fetchesOnConnect()
- Description copied from class:
EOEntityController
- Returns whether the receiver should fetch its display group content next time
its connection is established. This value changes often: Whenever an entity
controller prepares for a new task, it sets this flag to
true
.
Once it retrieves objects explicitly (for example from a global ID) or actually
performs the fetch while connecting, it sets this flag to false
.
- Overrides:
fetchesOnConnect
in class EOEntityController
- Following copied from class:
com.webobjects.eoapplication.EOEntityController
- Returns:
true
if the controller should fetch its display group content next time
its connection is established; false
otherwise- See Also:
EOEntityController.setFetchesOnConnect(boolean)
insert
public boolean insert()
mandatoryRelationshipPaths
protected NSArray mandatoryRelationshipPaths()
masterDetailAssociation
public EOMasterDetailAssociation masterDetailAssociation()
newDisplayGroup
public EODisplayGroup newDisplayGroup()
- Description copied from class:
EOEntityController
- Creates a new display group using a data source provided by
newDataSource
. This method can be used as display
group provider method.
- Overrides:
newDisplayGroup
in class EOEntityController
- Following copied from class:
com.webobjects.eoapplication.EOEntityController
- Returns:
- the new display group
- See Also:
EOEntityController.newDisplayGroupUsingOptimisticRefresh()
,
EOEntityController.setDisplayGroupProviderMethodName(String)
openWithTask
public boolean openWithTask()
relationshipPath
public String relationshipPath()
setEntityName
public void setEntityName(String string)
- Description copied from class:
EOEntityController
- Sets the entity name of the enterprise objects displayed by the receiver.
- Overrides:
setEntityName
in class EOEntityController
- Following copied from class:
com.webobjects.eoapplication.EOEntityController
- Parameters:
string
- the entity name of the enterprise objects displayed by the receiver
setMandatoryRelationshipPaths
public void setMandatoryRelationshipPaths(NSArray relationshipPaths)
setMasterDetailAssociation
public void setMasterDetailAssociation(EOMasterDetailAssociation association)
setRelationshipPath
public void setRelationshipPath(String string)
toString
public String toString()
- Returns the receiver as a string describing the state of the controller.
- Overrides:
toString
in class EODocumentController
- Returns:
- the String representation of the receiver
Copyright © 2003 Apple Computer, Inc.