A GUI Component is one of
the following:
Checkbox
Textfield
OptionsView
ColorView
Table
Each component contains a label and some additional data.
The data for
a Table is one of
empty
list of Rows
A Row is one of
empty
list of Components
Data for each of the remaining components is the default value to
be displayed, specified as a String, and the preferred
width and height.
Draw the UML diagram for this collection of classes.
Develop the templates for methods needed to count the number of
primitive GUI elements in a given GUI Component.
Develop the templates for the
methods needed to determines the height of a given GUI
Component. The height of the table is the sum of the
heights of the Rows. The height of a Row is the
maximum size of components in the list of
Components.