|
WebObjects 5.2.3 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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.
| Field Summary | |
static int |
AlwaysEditable
The constant describing that a controller is always editable. |
static int |
IfSupercontrollerEditable
The constant describing that a controller is editable if its supercontroller is editable. |
static int |
NeverEditable
The constant describing that a controller is never editable. |
| Method Summary | |
int |
editability()
Returns the editability of the receiver. |
boolean |
isEditable()
Returns whether the receiver is currently editable. |
void |
setEditability(int editability)
Sets the editability of the receiver to editability. |
void |
supercontrollerEditabilityDidChange()
Invoked to notify the receiver that the editability of its supercontroller changed, giving the receiver the opportunity to update its user interface to match the editability of the supercontroller. |
void |
takeResponsibilityForEditabilityOfAssociation(EOAssociation association)
Invoked when one of the receiver's subcontrollers is disposed as a transient controller. |
| Field Detail |
public static final int AlwaysEditable
public static final int IfSupercontrollerEditable
EOEditable.AlwaysEditable.
public static final int NeverEditable
| Method Detail |
public int editability()
EOEditable.IfSupercontrollerEditable.
EOEditable.NeverEditable,
EOEditable.AlwaysEditable, or EOEditable.IfSupercontrollerEditablepublic boolean isEditable()
EOEditable.AlwaysEditable or its editability is
EOEditable.IfSupercontrollerEditable and sending
EOEditable.isEditable to the first EOEditable supercontroller
of the receiver returns true.
true if the controller is currently editable; false otherwisepublic void setEditability(int editability)
editability.
See the method description of setEditability in the
interface specification for EOEditable.
editability - the editability, one of EOEditable.NeverEditable,
EOEditable.AlwaysEditable, or EOEditable.IfSupercontrollerEditablepublic void supercontrollerEditabilityDidChange()
EOEditable.IfSupercontrollerEditable.
public void takeResponsibilityForEditabilityOfAssociation(EOAssociation association)
association.
association - the transient subcontroller's association
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||