Mig-infocom MiG Calendar Getting Started Guide Manuale Utente Pagina 13

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 31
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 12
MiG InfoCom AB
OK, now we have a date area that shows a grid of a week
with a header that shows the week days and dates. Next
we'll show how to add some activities (E.g. an Event or
'Todo') to the date area. First we should create an Activity
and add it to the ActivityDepository.
ImmutableDateRange actRange = new ImmutableDateRange(
System.currentTimeMillis(), DateRange.RANGE_TYPE_HOUR, 4, null, null
);
Activity activity = new DefaultActivity(actRange, new Integer(1234));
activity.setSummary("Hello, World!");
ActivityDepository.getInstance().addBrokedActivity(activity, null);
Note that activity support is turned off by default; This
means that you will have to turn it on in order to see the
activities. You do that with:
container.getDateArea().setActivitiesSupported(true);
Customizing how Activities Look and Feel
How the activities look like can't be changed with the theme.
MiG Calendar Getting Started Guide Page 13 / 31
Important!
Illustration 5 Added an activity
Vedere la pagina 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 30 31

Commenti su questo manuale

Nessun commento