|
Project Wonder 5.0.0.8658 | |||||||||
| 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 |
|---|
WOComponent._EventLoggingEnabler, 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._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
| Field Summary | |
|---|---|
protected Object |
extraBindings
Holds the extra bindings. |
protected static Integer |
FALSE
|
static Logger |
log
logging support |
protected static Integer |
TRUE
|
| Fields inherited from class er.extensions.components.ERXComponent |
|---|
_dynamicBindings |
| Fields inherited from class com.webobjects.appserver.WOComponent |
|---|
_Extension, _IsEventLoggingEnabled, _keyAssociations, MINUSONE |
| 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)
Calls _checkAccess prior to super.appendToResponse and adds support for ClickToOpen (TM). |
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.components.ERXNonSynchronizingComponent |
|---|
isStateless |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Logger 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)
validationFailedWithException in class WOComponentpublic void clearValidationFailed()
ERXExceptionHolder interface. Clears exceptions in the parent if possible.
clearValidationFailed in interface ERXExceptionHolderpublic boolean booleanForBinding(String binding)
public Integer integerBooleanForBinding(String binding)
public boolean hasBinding(String binding)
hasBinding in class WOComponentprotected 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)
valueForBinding in class WOComponentpublic void reset()
reset in class ERXComponentpublic void setExtraBindings(Object value)
public Object extraBindings()
public void setKey(String newKey)
public String key()
public boolean synchronizesVariablesWithBindings()
synchronizesVariablesWithBindings in class ERXNonSynchronizingComponentpublic boolean d2wDebuggingEnabled()
public boolean d2wComponentNameDebuggingEnabled()
public boolean d2wPropertyKeyDebuggingEnabled()
public void appendToResponse(WOResponse r,
WOContext c)
ERXComponent
appendToResponse in class ERXComponent
|
Last updated: Fri, Nov 21, 2008 04:36 AM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||