|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidationDecorator
An object responsible for performing decorations around fields and field labels. The decorator is notified at intervals by the fields and labels.
In most western languages (written left to right) the label will render before the field, so the properties of the Field may not be set yet (or may reflect a previous looping's rendering). It may be necessary to Heartbeat.defer(Runnable) defer any rendering} until after the Label and the Field have both had their change to initialize and render.
Method Summary | |
---|---|
void |
afterField(Field field)
Invoked after the field has completed rendering itself. |
void |
afterLabel(Field field)
Invoked by Label after rendering itself. |
void |
beforeField(Field field)
Renders immediately before the field itself. |
void |
beforeLabel(Field field)
Invoked by a Label before rendering itself. |
void |
insideField(Field field)
Invoked at a point where the decorator may write additional attributes into the field. |
void |
insideLabel(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. |
Method Detail |
---|
void beforeLabel(Field field)
Label
before rendering itself.
field
- for this labelvoid insideLabel(Field field, Element labelElement)
field
- the field corresponding to the labellabelElement
- the element for this labelvoid afterLabel(Field field)
Label
after rendering itself.
field
- void beforeField(Field field)
field
- void insideField(Field field)
field
- void afterField(Field field)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |