ERMODEditRelationshipPage Class Reference

Inherits er::directtoweb::pages::ERD2WPage, er::modern::directtoweb::interfaces::ERMEditRelationshipPageInterface, and com::webobjects::directtoweb::SelectPageInterface.

Collaboration diagram for ERMODEditRelationshipPage:

Collaboration graph
[legend]

List of all members.

Classes

interface  Keys

Public Member Functions

void awake ()
EODataSource dataSource ()
boolean displayList ()
boolean displayNew ()
boolean displayQuery ()
WOComponent displayQueryAction ()
 ERMODEditRelationshipPage (WOContext context)
String inlineTask ()
String inspectConfiguration ()
boolean isListEmpty ()
int listSize ()
EOEnterpriseObject masterObject ()
NSArray<?> masterObjectAndRelationshipKey ()
WOComponent newObjectAction ()
EOEnterpriseObject objectToAddToRelationship ()
WOComponent queryAction ()
void relatedObjectDidChange (NSNotification notif)
WODisplayGroup relationshipDisplayGroup ()
String relationshipKey ()
WOComponent returnAction ()
WOComponent saveAction ()
WOComponent selectAction ()
EODataSource selectDataSource ()
EOEnterpriseObject selectedObject ()
void setDataSource (EODataSource ds)
void setInlineTask (String task)
void setInlineTaskSafely (String task)
void setMasterObject (EOEnterpriseObject masterObject)
void setMasterObjectAndRelationshipKey (EOEnterpriseObject eo, String relationshipKey)
void setMasterObjectAndRelationshipKey (NSArray<?> a)
void setObjectToAddToRelationship (EOEnterpriseObject objectToAddTorRelationship)
void setRelationshipDisplayGroup (WODisplayGroup relationshipDisplayGroup)
void setRelationshipKey (String key)
void setSelectDataSource (EODataSource selectDataSource)
void setSelectedObject (EOEnterpriseObject eo)
void sleep ()

Public Attributes

boolean isRelationshipToMany
WOComponent nextPage
NextPageDelegate nextPageDelegate

Private Attributes

EODataSource _dataSource
EOEnterpriseObject _masterObject
EOEnterpriseObject _objectToAddToRelationship
WODisplayGroup _relationshipDisplayGroup
String _relationshipKey
EODataSource _selectDataSource
EOEnterpriseObject _selectedObject


Detailed Description

An improved EditRelationshipPage that supports embedding and inline editing tasks.

editConfigurationName isEntityEditable readOnly relationshipRestrictingQualifier - An additional qualifier that can be used to restrict the objects shown in the relationship (see: ERDDelayedExtraQualifierAssignment). Useful if you have a value like: isDeleted that you wish to respect.

Author:
davidleber

Constructor & Destructor Documentation

ERMODEditRelationshipPage ( WOContext  context  ) 


Member Function Documentation

void awake (  ) 

Overridden to lock the page's editingContext, if there is any present.

Reimplemented from ERD2WPage.

EODataSource dataSource (  ) 

DataSource for the relationship.

Returns:
EODataSource an EODetailDataSource created from the masterObject and relationshipKey.

boolean displayList (  ) 

Controls whether the inline list page is displayed.

boolean displayNew (  ) 

Controls whether the inline eidt/create page is displayed.

boolean displayQuery (  ) 

Controls whether the inline query page is displayed.

WOComponent displayQueryAction (  ) 

Perform the displayQueryAction. Sets the inline task to 'query'.

String inlineTask (  ) 

String inspectConfiguration (  ) 

Returns the name of the current inline page configuration

Returns:

boolean isListEmpty (  ) 

Checks if the current list is empty.

int listSize (  ) 

The number of objects in the list.

EOEnterpriseObject masterObject (  ) 

NSArray<?> masterObjectAndRelationshipKey (  ) 

Returns an array containing the master object (index 0) and relationship key (index 1). Required by the ERMEditRelationshipPageInterface

Returns:
NSArray containing the master object (index 0) and relationship key (index 1).

Implements ERMEditRelationshipPageInterface.

WOComponent newObjectAction (  ) 

Performs the newObjectAction. Creates a new object and sets the inline task to 'create'

Returns:

EOEnterpriseObject objectToAddToRelationship (  ) 

WOComponent queryAction (  ) 

Performs the queryAction. Sets the inline task to 'list'

Returns:

void relatedObjectDidChange ( NSNotification  notif  ) 

Called when an ERMDActionButton changes the related object. Forces the displayGroup to fetch.

WODisplayGroup relationshipDisplayGroup (  ) 

Display group for the related objects

Returns:
WODisplayGroup lazily instantiated display group.

String relationshipKey (  ) 

WOComponent returnAction (  ) 

Perform the returnAction. Called when the page is a non embedded page is returning to the originating edit page.

Returns:

WOComponent saveAction (  ) 

Performs the saveAction. Called by inline edit or create pages.

Returns:

WOComponent selectAction (  ) 

Perform the selectAction. Called by inline select page.

Returns:

EODataSource selectDataSource (  ) 

EOEnterpriseObject selectedObject (  ) 

Returns the current selected Object. Required by the SelectPageInterface

void setDataSource ( EODataSource  ds  ) 

Reimplemented from ERD2WPage.

void setInlineTask ( String  task  ) 

void setInlineTaskSafely ( String  task  ) 

void setMasterObject ( EOEnterpriseObject  masterObject  ) 

void setMasterObjectAndRelationshipKey ( EOEnterpriseObject  eo,
String  relationshipKey 
)

Set the master object and relationship key.

Parameters:
EOEnterpriseObject the master object
String the relationship key

void setMasterObjectAndRelationshipKey ( NSArray<?>  a  ) 

Sets the master object and relationship key. Takes an NSArray containing the master object (index 0) and relationship key (index 1). Required by the ERMEditRelationhsipPageInterface

Parameters:
NSArray containing the master object (index 0) and relationship key (index 1).

Implements ERMEditRelationshipPageInterface.

void setObjectToAddToRelationship ( EOEnterpriseObject  objectToAddTorRelationship  ) 

void setRelationshipDisplayGroup ( WODisplayGroup  relationshipDisplayGroup  ) 

void setRelationshipKey ( String  key  ) 

void setSelectDataSource ( EODataSource  selectDataSource  ) 

void setSelectedObject ( EOEnterpriseObject  eo  ) 

Sets the current selected Object. Required by the SelectPageInterface

void sleep (  ) 

Overridden to unlock the page's editingContext, if there is any present.

Reimplemented from ERD2WPage.


Member Data Documentation

EODataSource _dataSource [private]

EOEnterpriseObject _masterObject [private]

EOEnterpriseObject _objectToAddToRelationship [private]

WODisplayGroup _relationshipDisplayGroup [private]

EODataSource _selectDataSource [private]

EOEnterpriseObject _selectedObject [private]

WOComponent nextPage

NextPageDelegate nextPageDelegate


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

Generated on Sat May 26 06:43:25 2012 for Project Wonder by  doxygen 1.5.8