|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.appserver.WOElement com.webobjects.appserver.WOComponent com.webobjects.directtoweb.D2WComponent com.webobjects.directtoweb.D2WPage com.webobjects.directtoweb.D2WEditRelationshipPage
public class D2WEditRelationshipPage
The D2WEditRelationshipPage
class provides the behavior for the
edit-relationship page Direct to Web templates: BASEditRelationshipPage,
NEUEditRelationshipPage, and WOLEditRelationshipPage.
The classes for these components inherit directly from
D2WEditRelationshipPage and define no additional methods or variables.
Most methods are accessed, via the EOKeyValueCoding interface defined in the EOControl framework, from the Direct to Web template's bindings (.wod) file. If you create a Direct to Web template from an edit-relationship page, you can invoke the methods in this class in the same way.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
---|
WOComponent.Event |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
---|
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Field Summary | |
---|---|
EOEnterpriseObject |
browserItem
The iteration variable bound to the item attribute of the WOBrowser on the edit-relationship page. |
NSArray |
browserSelections
Contains the selections the user chooses with the WOBrowser on the edit-relationship page. |
boolean |
isRelationshipToMany
Returns true if the relationship is a to-many relationship or false if the relationship is a to-one relationship. |
static int |
LIST
This constant is intentionally undocumented. |
static int |
NEW
This constant is intentionally undocumented. |
static int |
QUERY
This constant is intentionally undocumented. |
WODisplayGroup |
relationshipDisplayGroup
Contains the display group with the relationship destination objects. |
EODataSource |
selectDataSource
Contains the data source that holds the possible destination objects for the relationship. |
Fields inherited from class com.webobjects.directtoweb.D2WComponent |
---|
currentObjectKey |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
KeyPathSeparator |
Constructor Summary | |
---|---|
D2WEditRelationshipPage(WOContext aContext)
Constructs a D2WEditRelationshipPage with the specified context. |
Method Summary | |
---|---|
void |
awake()
This method is intentionally undocumented. |
String |
browserStringForItem()
Returns a String containing a user-presentable name corresponding to the browserItem variable of the receiver. |
String |
displayKey()
This method is intentionally undocumented. |
boolean |
displayList()
Returns whether or not the select component appears in the lower half of the edit-relationship page. |
String |
displayNameForRelationshipKey()
Returns a String containing a user-presentable name for the relationship edited by the receiver. |
boolean |
displayNew()
Returns whether or not the edit component appears in the lower half of the edit-relationship page. |
boolean |
displayQuery()
Returns whether or not the query component appears in the lower half of the edit-relationship page. |
WOComponent |
displayQueryAction()
Is invoked when the user clicks Search. |
boolean |
editingContextShouldValidateChanges(EOEditingContext editingContext)
This method is intentionally undocumented. |
WOComponent |
newObjectAction()
Is invoked when the user clicks New in the edit-relationship page. |
EOEnterpriseObject |
newObjectInRelationship()
Returns the EOEnterpriseObject, defined in the EOControl Framework, that is created when the user clicks New. |
EOEnterpriseObject |
objectToAddToRelationship()
Returns the EOEnterpriseObject, defined in the EOControl Framework, that is added to the relationship edited by the receiver. |
WOComponent |
queryAction()
Is invoked when the user clicks the Search button in the query component of the edit-relationship page. |
WOComponent |
removeFromToManyRelationshipAction()
Is invoked when the user clicks Remove in an edit-relationship page for a to-many relationship. |
WOComponent |
removeFromToOneRelationshipAction()
Is invoked when the user clicks Remove in an edit-relationship page for a to-one relationship. |
WOAssociation |
replacementAssociationForAssociation(WOAssociation oldAssociation,
String oldBinding,
DTWTemplate aTemplate,
WOContext aContext)
This method is intentionally undocumented. |
WOComponent |
returnAction()
Is invoked when the user clicks Return. |
WOComponent |
saveAction()
Is invoked when the user clicks the Save in the edit component of the edit-relationship page. |
WOComponent |
selectAction()
Is invoked when the user clicks the Select button next to an object in the select component. |
protected void |
setEditingContext(EOEditingContext newEditingContext)
This method is intentionally undocumented. |
void |
setMasterObjectAndRelationshipKey(EOEnterpriseObject eo,
String relationshipKey)
This method is intentionally undocumented. |
void |
setNewObjectInRelationship(Object arg)
This method is intentionally undocumented. |
void |
setObjectToAddToRelationship(EOEnterpriseObject newValue)
Sets the object that is added to the relationship. |
void |
sleep()
This method is intentionally undocumented. |
String |
toOneDescription()
Returns a String representing the destination object of the relationship edited by the receiver if the relationship is a to-one relationship. |
Methods inherited from class com.webobjects.directtoweb.D2WPage |
---|
alternateRowColor, dataSource, descriptionForResponse, extraBindings, finalize, nextPage, nextPageDelegate, pageWrapperName, setDataSource, setExtraBindings, setNextPage, setNextPageDelegate, showCancel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.webobjects.directtoweb.EditRelationshipPageInterface |
---|
setNextPage, setNextPageDelegate |
Field Detail |
---|
public static final int QUERY
public static final int LIST
public static final int NEW
public EODataSource selectDataSource
public WODisplayGroup relationshipDisplayGroup
public EOEnterpriseObject browserItem
public NSArray browserSelections
public boolean isRelationshipToMany
Constructor Detail |
---|
public D2WEditRelationshipPage(WOContext aContext)
aContext
- - the WOContext.Method Detail |
---|
public boolean editingContextShouldValidateChanges(EOEditingContext editingContext)
public void setMasterObjectAndRelationshipKey(EOEnterpriseObject eo, String relationshipKey)
setMasterObjectAndRelationshipKey
in interface EditRelationshipPageInterface
eo
- object to edit the relationship onrelationshipKey
- name of relationship to edit on eopublic void awake()
awake
in class WOComponent
WOComponent.ensureAwakeInContext(WOContext aContext)
,
WOComponent.sleep()
public void sleep()
sleep
in class WOComponent
WOComponent.awake()
protected void setEditingContext(EOEditingContext newEditingContext)
public String displayKey()
public boolean displayQuery()
public boolean displayList()
public boolean displayNew()
public String browserStringForItem()
browserItem
variable of the receiver.
This string appears in the WOBrowser of the edit-relationship page.
public String toOneDescription()
public String displayNameForRelationshipKey()
public EOEnterpriseObject objectToAddToRelationship()
public void setObjectToAddToRelationship(EOEnterpriseObject newValue)
newValue
- - the EOEnterpriseObject to add to the relationship.public WOComponent queryAction()
public WOComponent selectAction()
public WOComponent removeFromToManyRelationshipAction()
public WOComponent removeFromToOneRelationshipAction()
public WOComponent displayQueryAction()
public WOComponent returnAction()
nextPage
to specify the component this action displays.
You can also specify custom behavior for this action by overriding
nextPageDelegate
; in this case, nextPage
is ignored.
public WOComponent newObjectAction()
public EOEnterpriseObject newObjectInRelationship()
public void setNewObjectInRelationship(Object arg)
public WOComponent saveAction()
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
D2WPage
replacementAssociationForAssociation
in interface DTWGeneration
replacementAssociationForAssociation
in class D2WPage
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |