Getcheckedstate(propertykey, category), Getrootcategoryid(), Setcheckedstate(propertykey, category, boolean) – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 81: Setrootcategoryid(object), Togglecheckedstate(propertykey, category), Getcheckedstate, Getrootcategoryid, Setcheckedstate, Setrootcategoryid, Object

Advertising
background image

(continued from last page)

getRootCategoryId

public Object getRootCategoryId()

Returns the category ID of the root node.

Returns:

The category ID of the root node.

null

if the root node is the real root in the category depository.

setRootCategoryId

public void setRootCategoryId(Object catIDRoot)

Sets the category ID of the root node.

Parameters:

catIDRoot

- The category ID of the root node.

null

if the root node should be the real root in the category

depository.

getCheckedState

public static Boolean getCheckedState(PropertyKey key,
Category cat)

Returns the checked state of a category.

null

means determinate because the category has sub categories where some are

check and some are not checked.

Boolean.TRUE

means that this and all sub categories are selected.

Boolean.FALSE

means that this and all sub categories are un-selected.

Categories that has sub-categories does not maintain checked state. Their state are dependandt on the state of all sub-
category leaves.

Parameters:

key

- The key that is used to get the checked state from the Category. See

getCheckSelectedKey()

cat

- The category to check the state for.

Returns:

The state of the category and sub categories.

setCheckedState

public static void setCheckedState(PropertyKey key,
Category cat,
boolean b)

Set the selected state for the category. If a filder the state will propagate to all children.

Parameters:

key

- The key that is used to get the checked state from the Category. See

getCheckSelectedKey()

cat

- The cageory to set the checked state on.

b

- The new state of the check.

toggleCheckedState

public static void toggleCheckedState(PropertyKey key,
Category cat)

Toggles the checked state on the category. If the category is a folder the folder and its childern will be set to "selected" if
the folder itself or one or its childen are "unselected". Otherwise the category tree will be "unselected".

Parameters:

key

- The key that is used to get the checked state from the Category. See

getCheckSelectedKey()

Page 81 of 196

com.miginfocom.beans.CategoryTreeBean

Advertising