|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.directtoweb.Assignment er.directtoweb.ERDAssignment er.directtoweb.ERDDefaultsEmbeddedAssignment
This assignment calculates default values for embedded page configurations.
Nested Class Summary |
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueArchiving |
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support |
Field Summary | |
static NSArray |
_DEPENDENT_KEYS
holds the array of dependent keys |
Fields inherited from class er.directtoweb.ERDAssignment |
D2WContextClassArray |
Fields inherited from class com.webobjects.directtoweb.Assignment |
KeyPathKey, ValueKey |
Fields inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving |
_CLASS |
Constructor Summary | |
ERDDefaultsEmbeddedAssignment(EOKeyValueUnarchiver u)
Public constructor |
|
ERDDefaultsEmbeddedAssignment(String key,
Object value)
Public constructor |
Method Summary | |
static Object |
decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver)
Static constructor required by the EOKeyValueUnarchiver interface. |
NSArray |
defaultEmbeddedDisplayPropertyKeys(D2WContext c)
Calculates the default embedded display property keys for a given context. |
String |
defaultEmbeddedEditPageConfiguration(D2WContext c)
Calculates and returns the default embedded edit page configuration to be used for embedded edit pages. |
String |
defaultEmbeddedEntityDisplayName(D2WContext c)
Calculates and returns the default embedded entity display name. |
Object |
defaultEmbeddedEntityName(D2WContext c)
Calculates the default embedded entity name using the current object and propertyKey. |
String |
defaultEmbeddedInspectPageConfiguration(D2WContext c)
Calculates and returns the default embedded inspect page configuration to be used for embedded inspect pages. |
String |
defaultEmbeddedListPageConfiguration(D2WContext c)
Calculates and returns the default embedded list page configuration to be used for embedded list pages. |
NSArray |
dependentKeys(String keyPath)
Implementation of the ERDComputingAssignmentInterface . |
String |
keyForMethodLookup(D2WContext c)
By default the key path being requested is used as the key to lookup the method to call on the ERDAssignment subclass. |
ERXLocalizer |
localizerForContext(D2WContext c)
Gets the localizer for the current context. |
Methods inherited from class er.directtoweb.ERDAssignment |
booleanContextValueForKey, fire, localizedTemplateStringForKeyInContext, localizedValueForKeyInContext, localizedValueForKeyWithDefaultInContext, logDeprecatedMessage |
Methods inherited from class com.webobjects.directtoweb.Assignment |
encodeWithKeyValueArchiver, keyPath, toString, value, value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final NSArray _DEPENDENT_KEYS
Constructor Detail |
public ERDDefaultsEmbeddedAssignment(EOKeyValueUnarchiver u)
u
- key-value unarchiver used when unarchiving
from rule files.public ERDDefaultsEmbeddedAssignment(String key, Object value)
key
- context keyvalue
- of the assignmentMethod Detail |
public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver)
eokeyvalueunarchiver
- to be unarchived
public NSArray dependentKeys(String keyPath)
ERDComputingAssignmentInterface
. This
assignment depends upon the context keys: "propertyKey", "object.entityName",
and "embeddedEntityName". This array of keys is used when constructing the
significant keys for the passed in keyPath.
keyPath
- to compute significant keys for.
public ERXLocalizer localizerForContext(D2WContext c)
localizerForSession
off of ERXLocalizer
.
localizerForContext
in class ERDAssignment
c
- a D2W context
public String defaultEmbeddedEntityDisplayName(D2WContext c)
c
- current context
public NSArray defaultEmbeddedDisplayPropertyKeys(D2WContext c)
c
- current D2W context
public Object defaultEmbeddedEntityName(D2WContext c)
c
- current context
public String defaultEmbeddedListPageConfiguration(D2WContext c)
c
- current context
public String defaultEmbeddedInspectPageConfiguration(D2WContext c)
c
- current context
public String defaultEmbeddedEditPageConfiguration(D2WContext c)
c
- current context
public String keyForMethodLookup(D2WContext c)
value
of the assignment as the key to
lookup the method. For example if value of this
assignment is "foo", then when this assignment is
fired the method foo(D2WContext)
will
be called.
keyForMethodLookup
in class ERDAssignment
c
- current context
value
of the assignment is returned.
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |