public abstract class ERDCustomComponent extends ERXNonSynchronizingComponent implements ERXExceptionHolder
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.
ERXNonSynchronizingComponent の値バインディング取得機能等の必要な処理をたくさん含みます。
サブクラスは D2W コンテキスト無しでスタンドアロンで実行可能です。最初はコンポーネント・バインディングを優先で取得を試し、
だめなら、 d2wContext と後は "extraBindings" バインディングより。| D2W Keys | |
localContext | - d2wContext (deprecated) |
d2wContext | - d2wContext |
key | - プロパティ・キー |
extraBindings | - オプション・バインディング |
propertyKey | - プロパティ・キー
|
| Modifier and Type | Class and Description |
|---|---|
static interface |
ERDCustomComponent.Keys |
WOComponent._EventLoggingEnabler, WOComponent.EventNSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.UtilityNSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessorNSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException| Modifier and Type | Field and Description |
|---|---|
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 |
_dynamicBindings_Extension, _IsEventLoggingEnabled, _keyAssociations_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue_CLASS| Constructor and Description |
|---|
ERDCustomComponent(WOContext context)
Designated constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendToResponse(WOResponse r,
WOContext c)
Calls
ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.appendToResponse. |
boolean |
booleanForBinding(java.lang.String binding)
Deprecated.
|
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.
|
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.
親コンポーネントが D2W ラパー・コンポーネントの場合のバインディング取得ユーティリティ
|
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.
|
invokeAction, takeValuesFromRequest_awakeInContext, _checkAccess, _frameworkName, _includeCSSResources, _includeJavascriptResources, additionalCSSFiles, additionalJavascriptFiles, arrayValueForBinding, arrayValueForBinding, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, browser, checkAccess, clickToOpenEnabled, componentName, defaultCSSPath, defaultJavascriptPath, dynamicBindings, floatValueForBinding, intValueForBinding, isPageAccessAllowed, localizer, objectValueForBinding, objectValueForBinding, pageWithName, postAppendToResponse, preAppendToResponse, primaryCSSFile, primaryJavascriptFile, shouldCheckAccess, stringValueForBinding, stringValueForBinding, useDefaultComponentCSS, useDefaultComponentJavascript__valueForBinding, _associationWithName, _childTemplate, _cleanUpStatelessComponent, _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, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNamepublic 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
public ERDCustomComponent(WOContext context)
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 WOComponentpublic void clearValidationFailed()
ERXExceptionHolder interface. Clears exceptions in the parent if possible.
ERXExceptionHolder インタフェース実装。可能であれば、親のエラーをクリアします。clearValidationFailed in interface ERXExceptionHolder@Deprecated public boolean booleanForBinding(java.lang.String binding)
ERXComponent.booleanValueForBinding(String)public java.lang.Integer integerBooleanForBinding(java.lang.String binding)
public boolean hasBinding(java.lang.String binding)
hasBinding in class WOComponentprotected 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.
D2WContext から値を取得するユーティリティprotected java.lang.Object extraBindingsValueForBinding(java.lang.String binding)
public java.lang.Object valueForBinding(java.lang.String binding)
valueForBinding in class WOComponentpublic void resetCachedBindingsInStatefulComponent()
resetCachedBindingsInStatefulComponent in class ERXNonSynchronizingComponentpublic void reset()
reset in class ERXComponentpublic 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 ERXNonSynchronizingComponentfalsepublic boolean d2wDebuggingEnabled()
public boolean d2wComponentNameDebuggingEnabled()
public boolean d2wPropertyKeyDebuggingEnabled()
public D2WPage d2wPage()
ERD2WPage to pass information between subcomponents.public void appendToResponse(WOResponse r, WOContext c)
ERXNonSynchronizingComponentERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.appendToResponse.appendToResponse in class ERXNonSynchronizingComponentr - to which we are appendingc - context of the responseCopyright © 2002 – 2022 Project Wonder.