Mig-infocom MiG Calendar Getting Started Guide Instrukcja Użytkownika Strona 11

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 31
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 30 31

Komentarze do niniejszej Instrukcji

Brak uwag