ERXStatelessComponent Class Reference

Inherits er::extensions::components::ERXNonSynchronizingComponent.

Inherited by StringHolder, AjaxLongResponse, ERAttachmentIcon, AbstractERAttachmentViewer, ERCListHelpText, ERDDefaultSectionComponent, ERDEmptyPageWrapper, ERDZoomableImage, ERXModernNavigationMenu, ERXModernNavigationMenuItem, ERXNavigationMenu, ERXNavigationMenuItem, ERXBatchNavigationBar, ERXDirectActionBatchNavigationBar, ERXOncePerRequestConditional, ERXArrayChooser, ERXBooleanSelector, ERXCachingWrapper, ERXClippy, ERXDHTMLComponent, ERXDirectActionHyperlink, ERXEmptyComponent, ERXErrorDictionaryPanel, ERXExternalContent, ERXFixedLengthString, ERXFlashMovie, ERXGroupingRepetition, ERXIEConditionalComment, ERXImage, ERXLanguageMenu, ERXLinkRandomizer, ERXMonthView, ERXNestedList, ERXOptionalForm, ERXPluralString, ERXRadioButtonMatrix, ERXResponseComponent, ERXRssPage, ERXStringHolder, ERXStringWithLineBreaks, ERXStyleSheet, ERXTableWithBorder, ERXEditDateJavascript, ERXJSCookiesConditional, ERXJSFlyOver, ERXJSLifebeat, ERXJSPopupBlockerConditional, ERXJSPopUpRelationPicker, ERXJSValidationErrors, ERXLocalizedString, ERXPageTracker, ERXStatsSummary, WOSortOrder, ERMDatePicker, ERMResourceInjector, ERMDWizardBanner, Main, ERPDF2PS, ERPChart, ERPOFCChart, WRNavigationControl, SeleniumComponentExporterPage, and SeleniumTestSuitePage.

Collaboration diagram for ERXStatelessComponent:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ERXStatelessComponent (WOContext context)
boolean isStateless ()
void reset ()
boolean valueForBooleanBinding (String binding, ERXUtilities.BooleanOperation defaultValue)
boolean valueForBooleanBinding (String binding, boolean defaultValue)
boolean valueForBooleanBinding (String binding)
int valueForIntBinding (String binding, int defaultValue)
Object valueForObjectBinding (String binding, Object defaultValue)
Object valueForObjectBinding (String binding)


Detailed Description

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.

Constructor & Destructor Documentation

ERXStatelessComponent ( WOContext  context  ) 

Public constructor


Member Function Documentation

boolean isStateless (  ) 

component is stateless

Reimplemented from ERXNonSynchronizingComponent.

Reimplemented in ERXAjaxBatchNavigationBar, and ERLITBatchNavigationBar.

void reset (  ) 

boolean valueForBooleanBinding ( String  binding,
ERXUtilities.BooleanOperation  defaultValue 
)

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.
Deprecated:
use booleanValueForBinding() instead

boolean valueForBooleanBinding ( String  binding,
boolean  defaultValue 
)

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.
Deprecated:
use booleanValueForBinding() instead

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.
Deprecated:
use booleanValueForBinding() instead

int valueForIntBinding ( String  binding,
int  defaultValue 
)

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.
Deprecated:
use intValueForBinding() instead

Object valueForObjectBinding ( String  binding,
Object  defaultValue 
)

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.
Deprecated:
use objectValueForBinding() instead

Object valueForObjectBinding ( String  binding  ) 

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.
Deprecated:
use objectValueForBinding() instead


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:06 2012 for Project Wonder by  doxygen 1.5.8