Getcategoryautorevalidate(), Getcategoryrootids(), Setcategoryroot(category) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 100: Setcategoryrootids(object[]), Getcategoryautorevalidate, Getcategoryrootids, Setcategoryroot, Setcategoryrootids

Advertising
background image

(continued from last page)

Property: The category from the

com.miginfocom.calendar.category.CategoryDepository

that will serve as the

root for this category header. Note that this category can either be shown itself or just serve as the invisible root to show its
children as a multi root. This can be change with

setCategoryShowRoot(boolean)

.

NOTE! Not used if

setSubRowCreator(com.miginfocom.calendar.grid.SubRowCreator)

is

!= null

!

Returns:

The current root category. May be

null

which means that categories is generally disabled for this bean.

setCategoryRoot

public void setCategoryRoot(Category root)

Property: The category from the

com.miginfocom.calendar.category.CategoryDepository

that will serve as the

root for this category header. Note that this category can either be shown itself or just serve as the invisible root to show its
children as a multi root. This can be change with

setCategoryShowRoot(boolean)

.

The bean

DemoDataBean

is a

Category

so if one of those is created to construct demo data it can be set here as the root.

NOTE! Not used if

setSubRowCreator(com.miginfocom.calendar.grid.SubRowCreator)

is

!= null

!

Parameters:

root

- The new root category. May be

null

which means that categories is generally disabled for this bean.

getCategoryRootIDs

public Object[] getCategoryRootIDs()

Property: The category IDs from the

com.miginfocom.calendar.category.CategoryDepository

that will serve as

the root(s) for this category header. Note that this category(s) can either be shown itself or just serve as the invisible root(s)
to show its children as a multi root. This can be change with

setCategoryShowRoot(boolean)

.

The bean

DemoDataBean

is a

Category

so if one of those is created to construct demo data it can be set here as the root.

NOTE! Not used if

setSubRowCreator(com.miginfocom.calendar.grid.SubRowCreator)

is

!= null

!

Returns:

The current root category. May be

null

which means that categories is generally disabled for this bean.

setCategoryRootIDs

public void setCategoryRootIDs(Object[] rootIDs)

Property: The category IDs from the

com.miginfocom.calendar.category.CategoryDepository

that will serve as

the root(s) for this category header. Note that this category(s) can either be shown itself or just serve as the invisible root(s)
to show its children as a multi root. This can be change with

setCategoryShowRoot(boolean)

.

The bean

DemoDataBean

is a

Category

so if one of those is created to construct demo data it can be set here as the root.

NOTE! Not used if

setSubRowCreator(com.miginfocom.calendar.grid.SubRowCreator)

is

!= null

!

Parameters:

rootIDs

- The new category root ID(s). May be

null

which means that categories is generally disabled for this bean.

getCategoryAutoRevalidate

public boolean getCategoryAutoRevalidate()

Property: If the categories in the

CategoryDepository

changes the date area will revalidate itself if there is a category

root set.

Returns:

If the auto revalidation is on.

Page 100 of 196

com.miginfocom.beans.DateAreaBean

Advertising