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 Row
s
A Row
is one of
empty
list of Component
s
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 Row
s. The height of a Row
is the
maximum size of components in the list of
Component
s.