|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.extensions.components.ERXComponent
er.extensions.components.ERXNonSynchronizingComponent
er.directtoweb.components.ERDCustomComponent
public abstract class ERDCustomComponent
Base class of many custom components.
Has a lot of nifty features including resolving bindings against the rule system and inherits all the value pulling methods from ERXNonSynchronizingComponent
.
Subclasses should be able to run stand alone without a D2W context. This is achieved by pulling values first from the bindings, then from the d2wContext and finally from an "extraBindings" binding.
Nested Class Summary | |
---|---|
static interface |
ERDCustomComponent.Keys
|
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
---|
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
---|
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
---|
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException |
Field Summary | |
---|---|
protected java.lang.Object |
extraBindings
Holds the extra bindings. |
protected static java.lang.Integer |
FALSE
|
static org.apache.log4j.Logger |
log
logging support |
protected static java.lang.Integer |
TRUE
|
Fields inherited from class er.extensions.components.ERXComponent |
---|
_dynamicBindings |
Fields inherited from class com.webobjects.appserver.WOComponent |
---|
_Extension, _IsEventLoggingEnabled, _keyAssociations |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
---|
_CLASS |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
---|
NullValue |
Fields inherited from interface com.webobjects.foundation.NSValidation |
---|
_CLASS |
Constructor Summary | |
---|---|
ERDCustomComponent(com.webobjects.appserver.WOContext context)
Designated constructor |
Method Summary | |
---|---|
void |
appendToResponse(com.webobjects.appserver.WOResponse r,
com.webobjects.appserver.WOContext c)
Calls ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.appendToResponse. |
boolean |
booleanForBinding(java.lang.String binding)
Deprecated. use booleanValueForBinding() instead |
void |
clearValidationFailed()
Implementation of the ERXExceptionHolder interface. |
boolean |
d2wComponentNameDebuggingEnabled()
Should the component name be shown. |
com.webobjects.directtoweb.D2WContext |
d2wContext()
The active D2WContext . |
protected com.webobjects.directtoweb.D2WContext |
d2wContextFromBindings()
Returns the active d2wContext. |
protected java.lang.Object |
d2wContextValueForBinding(java.lang.String binding)
Utility to pull the value from the D2WContext . |
boolean |
d2wDebuggingEnabled()
Is D2W debugging enabled. |
com.webobjects.directtoweb.D2WPage |
d2wPage()
Finds the containing D2WPage, if possible. |
boolean |
d2wPropertyKeyDebuggingEnabled()
Should the property keys be shown. |
java.lang.Object |
extraBindings()
Extra bindings supplied to the component. |
protected java.lang.Object |
extraBindingsValueForBinding(java.lang.String binding)
Utility to pull the value from the extra bindings if supplied. |
boolean |
hasBinding(java.lang.String binding)
Checks if the binding can be pulled. |
java.lang.Integer |
integerBooleanForBinding(java.lang.String binding)
|
java.lang.String |
key()
The active property key. |
com.webobjects.directtoweb.D2WContext |
localContext()
The active D2WContext . |
protected void |
logDebugInfo()
Utility to dump some debug info about this component and its parent |
protected java.lang.Object |
originalValueForBinding(java.lang.String binding)
Utility to pull the value from the components actual bindings. |
protected java.lang.Object |
parentValueForBinding(java.lang.String binding)
Utility to pull the value from the components parent, if the parent is a D2W wrapper component. |
void |
reset()
Used by stateless subclasses. |
void |
resetCachedBindingsInStatefulComponent()
Used by stateful but non-synching subclasses |
void |
setD2wContext(com.webobjects.directtoweb.D2WContext value)
Sets the D2WContext . |
void |
setExtraBindings(java.lang.Object value)
Sets the extra bindings. |
void |
setKey(java.lang.String newKey)
Sets the property key. |
void |
setLocalContext(com.webobjects.directtoweb.D2WContext value)
Sets the D2WContext . |
boolean |
synchronizesVariablesWithBindings()
Overridden from superclass to turn on component synching, which is the default. |
java.lang.String |
task()
Gets the current D2W task. |
boolean |
taskIsEdit()
|
boolean |
taskIsInspect()
|
boolean |
taskIsList()
|
void |
validationFailedWithException(java.lang.Throwable e,
java.lang.Object value,
java.lang.String keyPath)
Validation Support. |
java.lang.Object |
valueForBinding(java.lang.String binding)
Fetches an object from the bindings. |
Methods inherited from class er.extensions.components.ERXNonSynchronizingComponent |
---|
invokeAction, isStateless, takeValuesFromRequest |
Methods inherited from class com.webobjects.appserver.WOComponent |
---|
_associationWithName, _childTemplate, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasSession, isCachingEnabled, isEventLoggingEnabled, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForKey, valueForKeyPath |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final org.apache.log4j.Logger log
protected java.lang.Object extraBindings
protected static final java.lang.Integer TRUE
protected static final java.lang.Integer FALSE
Constructor Detail |
---|
public ERDCustomComponent(com.webobjects.appserver.WOContext context)
Method Detail |
---|
public void setLocalContext(com.webobjects.directtoweb.D2WContext value)
D2WContext
. Applies when used inside a D2WCustomComponent.
public void setD2wContext(com.webobjects.directtoweb.D2WContext value)
D2WContext
. Applies when used inside a property key repetition.
public com.webobjects.directtoweb.D2WContext localContext()
D2WContext
. Simply calls to d2wContext()
public com.webobjects.directtoweb.D2WContext d2wContext()
D2WContext
.
protected com.webobjects.directtoweb.D2WContext d2wContextFromBindings()
public java.lang.String task()
public boolean taskIsEdit()
public boolean taskIsInspect()
public boolean taskIsList()
public void validationFailedWithException(java.lang.Throwable e, java.lang.Object value, java.lang.String keyPath)
validationFailedWithException
in class com.webobjects.appserver.WOComponent
public void clearValidationFailed()
ERXExceptionHolder
interface. Clears exceptions in the parent if possible.
clearValidationFailed
in interface ERXExceptionHolder
public boolean booleanForBinding(java.lang.String binding)
public java.lang.Integer integerBooleanForBinding(java.lang.String binding)
public boolean hasBinding(java.lang.String binding)
hasBinding
in class com.webobjects.appserver.WOComponent
protected void logDebugInfo()
protected java.lang.Object parentValueForBinding(java.lang.String binding)
protected java.lang.Object originalValueForBinding(java.lang.String binding)
protected java.lang.Object d2wContextValueForBinding(java.lang.String binding)
D2WContext
.
protected java.lang.Object extraBindingsValueForBinding(java.lang.String binding)
public java.lang.Object valueForBinding(java.lang.String binding)
valueForBinding
in class com.webobjects.appserver.WOComponent
public void resetCachedBindingsInStatefulComponent()
resetCachedBindingsInStatefulComponent
in class ERXNonSynchronizingComponent
public void reset()
reset
in class ERXComponent
public void setExtraBindings(java.lang.Object value)
public java.lang.Object extraBindings()
public void setKey(java.lang.String newKey)
public java.lang.String key()
public boolean synchronizesVariablesWithBindings()
synchronizesVariablesWithBindings
in class ERXNonSynchronizingComponent
public boolean d2wDebuggingEnabled()
public boolean d2wComponentNameDebuggingEnabled()
public boolean d2wPropertyKeyDebuggingEnabled()
public com.webobjects.directtoweb.D2WPage d2wPage()
ERD2WPage
to pass information between subcomponents.
public void appendToResponse(com.webobjects.appserver.WOResponse r, com.webobjects.appserver.WOContext c)
ERXNonSynchronizingComponent
ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent()
prior to super.appendToResponse.
appendToResponse
in class ERXNonSynchronizingComponent
r
- to which we are appendingc
- context of the response
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |