Getactivitycategories(), Getcategories(), Setactivitycategories(string) – MiG InfoCom MiG Calendar JavaBeans User Manual
Page 158: Setcategories(string), Getactivitycategories, Getcategories, Setactivitycategories, Setcategories, String
![background image](https://www.manualsdir.com/files/798675/content/doc158.png)
(continued from last page)
See Also:
getInstance(String)
createActivities(com.miginfocom.util.dates.DateRangeI, String[], String[], Object[],
Object[][], int, int, int, int, int, int)
getCategories
public String getCategories()
Property: A comma separated list with special chars of main categories that will be created in the
com.miginfocom.calendar.category.CategoryDepository
.
Returns:
The current comma separeted list with categories (and special chars).
See Also:
setCategories
public void setCategories(String cats)
Property: A comma separated list with special chars of main categories that will be created in the
com.miginfocom.calendar.category.CategoryDepository
.
The list can be used to create a hierarchy (tree) of categories.
This method will recreated the demo data which may take some time.
Parameters:
cats
- The comma separated category ids. For every element, if first char is a "+" the category
catIDs[catIx]
will
be a folder beneath
addToNode
and the rest will be added to this new fonder. If the first char is one or more "-" the
category
catIDs[catIx]
will be added to the parent that many levels up from
addToNode
. If not "+" or "-" then
catIDs[catIx]
will just be added to
addToNode
.
"-" and "+" can be combined but "-" must always be first if so. For instacne "-+Folder" creates a folder in the parent
category.
getActivityCategories
public String getActivityCategories()
Property: A comma separated list of main categories that all activities will get one (random) of.
Returns:
The current comma separated list. May be
null
.
See Also:
createActivities(com.miginfocom.util.dates.DateRangeI, String[], String[], Object[],
Object[][], int, int, int, int, int, int)
setActivityCategories
public void setActivityCategories(String actCats)
Property: A comma separated list of main categories that all activities will get one (random) of.
This method will recreated the demo data which may take some time.
Parameters:
actCats
- The new comma separated list. May be
null
in which case the activities will get no categories.
Page 158 of 196
com.miginfocom.beans.DemoDataBean