beautypg.com

Getactivitypaintcontext(), Getprimarydimensionlayout(), Setactivitypaintcontext(string) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 113: Setprimarydimensionlayout(gridlayoutprovider), Getactivitypaintcontext, Getprimarydimensionlayout, Setactivitypaintcontext, String, Setprimarydimensionlayout, Gridlayoutprovider

background image

getActivityPaintContext

public String getActivityPaintContext()

Property: The default paint context that will be used to get an AShape to paint with. This is the default context to use (

null

is default) if it is not set on the activity directly with

setPaintContext(String)

.

It can for instance be used to "connect" this bean's visual appearence to that of a

ActivityAShapeBean

's

paintContext

.

Returns:

The current value of the property.

See Also:

getDefaultPaintContext()

ActivityAShapeBean.getPaintContext()

Since:

6.0

setActivityPaintContext

public void setActivityPaintContext(String ctx)

Property: The default paint context that will be used to get an AShape to paint with. This is the default context to use (

null

is default) if it is not set on the activity directly with

setPaintContext(String)

.

It can for instance be used to "connect" this bean's visual appearence to that of a

ActivityAShapeBean

's

paintContext

.

Parameters:

ctx

- The new value for the property. May be

null

.

See Also:

setDefaultPaintContext(String)

ActivityAShapeBean.setPaintContext(String)

Since:

6.0

getPrimaryDimensionLayout

public GridLayoutProvider getPrimaryDimensionLayout()

Property: The layout provider for the primary dimension for the grid. The primary dimension is the one (vertical or
horizontal) that would be the only one if there was no wrapping. For instance normal text has horizontal as primary
dimension.

Note that normally a

GridLayoutProvider

can privide for both dimensions, however to be able to set different types of

layouts in a visual environment this one will only be used to provide a layout for one dimension. This class
(

DateAreaBean

) is itself a

GridLayoutProvider

and will relay the request to this provider, if set, but only for one

dimension.

Returns:

The layout provider for the primary dimension.

setPrimaryDimensionLayout

public void setPrimaryDimensionLayout(GridLayoutProvider layout)

Page 113 of 196

com.miginfocom.beans.DateAreaBean