MiG InfoCom MiG Calendar JavaBeans Guide User Manual

Page 16

Advertising
background image

MiG InfoCom AB

the framework. It contains a few properties to tweak how the
data should be generated, including the possibility to add the
generated activities to, also generated, categories.

GridDimensionLayoutBean

This bean holds information on how to layout the columns or
rows (all called rows since same class is used for both
dimensions) for one dimension in a DateAreaBean. It
manages min/preferred/max sizes for the rows and can even
contain compressed rows (known as GridSegments in the
core) which have a different set of min/preferred/max sizes.

ActivityAShapeBean

Not needing to be connected to the other beans directly this
bean configures the default AShape used to draw the
activities in the date area. It can tweak most parts of the
standard shape, including background paint and text
template.

CategoryTreeBean

It is a special panel containing a JTree for showing the
content of the CategoryDepository in a tree structure. It has
a lot of properties, all documented in the JavaDoc for the
class.

PrintPreviewBean

In v6.0 flexible and extensible print support was added. This
bean is a component that can be used as Print Preview. It
can be decorated with special PrintPainters to add for
instance footers, headers and watermarks. It is so simple to
add that it will not be explainer further below. You just add it
to your form and connect the DateAreaBean you want
previewed. See the JavaDoc for information about the
properties.

See the print example for sample code. Note that the
DateGridContainer (and thus the subclass DateAreaBean)
implements Printable, which means that you can use the
normal Swing printing through a PrintJob to print the bean.

PrintSpecificationBean

A PrintSpecification wrapped as JavaBean. It handles
page(s) layout in many ways. It is used as a configuration to
the PrintPreviewBean or DateAreaBean. See the JavaDoc

MiG Calendar JavaBeans Guide

Page 16 / 45

Advertising