|
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.EditRelationship com.webobjects.directtoweb.D2WEditToManyRelationship
public class D2WEditToManyRelationship
D2WEditToManyRelationship is a property-level component that allows the user to choose which objects are in a to-many relationship. Since the component fetches all of the objects in the relationship, it is slower than the D2WEditToManyFault component.
You can specify whether the list is collapsible or not and whether the user interface is a browser or a table of checkboxes. You can also specify the size of the browser or number of columns of checkboxes to display.
Property-level components are not accessed programmatically. Instead, you use the Web Assistant or Rule Editor to choose the property-level component that Direct to Web uses to display a property on a particular entity and task page.
If you want to create a property-level component to edit a property, use D2WCustomComponent.
D2WEditToManyFault
,
D2WCustomComponent
,
D2WEditToOneRelationship
,
Serialized FormNested 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 |
---|
Fields inherited from class com.webobjects.directtoweb.D2WComponent |
---|
currentObjectKey |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
KeyPathSeparator |
Constructor Summary | |
---|---|
D2WEditToManyRelationship(WOContext aContext)
Creates an instance of D2WEditToManyRelationship with the specified context. |
Method Summary | |
---|---|
NSArray |
list()
Gets the destination objects of the to-many relationship specified by the property key. |
String |
methodNameToManyDescription()
Provides the name of the template method that corresponds to the method toManyDescription . |
String |
plurifiedStrings()
Contributes to the template method that corresponds to the method toManyDescription . |
WOAssociation |
replacementAssociationForAssociation(WOAssociation oldAssociation,
String oldBinding,
DTWTemplate aTemplate,
WOContext aContext)
Replaces the binding toManyDescription . |
String |
toManyDescription()
Provides the closed label for a collapsible component. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public D2WEditToManyRelationship(WOContext aContext)
aContext
- instance of WOContextEditRelationship.EditRelationship(WOContext)
Method Detail |
---|
public NSArray list()
D2WEditToManyRelationship.toManyDescription()
,
D2WComponent.propertyKey()
public String toManyDescription()
The current implementation returns the concatenation of the number of destination objects and the name of the destination entity, if there are any objects; the string "N/A", otherwise.
The implementation is subject to change in future releases.
D2WEditToManyRelationship.list()
,
Services.plurify(String, int)
public String methodNameToManyDescription()
toManyDescription
.
The current implementation concatenates "titleFor" and the property key.
The implementation is subject to change in future releases.
D2WEditToManyRelationship.toManyDescription()
,
D2WEditToManyRelationship.replacementAssociationForAssociation(WOAssociation, String, DTWTemplate, WOContext)
,
D2WComponent.propertyKey()
public String plurifiedStrings()
toManyDescription
.
The implementation is subject to change in future releases.
toManyDescription
D2WEditToManyRelationship.toManyDescription()
,
D2WEditToManyRelationship.methodNameToManyDescription()
,
D2WEditToManyRelationship.replacementAssociationForAssociation(WOAssociation, String, DTWTemplate, WOContext)
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
toManyDescription
.
The implementation is subject to change in future releases.
replacementAssociationForAssociation
in interface DTWGeneration
replacementAssociationForAssociation
in class EditRelationship
oldAssociation
- instance of WOAssociationoldBinding
- instance of StringaTemplate
- instance of DTWTemplateaContext
- instance of WOContext
D2WEditToManyRelationship.toManyDescription()
,
D2WEditToManyRelationship.methodNameToManyDescription()
,
EditRelationship.replacementAssociationForAssociation(WOAssociation, String, DTWTemplate, WOContext)
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |