org.tynamo.services
Interface PropertySearchFilterContext

All Superinterfaces:
org.apache.tapestry5.ioc.AnnotationProvider

public interface PropertySearchFilterContext
extends org.apache.tapestry5.ioc.AnnotationProvider

Defines a context for editing a property of a bean via BeanEditor. This value is made available to blocks via the Environmental annotation.

See Also:
BeanBlockSource

Method Summary
 org.apache.tapestry5.ioc.Messages getContainerMessages()
          Returns the message catalog for the container of the BeanEditForm, which is the correct place to look for strings used for labels, etc.
 Object getHighValue()
          Returns the current value of the property being edited (the context encapsulates the object containing the property).
 String getLabel()
          Returns the user-presentable label, for use with the Label component, or to be integrated into any validation error messages.
 Object getLowValue()
          Returns the current value of the property being edited (the context encapsulates the object containing the property).
 String getOperatorId()
          Returns a string that identifies the operator, usually derived from the property name.
 SearchFilterOperator getOperatorValue()
          Returns the current value of the property being edited (the context encapsulates the object containing the property).
 String getPropertyId()
          Returns a string that identifies the property, usually the property name.
 Class getPropertyType()
          Returns the type of the property being edited.
 org.apache.tapestry5.FieldTranslator getTranslator(org.apache.tapestry5.Field field)
          Returns the translator appropriate for the field (this is based on the property type).
 org.apache.tapestry5.FieldValidator getValidator(org.apache.tapestry5.Field field)
          Returns the FieldValidator for the field.
 boolean isEnabled()
           
 void setEnabled(boolean value)
           
 void setHighValue(Object value)
          Updates the value of the property being edited (the context encapsulates the object containing the property).
 void setLowValue(Object value)
          Updates the value of the property being edited (the context encapsulates the object containing the property).
 void setOperatorValue(SearchFilterOperator value)
          Updates the value of the property being edited (the context encapsulates the object containing the property).
 
Methods inherited from interface org.apache.tapestry5.ioc.AnnotationProvider
getAnnotation
 

Method Detail

getOperatorId

String getOperatorId()
Returns a string that identifies the operator, usually derived from the property name. This is used as the basis for the client-side client id.


isEnabled

boolean isEnabled()

setEnabled

void setEnabled(boolean value)

getOperatorValue

SearchFilterOperator getOperatorValue()
Returns the current value of the property being edited (the context encapsulates the object containing the property).


setOperatorValue

void setOperatorValue(SearchFilterOperator value)
Updates the value of the property being edited (the context encapsulates the object containing the property).

Parameters:
value - new value for the property

getLowValue

Object getLowValue()
Returns the current value of the property being edited (the context encapsulates the object containing the property).


setLowValue

void setLowValue(Object value)
Updates the value of the property being edited (the context encapsulates the object containing the property).

Parameters:
value - new value for the property

getHighValue

Object getHighValue()
Returns the current value of the property being edited (the context encapsulates the object containing the property).


setHighValue

void setHighValue(Object value)
Updates the value of the property being edited (the context encapsulates the object containing the property).

Parameters:
value - new value for the property

getLabel

String getLabel()
Returns the user-presentable label, for use with the Label component, or to be integrated into any validation error messages.


getTranslator

org.apache.tapestry5.FieldTranslator getTranslator(org.apache.tapestry5.Field field)
Returns the translator appropriate for the field (this is based on the property type).

Parameters:
field -
See Also:
TranslatorSource

getValidator

org.apache.tapestry5.FieldValidator getValidator(org.apache.tapestry5.Field field)
Returns the FieldValidator for the field.

See Also:
Validate, FieldValidatorDefaultSource

getPropertyId

String getPropertyId()
Returns a string that identifies the property, usually the property name. This is used as the basis for the client-side client id.


getPropertyType

Class getPropertyType()
Returns the type of the property being edited.


getContainerMessages

org.apache.tapestry5.ioc.Messages getContainerMessages()
Returns the message catalog for the container of the BeanEditForm, which is the correct place to look for strings used for labels, etc.



Copyright © 2004-2012. All Rights Reserved.