beautypg.com

MiG InfoCom MiG Calendar InfoCom AB User Manual

Page 6

background image

© 2007 MiG InfoCom AB

You can load a custom AShape that has previously been saved to a file
(with AShapeUtil.saveShape(...)).

I can't see any Activities in the component, what can be wrong?
Check that you have turned on activity support with:

defaultDateArea.setActivitiesSupported(true); or the key
“Generic/activitiesSupported” with the Theme Editor if you are using
a Themed approach.

If you are using the manual approach see the Getting Started Guide,
there's a complete explanation there. You basically have to install a
Decorator that draws them and an ActivityLayout that tells the where
to go. Both are included in the component of course, but they have to be
added to the DateArea.

Do you have any examples on how to create AShapes?
Under the demo source installed with the component there are quite a
few. See the AShapeCreator.java for instance, but a few of the the demo
tabs also have their own.

How do you support the XML JavaBeans framework introduced in
Java 1.4?
We have written delegates for all important classes in the component.
Look in the IOUtil class. There you can get a delegate for a specific class

or have them automatically installed on a XMLEncoder instance. We use
this framework internally for saving and loading Themes and AShapes.

How can you show different looks for different Activities. For
instance a different background color for recurring ones.

There are many ways to do this. One is to create your own
ActivityViewRenderer and set that on a DefaultDateArea. Then you
have total control but have to do everything manually, including mouse
handling support and such.

Another way that can be used if there are different looks (e.g. colors)
depending on the Category the activities belongs to (an activity can
belong to any number of categories) is this:

CategoryDepository.setOverride(, ,
, );

for example:

CategoryDepository.setOverride(susanID, "background", AShape.A_PAINT,