The manual approach – MiG InfoCom MiG Calendar Getting Started Guide User Manual
Page 19

MiG InfoCom AB
final int dayType = DateRangeI.RANGE_TYPE_DAY;
final int weekType = DateRangeI.RANGE_TYPE_WEEK;
final int primDir = SwingConstants.HORIZONTAL;
theme.putValue(CalendarTheme.KEY_STARTUP_PRIMARY_DIM_CELL_TYPE, dayType);
theme.putValue(CalendarTheme.KEY_STARTUP_PRIMARY_DIM_DIRECTION, primDir);
theme.putValue(CalendarTheme.KEY_STARTUP_PRIMARY_DIM_TYPE_COUNT, 1);
theme.putValue(CalendarTheme.KEY_STARTUP_SECONDARY_DIM_WRAP_BOUNDARY, weekType);
theme.putValue(CalendarTheme.KEY_STARTUP_VISUAL_RANGE_TYPE, weekType);
theme.putValue(CalendarTheme.KEY_STARTUP_VISUAL_RANGE_COUNT, 5);
You should now have enough information to go and test
some of the other features of the MiG Calendar. All keys are
documented in the
Technical Documentation
and the javadocs
for
CalendarTheme
.
Categories
The Themed approach doesn't support Categories. Category
rows and a category header must be added though the
manual approach below. It is still possible to use the themes
approach and the in code add the category header.
The Manual Approach
Even though almost all types of applications can be created
using the themed approach described above, you sometimes
need more control and less automation. Doing it manually is
not hard, but it will be more verbose since you have to create
MiG Calendar Getting Started Guide
Page 19 / 31
Illustration 9 Structure changed to show five weeks in month view