MiG InfoCom MiG Calendar JavaBeans Guide User Manual

Page 21

Advertising
background image

MiG InfoCom AB

Sub rows are given the row number the same way as a
JTree get its row number. This means that folder rows will
always be before its child rows.

The easiest way to add sub rows is to set a categoryRoot on
the DateAreaBean. Doing this will automatically create
hierarchical sub rows in the date area that reflects the
structure in the CategoryDepository. To test this create a
DemoDataBean and set that bean as the demoDateArea and
categoryRoot properties.

Adding Date Headers

There can be up to four date headers and a maximum of one
on each of the four sides around a DateAreaBean. Every date
header consist of one or more headerRows, all of which can
be interacted with using the mouse (MouseEffectsEnabled
property must be true). Below you can see a date header
with three rows; month, week and day.

MiG Calendar JavaBeans Guide

Page 21 / 45

Illustration 5: Three sub rows per day

Illustration 6: DateHeaderBean with three header rows.

Advertising