MiG InfoCom MiG Calendar Getting Started Guide User Manual
Page 13

MiG InfoCom AB
OK, now we have a date area that shows a grid of a week
with a header that shows the week days and dates. Next
we'll show how to add some activities (E.g. an Event or
'Todo') to the date area. First we should create an
Activity
and add it to the
ActivityDepository
.
ImmutableDateRange actRange = new ImmutableDateRange(
System.currentTimeMillis(), DateRange.RANGE_TYPE_HOUR, 4, null, null
);
Activity activity = new DefaultActivity(actRange, new Integer(1234));
activity.setSummary("Hello, World!");
ActivityDepository.getInstance().addBrokedActivity(activity, null);
Note that activity support is turned off by default; This
means that you will have to turn it on in order to see the
activities. You do that with:
container.getDateArea().setActivitiesSupported(true);
Customizing how Activities Look and Feel
How the activities look like can't be changed with the theme.
MiG Calendar Getting Started Guide
Page 13 / 31
Important!
Illustration 5 Added an activity