|
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.D2WEditToOneRelationship
public class D2WEditToOneRelationship
D2WEditToOneRelationship is a property-level component that allows the user to choose the destination object of a to-one relationship. Since the component fetches all of the objects that can appear in the relationship, this component is slower than the D2WEditToOneFault component.
You can specify whether the user interface is a browser, pop-up list, or table of radio buttons. You can also specify the size of the browser or the number of columns of radio buttons 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.
D2WEditToOneFault
,
D2WCustomComponent
,
D2WEditToManyRelationship
,
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 | |
---|---|
D2WEditToOneRelationship(WOContext aContext)
Creates an instance of D2WEditToOneRelationship with the specified context. |
Method Summary | |
---|---|
String |
generatedToOneDescription()
Contributes to the template method that corresponds to the method toOneDescription . |
String |
methodNameToOneDescription()
Provides the name of the template method that corresponds to the method toOneDescription . |
WOAssociation |
replacementAssociationForAssociation(WOAssociation oldAssociation,
String oldBinding,
DTWTemplate aTemplate,
WOContext aContext)
Replaces the binding toOneDescription . |
Object |
toOneDescription()
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 D2WEditToOneRelationship(WOContext aContext)
aContext
- instance of WOContextEditRelationship.EditRelationship(WOContext)
Method Detail |
---|
public Object toOneDescription()
keyWhenRelationship
equals the string userPresentableDescription
.
The implementation is subject to change in future releases.
D2WComponent.keyWhenRelationship()
,
EOEnterpriseObject.userPresentableDescription()
public String generatedToOneDescription()
toOneDescription
.
The implementation is subject to change in future releases.
toOneDescription
D2WEditToOneRelationship.toOneDescription()
,
D2WEditToOneRelationship.methodNameToOneDescription()
,
D2WEditToOneRelationship.replacementAssociationForAssociation(WOAssociation, String, DTWTemplate, WOContext)
public String methodNameToOneDescription()
toOneDescription
.
The current implementation concatenates "titleFor" and the property key.
The implementation is subject to change in future releases.
D2WEditToOneRelationship.toOneDescription()
,
D2WEditToOneRelationship.generatedToOneDescription()
,
D2WEditToOneRelationship.replacementAssociationForAssociation(WOAssociation, String, DTWTemplate, WOContext)
,
D2WComponent.propertyKey()
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
toOneDescription
.
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
D2WEditToOneRelationship.toOneDescription()
,
D2WEditToOneRelationship.methodNameToOneDescription()
,
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 |