|
Docmosis API 2.1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.docmosis.template.population.render.AlternatingTableRowRenderer
This class renders alternating rows of a table in the two colours specified at construction. Other classes can sub-class this class to add specific rendering controls in addition to alternating row colours. The render method ALWAYS returns a SimpleRenderedField so that subclasses may override it's behaviour
NOTE: It is typically much easier to alternate table row background colours directly in the template. See the template developer guide for more details.
| Field Summary | |
protected String |
colour1
|
protected String |
colour2
|
| Constructor Summary | |
AlternatingTableRowRenderer()
Construct a new alternating row renderer that alternates white then light grey. |
|
AlternatingTableRowRenderer(String colour1,
String colour2)
Construct a new renderer that alternates between the specified colours. |
|
| Method Summary | |
RenderedField |
render(FieldDetails details,
RenderedField renderedField)
Make rendering adjustments for a field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String colour1
protected String colour2
| Constructor Detail |
public AlternatingTableRowRenderer()
public AlternatingTableRowRenderer(String colour1,
String colour2)
colour1 - odd row colourcolour2 - even row colour| Method Detail |
public RenderedField render(FieldDetails details,
RenderedField renderedField)
FieldRenderer
render in interface FieldRendererdetails - all the details about the field to be rendered.
|
Docmosis API 2.1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||