public final class DefaultValidationDecorator extends BaseValidationDecorator
Constructor and Description |
---|
DefaultValidationDecorator(Environment environment,
Asset spacerAsset,
MarkupWriter markupWriter) |
Modifier and Type | Method and Description |
---|---|
void |
afterField(Field field)
Writes an icon for field after the field.
|
void |
insideField(Field field)
Invoked at a point where the decorator may write additional attributes into the field.
|
void |
insideLabel(Field field,
Element element)
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.
|
afterLabel, beforeField, beforeLabel
public DefaultValidationDecorator(Environment environment, Asset spacerAsset, MarkupWriter markupWriter)
environment
- used to locate objects and services during the renderspacerAsset
- asset for a one-pixel spacer image used as a placeholder for the error marker iconmarkupWriter
- public void insideField(Field field)
ValidationDecorator
insideField
in interface ValidationDecorator
insideField
in class BaseValidationDecorator
public void insideLabel(Field field, Element element)
ValidationDecorator
insideLabel
in interface ValidationDecorator
insideLabel
in class BaseValidationDecorator
field
- the field corresponding to the labelelement
- the element for this labelpublic void afterField(Field field)
afterField
in interface ValidationDecorator
afterField
in class BaseValidationDecorator
field
- which just completed rendering itselfCopyright © 2003-2012 The Apache Software Foundation.