Demodatabean, The bean, Constructor summary – MiG InfoCom MiG Calendar JavaBeans User Manual

Page 154: Method summary, Com.miginfocom.beans class demodatabean

Advertising
background image

com.miginfocom.beans
Class DemoDataBean

java.lang.Object
|
+-Category
|
+-com.miginfocom.beans.DemoDataBean

public class DemoDataBean
extends Category
implements Serializable

A JavaBean that can be used to create some random demo activities.

This class should only be used to test activity handling. Performance is sub-par for anything else since the demo data will be
recreated for every setXxx method called.

The algorithm start from the earliest time (set in the propertis of this class) and the randomizing values (normally between some
min/max value) for all properties of the activity until the end time is reached.

All Implemented Interfaces:

Serializable

See Also:

createActivities(com.miginfocom.util.dates.DateRangeI, String[], String[], Object[],
Object[][], int, int, int, int, int, int)

Constructor Summary

public

DemoDataBean

()

Method Summary

void

createDemoData

()

This method will create the demo data.

ImmutableDateRange

geDataDateRange

()

Property: The date range that the demo data will be created for.

String

getActivityCategories

()

Property: A comma separated list of main categories that all activities will get one (random)
of.

String

getActivityDepositoryContext

()

Property: The context used to get the depository to put all generated demo activities in.

String

getCategories

()

Property: A comma separated list with special chars of main categories that will be created
in the

com.miginfocom.calendar.category.CategoryDepository

.

String

getDescriptionTexts

()

Property: A comma separated list of description texts that will randomly be selected from
for every created activity.

int

getGapMinutesMax

()

Property: The maximum minutes that should pass between two generated activities.

Page 154 of 196

com.miginfocom.beans.DemoDataBean

Advertising