Mig-infocom MiG Calendar Getting Started Guide Manuel d'utilisateur Page 10

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 31
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 9
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
Vue de la page 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 30 31

Commentaires sur ces manuels

Pas de commentaire