Getselectiontype(), Isshownofiticon(), Setactivitydepositorycontext(string) – MiG InfoCom MiG Calendar JavaBeans User Manual
Page 137: Setshownofiticon(boolean), Getselectiontype, Isshownofiticon, Setactivitydepositorycontext, String, Setshownofiticon, Boolean
![background image](https://www.manualsdir.com/files/798675/content/doc137.png)
(continued from last page)
setActivityDepositoryContext
public void setActivityDepositoryContext(String context)
Property: The context used as a key in the
com.miginfocom.calendar.activity.ActivityDepository
to get the
activities that this date area should show. In the depository activities can optionally be put in different "containers" which
are adressed by this context. The default context is
null
.
Parameters:
context
- The new context. Default is
null
.
isShowNoFitIcon
public boolean isShowNoFitIcon()
Property: If the little icon that shows that not all activities have fitted within a date range (normally a day). Mouse presses
on this icon, as well as how the icon/AShape should look like is handled by the
DefaultDateArea
that this JavBean
.
To register a listener for mouse events register a
com.miginfocom.ashape.interaction.InteractionListener
on
the date area.
To change the AShape used for the no fit shape call
setDefaultNoFitShape(com.miginfocom.ashape.shapes.RootAShape)
after calling this method (this method
sets it to default).
This method basically set the shape to
null
or
AShapeUtil.createDefaultNoFitShape(DefaultDateArea.NO_FIT_EVENT_PROPERTY)
depending on
b
.
Returns:
If the not fit icon will be shown. Basically checks if the shape is set to
null
.
setShowNoFitIcon
public void setShowNoFitIcon(boolean b)
Property: If the little icon that shows that not all activities have fitted within a date range (normally a day). Mouse presses
on this icon, as well as how the icon/AShape should look like is handled by the
DefaultDateArea
that this JavBean
.
To register a listener for mouse events register a
com.miginfocom.ashape.interaction.InteractionListener
on
the date area.
To change the AShape used for the no fit shape call
setDefaultNoFitShape(com.miginfocom.ashape.shapes.RootAShape)
after calling this method (this method
sets it to default).
Parameters:
b
- If the not fit icon will be shown. Basically checks if the shape is set to
null
.
getSelectionType
public int getSelectionType()
Property: The type of selection that can be done on the date area background. This has nothing to do with activity selection.
Returns:
The old selection type.
DateArea.SELECTION_TYPE_NORMAL
or
DateArea.SELECTION_TYPE_NONE
.
Page 137 of 196
com.miginfocom.beans.DateAreaBean