ERDEditToManyRelationship Class Reference

Inherits er::directtoweb::components::ERDCustomEditComponent.

Collaboration diagram for ERDEditToManyRelationship:

Collaboration graph
[legend]

List of all members.

Public Member Functions

EOEnterpriseObject addObject ()
WOComponent addObjectsAction ()
void deleteObject (EOEnterpriseObject objectToRemove)
WOComponent deleteObjectsAction ()
String destinationEntityName ()
 ERDEditToManyRelationship (WOContext context)
boolean isEditing ()
boolean isSelected ()
NSArray objects ()
String pageConfiguration ()
String relationshipName ()
void removeObject (EOEnterpriseObject objectToRemove)
WOComponent removeObjectsAction ()
NSMutableArray selectedObjects ()
void setIsSelected (boolean selected)
void setSelectedObjects (NSMutableArray value)
String task ()

Public Attributes

EOEnterpriseObject currentObject
int index
int objectsToAdd = 1

Protected Attributes

NSMutableArray selectedObjects

Private Member Functions

EOEnterpriseObject relationshipObject ()

Static Private Attributes

static final Logger log = Logger.getLogger(ERDEditToManyRelationship.class)


Detailed Description

Convenient way to add, edit, remove or delete objects from a to-many relationship. Best used for owned relationships with not much info in them.
Displays a list of edit configurations, one for each related object, along with a check box that handles the selection for the Delete and Remove buttons. If the keypath is not directly off the root object, then the last part will be selected as the relationship. Meaning you can edit a customer and have the keypath being lastPurchase.items
A know bug is when you add object and have validation failures, the failure display may end up with the wrong object.

object eo to edit key keypath to the relationship destinationEntityName entity name for the destination of the relationship hasRemove true if the objects can also be removed (as opposed to just beeing deleted) inspectConfigurationName page configuration to use for the edit component task should be "edit"


Constructor & Destructor Documentation

ERDEditToManyRelationship ( WOContext  context  ) 

Public constructor.

Parameters:
context the context


Member Function Documentation

EOEnterpriseObject addObject (  ) 

WOComponent addObjectsAction (  ) 

void deleteObject ( EOEnterpriseObject  objectToRemove  ) 

WOComponent deleteObjectsAction (  ) 

String destinationEntityName (  ) 

boolean isEditing (  ) 

boolean isSelected (  ) 

NSArray objects (  ) 

String pageConfiguration (  ) 

String relationshipName (  ) 

EOEnterpriseObject relationshipObject (  )  [private]

void removeObject ( EOEnterpriseObject  objectToRemove  ) 

WOComponent removeObjectsAction (  ) 

void setIsSelected ( boolean  selected  ) 

void setSelectedObjects ( NSMutableArray  value  ) 

String task (  ) 

Gets the current D2W task.

Reimplemented from ERDCustomComponent.


Member Data Documentation

EOEnterpriseObject currentObject

int index

final Logger log = Logger.getLogger(ERDEditToManyRelationship.class) [static, private]

logging support

Reimplemented from ERDCustomEditComponent.

int objectsToAdd = 1

com.webobjects.eocontrol.EOEnterpriseObject


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:52 2012 for Project Wonder by  doxygen 1.5.8