MiG InfoCom MiG Calendar JavaBeans Guide User Manual

Page 15

Advertising
background image

MiG InfoCom AB

sense without being connected to an instance of this class. It
represents the date area and holds references to some other
beans.

DateHeaderBean

There can be up to four headers around a date area, one on
each side. They will get the time to present from the cells
closest to them in the date area and they do not define the
time themselves as sometimes seen in other frameworks. In
other words it’s the DateAreaBean that defines the visible
time and the headers follow that. Every header consists of
one or more CellDecorationRows. Every one of those rows
normally have cells that spans a date range, such as a year,
month, week, day, hour or minute. This is for instance how a
north header showing month, week number and day in three
rows is created; by giving that header three rows with those
date ranges.

CategoryHeaderBean

There are two kinds but they only differ by their default
settings: NorthCategoryHeaderBean and
WestCategoryHeaderBean. A category header is like a sub
header that shows labels and optionally images for the sub
rows in a row. Sub rows can be hierarchical (tree structure,
rows in rows) and the labels can as well. They can be made
click-able to fold/expand rows and also change their
properties (such as font, color and image) on mouse over or
mouse press. This means that this class is used in Gantt
charts and when activities must be divided into categories.

DatePickerBean

This is a normal date picker to visually pick a date or date
range. It can however host any DateAreaBean and can thus
be used to show/edit activities just as a normal
DateAreaBean. It tries to mimic the current Look&Feel but
contains overrides for all properties (such as borders) to
accommodate for unknown L&Fs.

The date picker can also be configured to hide the drop down
button and become a normal date enter text field with great
flexibility including date range notions.

DemoDataBean

To help with development this class can inject demo data into

MiG Calendar JavaBeans Guide

Page 15 / 45

Advertising