com.webobjects.eogeneration
Class EOFormController
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.EOFormController
- All Implemented Interfaces:
- EOAction.Enabling, EOAssociationConnector, EOComponentController.EndEditing, EODocument, EOEditable, EOModalDialogController.ModalActions, EOObjectDisplay, EOObjectDisplayDocument, EOObserving, EOControllerFactory.Insert, EOControllerFactory.Open, EOControllerFactory.SelectByInserting, NSDisposable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions
public class EOFormController
- extends EOEditingController
- implements EOModalDialogController.ModalActions, EOControllerFactory.Insert, EOControllerFactory.Open, EOControllerFactory.SelectByInserting
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, canUndo, deleteSelectedObjects, editability, handleEditingContextNotification, insertObject, isDocumentForGlobalID, 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 |
EOFormController
public EOFormController()
EOFormController
public EOFormController(EOXMLUnarchiver unarchiver)
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
- Returns:
- an array of the receiver's default actions
- See Also:
EOController.actions()
,
EOController.resetActions()
canPerformActionNamed
public boolean canPerformActionNamed(String actionName)
- Description copied from class:
EODocumentController
- Overridden to handle editing-related action enabling and disabling.
- Specified by:
canPerformActionNamed
in interface EOAction.Enabling
- Overrides:
canPerformActionNamed
in class EOEditingController
- Parameters:
actionName
- the action method name
- Returns:
true
if the action should be enabled; false
otherwise- See Also:
EOAction.Enabling
canRevert
public boolean canRevert()
- Description copied from class:
EODocumentController
- Returns whether the receiver can revert. A document controller can
revert only if it's the root document controller and if it's edited.
- Overrides:
canRevert
in class EODocumentController
- Returns:
true
if the controller can revert; false
otherwise
canSave
public boolean canSave()
- Description copied from class:
EODocumentController
- Returns whether the receiver can save. A document controller can
save only if it's the root document controller and if it's edited.
- Overrides:
canSave
in class EODocumentController
- Returns:
true
if the controller can save; false
otherwise
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.
- Specified by:
save
in interface EODocument
- Overrides:
save
in class EODocumentController
- Returns:
true
if the save succeeded; false
otherwise- See Also:
EODocumentController.saveChanges(boolean, String)
insert
public boolean insert()
- Overrides:
insert
in class EOEditingController
delete
public boolean delete()
- Overrides:
delete
in class EOEditingController
insertWithTask
public boolean insertWithTask()
openWithTask
public boolean openWithTask()
- Overrides:
openWithTask
in class EOEditingController
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
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
- Returns:
true
if the dialog can be closed (the operation was
performed successfully); false
otherwise.
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
- Returns:
true
if the dialog can be closed (the operation can
be cancelled); false
otherwise.
insertNewObject
public boolean insertNewObject()
- Specified by:
insertNewObject
in interface EOControllerFactory.Insert
insertNewObjectWithRelationshipPathsFilled
public boolean insertNewObjectWithRelationshipPathsFilled(NSDictionary relationshipPathToGlobalIDsMapTable)
- Specified by:
insertNewObjectWithRelationshipPathsFilled
in interface EOControllerFactory.Insert
openObjectWithGlobalID
public void openObjectWithGlobalID(EOGlobalID globalID)
- Specified by:
openObjectWithGlobalID
in interface EOControllerFactory.Open
prepareToSelectByInserting
public void prepareToSelectByInserting()
- Specified by:
prepareToSelectByInserting
in interface EOControllerFactory.SelectByInserting
provideSelectedObjectGlobalID
public EOGlobalID provideSelectedObjectGlobalID()
- Specified by:
provideSelectedObjectGlobalID
in interface EOControllerFactory.SelectByInserting
finishSelecting
public void finishSelecting()
- Specified by:
finishSelecting
in interface EOControllerFactory.SelectByInserting
Copyright © 2000-2008 Apple Inc.