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

  • 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 10
MiG InfoCom AB
ThemeDateArea.reloadStartupStructureFromTheme();
ThemeDateArea.reloadFromTheme();
ThemeDateArea.recreateAll();
Headers
There are no headers in the default theme, so let's add one.
Since we normally want to set the headers before the
container is created, so it doesn't have to be recreated
directly, we change the code a bit to create the theme
beforehand.
Theme theme = new CalendarTheme("myContext");
CellDecorationRow headerRow = new CellDecorationRow(
DateRange.RANGE_TYPE_DAY,
new DateFormatList("E' 'dd'/'M"),
new AtFixed(20f),
new Font("SansSerif", Font.PLAIN, 12)
);
GridLineRepetition gridLines = new GridLineRepetition(1, new Color(220, 220, 220));
String mainKey = CalendarTheme.KEY_HEADER_;
theme.addToList(mainKey + "North/CellDecorationRows#", headerRow);
theme.addToList(mainKey + "North/GridLines/PrimaryDim#", gridLines);
container = new ThemeDateAreaContainer("myContext");
The code above are using the simplest of the constructors to
MiG Calendar Getting Started Guide Page 11 / 31
Illustration 3 Header at top
Vue de la page 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 30 31

Commentaires sur ces manuels

Pas de commentaire