|
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.appserver.WOElement com.webobjects.appserver.WOComponent er.extensions.ERXNonSynchronizingComponent er.directtoweb.ERDCustomComponent
Base class of many custom components.
Has alot 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 standalone 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 inherited from class com.webobjects.appserver.WOComponent |
WOComponent._EventLoggingEnabler, WOComponent.Event |
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions |
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Nested classes inherited from class com.webobjects.foundation.NSValidation |
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Field Summary | |
protected Object |
extraBindings
Holds the extra bindings. |
protected static Integer |
FALSE
|
static ERXLogger |
log
logging support |
protected static Integer |
TRUE
|
Fields inherited from class er.extensions.ERXNonSynchronizingComponent |
_dynamicBindings |
Fields inherited from class com.webobjects.appserver.WOComponent |
_Extension, _IsEventLoggingEnabled, _keyAssociations |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
_CLASS, NullValue |
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.NSValidation |
_CLASS |
Constructor Summary | |
ERDCustomComponent(WOContext context)
Designated constructor |
Method Summary | |
void |
appendToResponse(WOResponse r,
WOContext c)
|
boolean |
booleanForBinding(String binding)
Deprecated. use booleanValueForBinding() instead |
void |
clearValidationFailed()
Implementation of the ERXExceptionHolder interface. |
boolean |
d2wComponentNameDebuggingEnabled()
Should the component name be shown. |
D2WContext |
d2wContext()
The active D2WContext . |
protected D2WContext |
d2wContextFromBindings()
Returns the active d2wContext. |
protected Object |
d2wContextValueForBinding(String binding)
Utility to pull the value from the D2WContext . |
boolean |
d2wDebuggingEnabled()
Is D2W debugging enabled. |
boolean |
d2wPropertyKeyDebuggingEnabled()
Should the property keys be shown. |
Object |
extraBindings()
Extra bindings supplied to the component. |
protected Object |
extraBindingsValueForBinding(String binding)
Utility to pull the value from the extra bindings if supplied. |
boolean |
hasBinding(String binding)
Checks if the binding can be pulled. |
Integer |
integerBooleanForBinding(String binding)
|
String |
key()
The active property key. |
D2WContext |
localContext()
The active D2WContext . |
protected void |
logDebugInfo()
Utility to dump some debug info about this component and its parent |
protected Object |
originalValueForBinding(String binding)
Utility to pull the value from the components actual bindings. |
protected Object |
parentValueForBinding(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 |
setD2wContext(D2WContext value)
Sets the D2WContext . |
void |
setExtraBindings(Object value)
Sets the extra bindings. |
void |
setKey(String newKey)
Sets the property key. |
void |
setLocalContext(D2WContext value)
Sets the D2WContext . |
boolean |
synchronizesVariablesWithBindings()
Overridden from superclass to turn on component synching, which is the default. |
void |
validationFailedWithException(Throwable e,
Object value,
String keyPath)
Validation Support. |
Object |
valueForBinding(String binding)
Fetches an object from the bindings. |
Methods inherited from class er.extensions.ERXNonSynchronizingComponent |
booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, dynamicBindings, intValueForBinding, isStateless, localizer, objectValueForBinding, objectValueForBinding, stringValueForBinding, stringValueForBinding |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final ERXLogger log
protected Object extraBindings
protected static Integer TRUE
protected static Integer FALSE
Constructor Detail |
public ERDCustomComponent(WOContext context)
Method Detail |
public void setLocalContext(D2WContext value)
D2WContext
. Applies when used inside a D2WCustomComponent.
public void setD2wContext(D2WContext value)
D2WContext
. Applies when used inside a property key repetition.
public D2WContext localContext()
D2WContext
. Simply calls to d2wContext()
public D2WContext d2wContext()
D2WContext
.
protected D2WContext d2wContextFromBindings()
public void validationFailedWithException(Throwable e, Object value, String keyPath)
public void clearValidationFailed()
ERXExceptionHolder
interface. Clears exceptions in the parent if possible.
clearValidationFailed
in interface ERXExceptionHolder
public boolean booleanForBinding(String binding)
public Integer integerBooleanForBinding(String binding)
public boolean hasBinding(String binding)
protected void logDebugInfo()
protected Object parentValueForBinding(String binding)
protected Object originalValueForBinding(String binding)
protected Object d2wContextValueForBinding(String binding)
D2WContext
.
protected Object extraBindingsValueForBinding(String binding)
public Object valueForBinding(String binding)
public void reset()
public void setExtraBindings(Object value)
public Object extraBindings()
public void setKey(String newKey)
public String key()
public boolean synchronizesVariablesWithBindings()
synchronizesVariablesWithBindings
in class ERXNonSynchronizingComponent
public boolean d2wDebuggingEnabled()
public boolean d2wComponentNameDebuggingEnabled()
public boolean d2wPropertyKeyDebuggingEnabled()
public void appendToResponse(WOResponse r, WOContext c)
|
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 |