Getcategoryshowroot(), Getsubrowcreator(), Setcategoryautorevalidate(boolean) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 101: Setcategoryshowroot(boolean), Setsubrowcreator(subrowcreator), Getcategoryshowroot, Getsubrowcreator, Setcategoryautorevalidate, Boolean, Setcategoryshowroot

Advertising
background image

setCategoryAutoRevalidate

public void setCategoryAutoRevalidate(boolean b)

Property: If the categories in the

CategoryDepository

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

root set.

Parameters:

b

- If the auto revalidation is on.

getSubRowCreator

public SubRowCreator getSubRowCreator()

Property: A custom

com.miginfocom.calendar.grid.SubRowCreator

that can be set to create all sub rows for the

date area bean. Note that if this is set then the

categoryRoot

,

categoryRoots

and

categoryShowRoot

properties will

not be used since they are only used for the default sub row creator (which is a CategorySubRowCreator). The default
value for this property is

null

and then the two properties mentioned above will be used to create the sub rows.

Returns:

The current creator. Default is

null

.

See Also:

setCategoryRoot(com.miginfocom.calendar.category.Category)

setCategoryShowRoot(boolean)

setSubRowCreator

public void setSubRowCreator(SubRowCreator creator)

Property: A custom

com.miginfocom.calendar.grid.SubRowCreator

that can be set to create all sub rows for the

date area bean. Note that if this is set then the

categoryRoot

,

categoryRoots

and

categoryShowRoot

properties will

not be used since they are only used for the default sub row creator (which is a CategorySubRowCreator). The default
value for this property is

null

and then the two properties mentioned above will be used to create the sub rows.

Parameters:

creator

- The new creator. Default is

null

.

See Also:

setCategoryRoot(com.miginfocom.calendar.category.Category)

setCategoryShowRoot(boolean)

getCategoryShowRoot

public boolean getCategoryShowRoot()

Property: If the root category set with

setCategoryRoot(com.miginfocom.calendar.category.Category)

should be shown or if its children should be shown in the first level.

NOTE! Not used if

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

is

!= null

!

Returns:

If the root category should be show as the sole root.

setCategoryShowRoot

public void setCategoryShowRoot(boolean b)

Page 101 of 196

com.miginfocom.beans.DateAreaBean

Advertising