|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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
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 FormInner classes inherited from class com.webobjects.appserver.WOComponent |
WOComponent.Event |
Inner classes inherited from class com.webobjects.foundation.NSKeyValueCoding |
NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor |
Inner classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions |
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Inner classes inherited from class com.webobjects.foundation.NSValidation |
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Fields inherited from class com.webobjects.directtoweb.D2WComponent |
currentObjectKey |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
NullValue |
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,
com.webobjects.directtoweb.generation.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()
toManyDescription()
,
D2WComponent.propertyKey()
public String methodNameToManyDescription()
toManyDescription
.
The current implementation concatenates "titleFor" and the property key.
The implementation is subject to change in future releases.
toManyDescription()
,
replacementAssociationForAssociation(WOAssociation, String, DTWTemplate, WOContext)
,
D2WComponent.propertyKey()
public String plurifiedStrings()
toManyDescription
.
The implementation is subject to change in future releases.
toManyDescription
toManyDescription()
,
methodNameToManyDescription()
,
replacementAssociationForAssociation(WOAssociation, String, DTWTemplate, WOContext)
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, com.webobjects.directtoweb.generation.DTWTemplate aTemplate, WOContext aContext)
toManyDescription
.
The implementation is subject to change in future releases.
replacementAssociationForAssociation
in class EditRelationship
oldAssociation
- instance of WOAssociationoldBinding
- instance of StringaTemplate
- instance of DTWTemplateaContext
- instance of WOContexttoManyDescription()
,
methodNameToManyDescription()
,
EditRelationship.replacementAssociationForAssociation(WOAssociation, String, DTWTemplate, WOContext)
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.
list()
,
Services.plurify(String, int)
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |