Getting and setting properties, Deploying applications with the component – MiG InfoCom MiG Calendar Getting Started Guide User Manual
Page 30
![background image](https://www.manualsdir.com/files/798671/content/doc030.png)
MiG InfoCom AB
OccupiedDecorator
– Merges the date ranges for the
ActivityView
s and draws/fills the background, or some of
it, for when there is at least on if them.
There are currently about 20 decorators, though some are
abstract. It is also very easy to write you own since getting
the positions for dates/cells is trivial courtesy of the
DateGrid
object.
Getting and Setting Properties
Generally the MiG Calendar component follows the standard
get/set pattern. Since
DateArea
, or probably more often the
DefaultDateArea
, is normally contained by a
DefaultDateContainer
its properties will not be shown in
a RAD (Rapid Application Development) IDE. You will have to
manually get the DateArea with a call like this:
DateArea dateArea = container.getDateArea();
The
dateArea
object is the one that contains most
properties to change. See the
MiG Calendar Technical
Specification
for a list of the properties. Since the
DateAreaContainer
is almost always used as the container
to host a
DateArea
and
Header
s it is like it is the object you
will need a reference to to get a hold of other important
objects.
The
DateArea
also contains another important object, the
DateGrid
. It contains the information on how to convert
between cells, dates/times and pixel positions. It contains a
lot of convenience methods for this.
Deploying applications with the component
The only file you need is
migcalendar.jar
. You might
have to include whatever themes you have made and
possible
AShape
XML files as well, but that is completely
depending on you particular setup.
It is important that you read the license agreement that is
included with this component as it contains information of
what you as a customers can and can not do.
MiG Calendar Getting Started Guide
Page 30 / 31