Customize Header, Property List, and Footer
In this section...
“Objective” on page 18-26
“Design of Custom Display” on page 18-26
“getHeader Method Override” on page 18-28
“getPropertyGroups Override” on page 18-29
“getFooter Override” on page 18-29
Objective
Customize each of the three parts of the display — header, property groups, and footer.
Design of Custom Display
NoteThis example uses the EmployeeInfo class described in the “Class with Default
Object Display” on page 18-14 section.
For the header:
- Use default header for nonscalar object arrays.
- Build header text with linked class name and department name (from Department
property)
For properties:
- Nonscalar object arrays display a subset of property names in a different order than
the default. - Scalar objects create two property groups that have titles (Public Info and
Personal Info).
For the footer:
- Add a footer to the display, only when the object is a valid scalar that displays property
values.
18 Customizing Object Display