Createdemodata(), Getactivitydepositorycontext(), Isdemodatacreated() – MiG InfoCom MiG Calendar JavaBeans User Manual
Page 157: Removedemodata(), Setactivitydepositorycontext(string), Setenabled(boolean), Createdemodata, Getactivitydepositorycontext, Isdemodatacreated, Removedemodata
(continued from last page)
setEnabled
public void setEnabled(boolean b)
Property: If the demo data bean is enabled or not. If not enabled the demo data will never be created.
Parameters:
b
- If the demo data bean should be enabled or not.
isDemoDataCreated
public boolean isDemoDataCreated()
Returns if this bean should generate demo data or not.
Returns:
true
is demo data has been generated.
createDemoData
public void createDemoData()
This method will create the demo data.
See Also:
getInstance(String)
removeDemoData
public void removeDemoData()
This method will remove the demo data.
See Also:
getInstance(String)
getActivityDepositoryContext
public String getActivityDepositoryContext()
Property: The context used to get the depository to put all generated demo activities in.
Returns:
The current context. May be
null
.
See Also:
getInstance(String)
setActivityDepositoryContext
public void setActivityDepositoryContext(String ctx)
Property: The context used to get the depository to put all generated demo activities in.
This method will recreated the demo data which may take some time.
Parameters:
ctx
- The new context. May be
null
.
Page 157 of 196
com.miginfocom.beans.DemoDataBean