MiG InfoCom MiG Calendar Getting Started Guide User Manual
Page 10
![background image](https://www.manualsdir.com/files/798671/content/doc010.png)
MiG InfoCom AB
Theme Properties
If you want to change the properties of the theme, here is
how you do that. It will set a green background. Not pretty,
but we know if it works..
Theme theme = Themes.getTheme("myContext");
theme.putValue(CalendarTheme.KEY_GENERIC_BACKGROUND, Color.GREEN);
Themes and Updating
How come the date area is updated even though we only
changed the theme? The default setting for the theme, which
is interpreted by the
ThemeDateAreaContainer
, is that
changes should be migrated to the container and date area.
This is convenient since you don't have to explicitly tell those
classes to update themselves. If you have many changes in a
batch, you may want turn it of and handle the updating
yourself for greater speed.
Depending on what you changed, here are some methods to
use for explicitly force an update. They reload/recreate
different amounts of information. Read the javadocs for
further information.
ThemeDateAreaContainer.recreateAll();
MiG Calendar Getting Started Guide
Page 10 / 31
Illustration 2 Horrible green background