Most in-company systems contain a lot of data that can be displayed to users in an efficient way by using a data table. Tomahawk has a lot of components that cater to the display and editing of data in tables. This section focuses on these components. As an example, we will further expand the MIAS application to include a page that shows all of the kids that are in the database, along with their name, age, the date they were last scared by a monster, and a "braveness factor"—a value between 0 to 10 indicating how easy it is to scare the kid. A kid with braveness 10 is very brave and thus hard to scare.
The data to display is provided by a Java Bean called KidsList
. This bean has a getKids()
method that returns a java.util.List
of the Kid
objects. The Kid
class defines a set of get
and set
methods that return things such as the first and the last name of the kid, his or her age, braveness factor, and so on. Refer to the source code to review the implementation of...