Package org.apache.tapestry5
Class BaseValidationDecorator
java.lang.Object
org.apache.tapestry5.BaseValidationDecorator
- All Implemented Interfaces:
ValidationDecorator
Base implementation of
ValidationDecorator that does nothing. Subclasses may override specific methods,
knowing that all other methods do nothing at all.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterField(Field field) Invoked after the field has completed rendering itself.voidafterLabel(Field field) Invoked byLabelafter rendering itself.voidbeforeField(Field field) Renders immediately before the field itself.voidbeforeLabel(Field field) Invoked by aLabelbefore rendering itself.voidinsideField(Field field) Invoked at a point where the decorator may write additional attributes into the field.voidinsideLabel(Field field, Element labelElement) Invoked after the label has rendered its tag, but before it has rendered content inside the tag, to allow the decorator to write additional attributes.
-
Constructor Details
-
BaseValidationDecorator
public BaseValidationDecorator()
-
-
Method Details
-
beforeLabel
Description copied from interface:ValidationDecoratorInvoked by aLabelbefore rendering itself.- Specified by:
beforeLabelin interfaceValidationDecorator- Parameters:
field- for this label
-
afterLabel
Description copied from interface:ValidationDecoratorInvoked byLabelafter rendering itself.- Specified by:
afterLabelin interfaceValidationDecorator
-
afterField
Description copied from interface:ValidationDecoratorInvoked after the field has completed rendering itself.- Specified by:
afterFieldin interfaceValidationDecorator
-
beforeField
Description copied from interface:ValidationDecoratorRenders immediately before the field itself. The field will typically render a single element, though a complex field may render multiple elements or even some JavaScript.- Specified by:
beforeFieldin interfaceValidationDecorator
-
insideField
Description copied from interface:ValidationDecoratorInvoked at a point where the decorator may write additional attributes into the field. Generally speaking, you will want to render informal parameters before invoking this method.- Specified by:
insideFieldin interfaceValidationDecorator
-
insideLabel
Description copied from interface:ValidationDecoratorInvoked after the label has rendered its tag, but before it has rendered content inside the tag, to allow the decorator to write additional attributes.- Specified by:
insideLabelin interfaceValidationDecorator- Parameters:
field- the field corresponding to the labellabelElement- the element for this label
-