PATH |
EOEditable
Implemented by:EOAssociationController, EODocumentController, EORangeValueController
Package: com.webobjects.eoapplication
Interface Description
EOEditable is an interface that defines an API for managing the editability of a branch of the controller hierarchy. EOEditable controllers usually base the editability of their user interfaces on the editability of their supercontrollers. Thus, by default all the EOEditable subcontrollers of an editable controller are also editable. To enable or disable a portion of an application's user interface, you need only message the highest level controller associated with that user interface.
Constants
EOEditable defines the following int
constants to identify the editability of an EOEditable controller:
Instance Methods
editability
public abstract int editability()
IfSupercontrollerEditable
.
isEditable
public abstract boolean isEditable()
true
if the receiver is editable, and false
otherwise. The default behavior should be to return true
if the receiver is currently editable. The receiver is editable if:
- The receiver's editability is AlwaysEditable.
- The receiver's editability is IfSupercontrollerEditable and sending isEditable to the first EOEditable ancestor of the receiver returns
true
.
setEditability
public abstract void setEditability(int editability)
supercontrollerEditabilityDidChange
public abstract void supercontrollerEditabilityDidChange()
takeResponsibilityForEditabilityOfAssociation
public abstract void takeResponsibilityForEditabilityOfAssociation( com.webobjects.eointerface.EOAssociation association)
© 2001 Apple Computer, Inc. (Last Published April 14, 2001)