Project Wonder 2.0

er.extensions
Class ERXStatelessComponent

java.lang.Object
  extended bycom.webobjects.appserver.WOElement
      extended bycom.webobjects.appserver.WOComponent
          extended byer.extensions.ERXNonSynchronizingComponent
              extended byer.extensions.ERXStatelessComponent
All Implemented Interfaces:
Cloneable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, WOActionResults
Direct Known Subclasses:
EGComponent, ERDDefaultSectionComponent, ERDEmptyPageWrapper, ERXArrayChooser, ERXDebugTimer, ERXDHTMLComponent, ERXDirectActionHyperlink, ERXEmptyComponent, ERXErrorDictionaryPanel, ERXFixedLengthString, ERXGroupingRepetition, ERXImage, ERXJSPopUpRelationPicker, ERXJSValidationErrors, ERXLinkRandomizer, ERXLocalizedString, ERXMonthView, ERXNavigationMenu, ERXNavigationMenuItem, ERXOncePerRequestConditional, ERXOptionalForm, ERXRadioButtonMatrix, ERXStringHolder, ERXStringWithLineBreaks, ERXTableWithBorder

public abstract class ERXStatelessComponent
extends ERXNonSynchronizingComponent

Abstract stateless component used as the super class for a number of components within the ER frameworks. Adds a number of nice binding resolution methods.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.webobjects.appserver.WOComponent
WOComponent._EventLoggingEnabler, WOComponent.Event
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
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
 
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
ERXStatelessComponent(WOContext context)
          Public constructor
 
Method Summary
 boolean isStateless()
          component is stateless
 void reset()
           
 boolean valueForBooleanBinding(String binding)
          Resolves a given binding as a boolean value.
 boolean valueForBooleanBinding(String binding, boolean defaultValue)
          Deprecated. use booleanValueForBinding() instead
 boolean valueForBooleanBinding(String binding, ERXUtilities.BooleanOperation defaultValue)
          Deprecated. use booleanValueForBinding() instead
 int valueForIntBinding(String binding, int defaultValue)
          Deprecated. use intValueForBinding() instead
 Object valueForObjectBinding(String binding)
          Deprecated. use objectValueForBinding() instead
 Object valueForObjectBinding(String binding, Object defaultValue)
          Deprecated. use objectValueForBinding() instead
 
Methods inherited from class er.extensions.ERXNonSynchronizingComponent
booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, dynamicBindings, intValueForBinding, localizer, objectValueForBinding, objectValueForBinding, stringValueForBinding, stringValueForBinding, synchronizesVariablesWithBindings
 
Methods inherited from class com.webobjects.appserver.WOComponent
_associationWithName, _awakeInContext, _childTemplate, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, appendToResponse, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERXStatelessComponent

public ERXStatelessComponent(WOContext context)
Public constructor

Method Detail

isStateless

public boolean isStateless()
component is stateless

Overrides:
isStateless in class ERXNonSynchronizingComponent

valueForIntBinding

public int valueForIntBinding(String binding,
                              int defaultValue)
Deprecated. use intValueForBinding() instead

Resolves a given binding as a int value. Useful for image sizes and the like.

Parameters:
binding - binding to be resolved as a int value.
defaultValue - default int value to be used if the binding is not bound.
Returns:
result of evaluating binding as a int.

valueForBooleanBinding

public boolean valueForBooleanBinding(String binding)
Resolves a given binding as a boolean value. Defaults to false.

Parameters:
binding - binding to be resolved as a boolean value.
Returns:
result of evaluating binding as a boolean.

valueForBooleanBinding

public boolean valueForBooleanBinding(String binding,
                                      boolean defaultValue)
Deprecated. use booleanValueForBinding() instead

Resolves a given binding as a boolean value.

Parameters:
binding - binding to be resolved as a boolean value.
defaultValue - default boolean value to be used if the binding is not bound.
Returns:
result of evaluating binding as a boolean.

valueForBooleanBinding

public boolean valueForBooleanBinding(String binding,
                                      ERXUtilities.BooleanOperation defaultValue)
Deprecated. use booleanValueForBinding() instead

Resolves a given binding as a boolean value with the option of specifing a boolean operator as the default value.

Parameters:
binding - name of the component binding.
defaultValue - boolean operator to be evaluated if the binding is not present.
Returns:
result of evaluating binding as a boolean.

valueForObjectBinding

public Object valueForObjectBinding(String binding)
Deprecated. use objectValueForBinding() instead

Resolves a given binding as an object in the normal fashion of calling valueForBinding. This has the one advantage of being able to resolve the resulting object as a {link ERXUtilities$Operation} if it is an Operation and then returning the result as the evaluation of that operation.

Parameters:
binding - name of the component binding.
Returns:
the object for the given binding and in the case that it is an instance of an Operation the value of that operation.

valueForObjectBinding

public Object valueForObjectBinding(String binding,
                                    Object defaultValue)
Deprecated. use objectValueForBinding() instead

Resolves a given binding as an object in the normal fashion of calling valueForBinding. This has the one advantage of being able to resolve the resulting object as a {link ERXUtilities$Operation} if it is an Operation and then returning the result as the evaluation of that operation.

Parameters:
binding - name of the component binding.
defaultValue - value to be used if valueForBinding returns null.
Returns:
the object for the given binding and in the case that it is an instance of an Operation the value of that operation.

reset

public void reset()

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.