|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.calendar.activity.AbstractActivity
public abstract class AbstractActivity
Implements a common base line for an Activity.
| Field Summary | |
|---|---|
static PropertyKey |
BASE_DATE_RANGE
The base date range for the activity. |
static PropertyKey |
PROP_AFFECTED_DATE_RANGE
The whole date range that may be affected by this activity. |
static PropertyKey |
PROP_CATEGORY_IDS
Linked to the value part of the Category's ID. |
static PropertyKey |
PROP_CLIENT_CREATED_MILLIS
When the client created this. |
static PropertyKey |
PROP_DESCRIPTION
The description. |
static PropertyKey |
PROP_ENABLED
If the activity is enabled. |
static PropertyKey |
PROP_ID_OBJECT
An object that should be used to identify this range, not used internally in this class. |
static PropertyKey |
PROP_LAST_MODIFIED_MILLIS
When this was last modified. |
static PropertyKey |
PROP_LAYER_INDEX
The layer in which to layout and paint this activity. |
static PropertyKey |
PROP_LAYOUT_CONTEXT
An object that is interpreted by the object that will layout this activity or the object that will decide what layout object to use. |
static PropertyKey |
PROP_LOCATION
The location. |
static PropertyKey |
PROP_PAINT_CONTEXT
An object that is interpreted by the object that will paint this activity. |
static PropertyKey |
PROP_RECURRENCE
The recurrence rule for this activity. |
static PropertyKey |
PROP_STORAGE_CREATED_MILLIS
When the storage (server) actually created this. |
static PropertyKey |
PROP_SUMMARY
A summary, usually one liner. |
| Fields inherited from interface com.miginfocom.util.states.StateObservable |
|---|
GROUP_TOGGLE, SPRING, TOGGLE |
| Constructor Summary | |
|---|---|
protected |
AbstractActivity(ImmutableDateRange baseRange)
The base date range to start with. |
protected |
AbstractActivity(java.util.Map props)
Constructor that will take the PropertyKey->Value map and set it. |
| Method Summary | |
|---|---|
void |
addCategoryID(java.lang.Object catID,
int index)
Adds a category to the category list. |
void |
addProperties(java.util.Map properties,
java.lang.Boolean fireChangeEvent)
Adds all properties to this activity relplacing any key/value that is already there. |
void |
addPropertiesSilent(java.util.Map properties,
java.lang.Boolean fireChangeEvent)
Transfer to Activity.setProperties(java.util.Map, Boolean) but should catch the PropertyVetoException. |
void |
addPropertyListener(java.beans.PropertyChangeListener l)
Adds a listener that should be notified of all changes that to the property values of this com.miginfocom.theme. This is usually just implemented as addPropertyListener(l, false) |
void |
addPropertyListener(java.beans.PropertyChangeListener l,
boolean asWeakRef)
Adds a listener that should be notified of all changes that to the property values of this com.miginfocom.theme |
static void |
addStaticPropertyChangeListener(java.beans.PropertyChangeListener l,
boolean asWeakRef)
Adds a listener that listens on ALL acitivities of the type AbstractActivity and all subclasses. |
void |
clearLayoutNeededFlag()
Clears flag. |
int |
compareTo(java.lang.Object o)
First compares level index and if not equal then one with the lower index is "less" than the other and this is returned. Otherwise, if they overlaps the longest is first then they are sorted according to the start time |
boolean |
containsProperty(PropertyKey property)
Returns if a property exists. |
java.lang.Object |
endAdjusting(PropertyKey key)
Ends the adjusting mode for the key and removed any reference to the old value. |
boolean |
equals(java.lang.Object o)
Overridden to compare ID. |
protected void |
firePropertyChangeEvent(java.lang.String propName,
java.lang.Object oldValue,
java.lang.Object newValue)
Notifies listeners of property changes. |
static void |
fireStaticPropertyChangeEvent(java.beans.PropertyChangeEvent e)
Notifies listeners of property changes. |
ImmutableDateRange |
getBaseDateRange()
Returns the date range that this activity spans, disregarding possible recurrence. |
java.lang.Object[] |
getCategoryIDs()
Returns the categories that this object is linked to. |
java.lang.Long |
getCreatedByStorageDate()
Returns the creation date (when actually created by the server or storage) in milliseconds (UTC) |
java.lang.Long |
getCreatedDateByClientDate()
Returns the creation date (when created by the client) in milliseconds (UTC) |
MutableDateRange |
getDateRangeClone()
Returns the date range that the object spans as a clone which is safe to change without chaning the original time span. |
DateRangeI |
getDateRangeForReading()
Returns same as Activity.getBaseDateRange() |
java.lang.String |
getDescription()
Returns the description of this Activity |
java.lang.Object |
getID()
Returns the ID Object that should identify this Activity. |
long |
getLastModified()
Returns the last modified date in milliseconds (UTC). |
int |
getLayerIndex()
Returns the layer in which to layout and paint this activity. |
java.lang.String |
getLayoutContext()
Returns the an optional context interpretable by the object that is to layout this activity. |
java.lang.String |
getLocation()
Returns the location of this Activity |
java.lang.String |
getPaintContext()
Returns the an optional context interpretable by the object that is to paint this activity. |
java.util.Map |
getProperties()
Returns a shallow copy of all properties for this activity. |
java.lang.Object |
getProperty(PropertyKey property)
Returns a property for this Activity |
static PropertyValidator |
getPropertyValidator()
Return the property key validator. |
Recurrence |
getRecurrence()
Returns the recurrecy object assiciated with this Activity. |
java.lang.String |
getSummary()
Returns a breief summary (on line normally) of this Activity |
MutableDateRange |
getWritableDateRange()
Returns the contained date range for editing. |
int |
hashCode()
Overridden to return the hashcode for the ID or 0 if no ID. |
boolean |
isAdjusting(PropertyKey key)
Returns if the key is currently in "adjustment mode". |
boolean |
isCategory(java.lang.Object id)
Returns if id is one of the id:s that this categorizable has. |
boolean |
isEnabled()
Retunrns if the Activity is enabled |
boolean |
isIgnorePropertyEvents()
Transfer to ListenerSet.isIgnoreEvents() |
boolean |
isLayoutNeeded()
Returns whether this activity needs to be layout, normally after changing date range |
boolean |
isRecurrent()
Returns if this Activity is happening more than once |
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
void |
removeCategoryID(java.lang.Object catID)
Removes a category from the category list. |
java.lang.Object |
removeProperty(PropertyKey property)
Removes a property for this Activity. |
java.lang.Object |
removeProperty(PropertyKey property,
java.lang.Boolean fireChangeEvent)
Removes the property. |
void |
removePropertyListener(java.beans.PropertyChangeListener l)
Removes a listener if it is in the list. |
java.lang.Object |
removePropertySilent(PropertyKey property,
java.lang.Boolean fireChangeEvent)
Convenience method for PropertyConsumer.removeProperty(com.miginfocom.util.PropertyKey, Boolean) that catches the PropertyVetoException. |
static void |
removeStaticPropertyChangeListener(java.beans.PropertyChangeListener l)
Removes static the listener. |
java.lang.Object |
rollbackAdjusting(PropertyKey key)
Rollbacks the value of the key to the value it has when the AdjustingPropertyConsumer.startAdjusting(com.miginfocom.util.PropertyKey) was called. |
void |
setBaseDateRange(ImmutableDateRange range)
Sets the base range. |
void |
setCategoryIDs(java.lang.Object[] catIDs)
Sets the IDs of the categories that this activity should belong to or an empty array if none. |
protected void |
setCreatedByStorageDate(java.lang.Long millis)
Sets the creation date (when actually created by the server or storage) in milliseconds (UTC). |
protected void |
setCreatedDateByClientDate(java.lang.Long millis)
Sets the creation date (when created by the client) in milliseconds (UTC). |
void |
setDescription(java.lang.String descr)
Sets the description for this Activity. |
boolean |
setEnabled(boolean b)
Sets if the Activity should be enabled. |
void |
setID(java.lang.Object idObject)
Set the ID Object that should be tied to this Activity. |
boolean |
setIgnorePropertyEvents(boolean b)
Transfer to ListenerSet.setIgnoreEvents(boolean) |
void |
setLastModified(long millis)
Sets the last modified to a specific value. |
protected void |
setLastUpdateMillis()
Updates the last changed millis to the current millis. |
void |
setLayerIndex(int ix)
Sets the layer in which to layout and paint this activity. |
void |
setLayoutContext(java.lang.String context)
Sets an optional paint context interpretable by the object that is to layout this activity. |
void |
setLocation(java.lang.String location)
Sets the location for this Activity. |
void |
setPaintContext(java.lang.String context)
Sets an optional paint context used when painting this activity |
void |
setProperties(java.util.Map props)
Sets the properties for this activity bu calling Activity.setPropertiesSilent(java.util.Map, java.lang.Boolean). |
void |
setProperties(java.util.Map properties,
java.lang.Boolean fireChangeEvent)
Replaces all properties in this activity with properties. |
void |
setPropertiesSilent(java.util.Map properties,
java.lang.Boolean fireChangeEvent)
Transfer to Activity.setProperties(java.util.Map, Boolean) but should catch the PropertyVetoException. |
java.lang.Object |
setProperty(PropertyKey property,
java.lang.Object value,
java.lang.Boolean fireChangeEvent)
Sets a property for this Activity. |
java.lang.Object |
setPropertySilent(PropertyKey property,
java.lang.Object value,
java.lang.Boolean fireChangeEvent)
Transfer to Activity.setProperty(PropertyKey, Object, Boolean) but should catch the PropertyVetoException. |
static void |
setPropertyValidator(PropertyValidator validator)
Adds a property key validator that can be used to validate any set and remove of any property in any Activity. |
void |
setRecurrence(Recurrence rec)
Sets the recurrecy object assiciated with this Activity. |
void |
setSummary(java.lang.String summary)
Sets the summary for this Activity. |
boolean |
startAdjusting(PropertyKey key)
Starts a transaction for the key. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.miginfocom.calendar.activity.Activity |
|---|
getBaseView, getViews, invalidateViews |
| Methods inherited from interface com.miginfocom.util.states.StateObservable |
|---|
getGroupToggleContext, getHandledStates, getSettableStates, getStates, getStateType, isHandlingStates, isMultiState, setGroupToggleContext |
| Field Detail |
|---|
public static final PropertyKey PROP_CLIENT_CREATED_MILLIS
this. Type is Long.
public static final PropertyKey PROP_STORAGE_CREATED_MILLIS
this. Type is Long.
public static final PropertyKey PROP_LAST_MODIFIED_MILLIS
this was last modified. Not updated automatically. Type is Long.
public static final PropertyKey PROP_DESCRIPTION
String.
public static final PropertyKey PROP_LOCATION
String.
public static final PropertyKey PROP_SUMMARY
String.
public static final PropertyKey PROP_ID_OBJECT
public static final PropertyKey PROP_ENABLED
Boolean.
public static final PropertyKey BASE_DATE_RANGE
ImmutableDateRange.
public static final PropertyKey PROP_AFFECTED_DATE_RANGE
BASE_DATE_RANGE, otherwise
it will include the whole recurrence range as well. If the recurrence has no stop value, or it can not be calculated in a consistant
manner, the end date millis will be Long.MAX_VALUE.
The value will be recaclulated every time BASE_DATE_RANGE or PROP_RECURRENCE is changed but may also be set manually
(though it will still be recalculated if the before mentioned properties are changed again).
You should however not listen for changes on only this property since it is silently updated normally. The reason for this is so that not always two events are sent whenever the base range are changed. Base date and recurrrence changes instead.
public static final PropertyKey PROP_PAINT_CONTEXT
The class type when returned from getProperty(com.miginfocom.util.PropertyKey) should be null or String.
ActivityViewRendererpublic static final PropertyKey PROP_LAYOUT_CONTEXT
The class type when returned from getProperty(com.miginfocom.util.PropertyKey) should be null or String.
ActivityLayoutpublic static final PropertyKey PROP_LAYER_INDEX
The class type when returned from getProperty(com.miginfocom.util.PropertyKey) should be null or Integer.
public static final PropertyKey PROP_RECURRENCE
public static final PropertyKey PROP_CATEGORY_IDS
Category's ID.
| Constructor Detail |
|---|
protected AbstractActivity(java.util.Map props)
BASE_DATE_RANGE key.
props - The properties. Not null and must specify the base date range. Will be copied and not stored locally.protected AbstractActivity(ImmutableDateRange baseRange)
baseRange - The date range to span. Not null and must be sorted.DateRangeI.isSorted().| Method Detail |
|---|
public boolean startAdjusting(PropertyKey key)
AdjustingPropertyConsumerAdjustingPropertyConsumer.rollbackAdjusting(com.miginfocom.util.PropertyKey).
The adjusting status end when calling either AdjustingPropertyConsumer.endAdjusting(PropertyKey) or AdjustingPropertyConsumer.rollbackAdjusting(com.miginfocom.util.PropertyKey).
If the property is already in "adjustment" mode nothing is done since there is no support for hierarchical transactions.
startAdjusting in interface AdjustingPropertyConsumerkey - The key that should be considered "adjusting". Not null.
false if it already was adjusting.public boolean isAdjusting(PropertyKey key)
AdjustingPropertyConsumer
isAdjusting in interface AdjustingPropertyConsumerkey - The key to check. Not null.
public java.lang.Object rollbackAdjusting(PropertyKey key)
AdjustingPropertyConsumerAdjustingPropertyConsumer.startAdjusting(com.miginfocom.util.PropertyKey) was called.
If the key is not in "adjustment mode" nothing is done.
rollbackAdjusting in interface AdjustingPropertyConsumerkey - The key to rollback. Not null.
null.public java.lang.Object endAdjusting(PropertyKey key)
AdjustingPropertyConsumer
endAdjusting in interface AdjustingPropertyConsumerkey - The key to end adjustment for.
public ImmutableDateRange getBaseDateRange()
Activity
getBaseDateRange in interface Activitynull.
public void setBaseDateRange(ImmutableDateRange range)
throws java.beans.PropertyVetoException
setBaseDateRange in interface Activityrange - The base range, not null.
java.beans.PropertyVetoException - If the new date range couldn't be set on this for some reason.public MutableDateRange getDateRangeClone()
TimeSpanTimeSpan.getDateRangeForReading() instead to avoid unnecessary object cloning.
getDateRangeClone in interface TimeSpanpublic MutableDateRange getWritableDateRange()
TimeSpanUnsupportedOperationException
should be thrown.
getWritableDateRange in interface TimeSpanpublic DateRangeI getDateRangeForReading()
ActivityActivity.getBaseDateRange()
getDateRangeForReading in interface ActivitygetDateRangeForReading in interface TimeSpanActivity.getBaseDateRange()public java.lang.Long getCreatedByStorageDate()
Activity
getCreatedByStorageDate in interface Activitynull.public java.lang.Object[] getCategoryIDs()
Categorizable
getCategoryIDs in interface Categorizablenull and with length 0.public void setCategoryIDs(java.lang.Object[] catIDs)
Categorizablenull.
setCategoryIDs in interface CategorizablecatIDs - The IDs of the categories that this activity should belong to or an empty array if none. May be null and with length 0.public boolean isCategory(java.lang.Object id)
Categorizableid is one of the id:s that this categorizable has.
isCategory in interface Categorizableid - The id to check.
id is one of the id:s that this categorizable has.
public void addCategoryID(java.lang.Object catID,
int index)
CategorizablecatID already exists for this object, nothing is changed.
addCategoryID in interface CategorizablecatID - The ID of the categories that this activity should also belong to. Not null.index - The index at which to add the category id. It might be important since category IDs earlier in the array will sometimes
hide latter ones, such as for category overrides.
index is lenient in the upper range. It is legal to set a very high value (e.g. MigUtil.BIG_INT
to be sure it will be added last. 0 will add it first. It should not be negative though.
public void removeCategoryID(java.lang.Object catID)
CategorizablecatID don't exist for this object, nothing is changed.
Will normally remake a new array every time. I.e. optimized for retrieval of the categories, not removal.
removeCategoryID in interface CategorizablecatID - The ID of the categories that this activity should no longer belong to. Not null.
protected void setCreatedByStorageDate(java.lang.Long millis)
throws java.beans.PropertyVetoException
millis - The creation date (when actually created by the server or storage) in milliseconds (UTC). May be null.
java.beans.PropertyVetoExceptionpublic java.lang.Long getCreatedDateByClientDate()
Activity
getCreatedDateByClientDate in interface Activitynull.
protected void setCreatedDateByClientDate(java.lang.Long millis)
throws java.beans.PropertyVetoException
millis - The creation date (when created by the client) in milliseconds (UTC). May be null.
java.beans.PropertyVetoExceptionpublic java.lang.String getDescription()
ActivityActivity
getDescription in interface ActivityActivity. May be null.public void setDescription(java.lang.String descr)
ActivityActivity.
This is a convenience for:
setProperty(PROP_DESCRIPTION, descr, null);
And thus will not throw an exception if vetoed.
setDescription in interface Activitydescr - The description for this Activity.public java.lang.String getLocation()
ActivityActivity
getLocation in interface ActivityActivity. May be null.public void setLocation(java.lang.String location)
ActivityActivity.
This is a convenience for:
setProperty(PROP_LOCATION, location, null);
And thus will not throw an exception if vetoed.
setLocation in interface Activitylocation - The location for this Activity.public java.lang.Object getID()
Activity
getID in interface Activitynull.public void setID(java.lang.Object idObject)
ActivityThis is a convenience for:
setProperty(PROP_ID_OBJECT, idObject, null);
And thus will not throw an exception if vetoed.
setID in interface ActivityidObject - The ID object, can be null.public long getLastModified()
Activity
getLastModified in interface Activitynull.public void setLastModified(long millis)
Activity
setLastModified in interface Activitymillis - The millis as standard.public void setSummary(java.lang.String summary)
ActivityActivity.
This is a convenience for:
setProperty(PROP_SUMMARY, summary, null);
And thus will not throw an exception if vetoed.
setSummary in interface Activitysummary - The summary for this Activity.public java.lang.String getSummary()
ActivityActivity
getSummary in interface ActivityActivity. May be null.public boolean isEnabled()
Activity
isEnabled in interface Activitypublic boolean setEnabled(boolean b)
ActivityThis is a convenience for:
setProperty(PROP_ENABLED, Boolean.FALSE, null);
And thus will not throw an exception if vetoed.
setEnabled in interface Activityb - true if enabled
true if the value was changed
public java.lang.Object setPropertySilent(PropertyKey property,
java.lang.Object value,
java.lang.Boolean fireChangeEvent)
ActivityActivity.setProperty(PropertyKey, Object, Boolean) but should catch the PropertyVetoException. It should not
set the property if an exception is thrown and return null.
setPropertySilent in interface ActivitysetPropertySilent in interface PropertyConsumerproperty - The property key that denotes the property. Not null.value - The property to set for this object.fireChangeEvent - If Boolean.TRUE fires a change event. If Boolean.FALSE don't fire and if null
the old and new object is checked for equality (with .equals()) and fires a change if they differ.
null.
public java.lang.Object setProperty(PropertyKey property,
java.lang.Object value,
java.lang.Boolean fireChangeEvent)
throws java.beans.PropertyVetoException
ActivityActivity. All other properties in this class is actually stored as propertied, but they
have convenience getters/setters and static property names. With this method you can store arbitrary objects in the activity.
Note that if the PropertyKey defines a value class type it should be checked in this setter and an ClassCastException
is thrown if prop is of wrong class type. See PropertyKey.getValueClass().
setProperty in interface ActivitysetProperty in interface PropertyConsumerproperty - The property key that denotes the property. Not null.value - The property for this Activity.fireChangeEvent - If Boolean.TRUE fires a change event. If Boolean.FALSE don't fire and if null
the old and new object is checked for equality (with .equals()) and fires a change if they differ.
null.
java.beans.PropertyVetoException - If the property couldn't be set on this for some reason.
public void setPropertiesSilent(java.util.Map properties,
java.lang.Boolean fireChangeEvent)
ActivityActivity.setProperties(java.util.Map, Boolean) but should catch the PropertyVetoException. It should not
set the property if an exception is thrown.
setPropertiesSilent in interface Activity
public void setProperties(java.util.Map properties,
java.lang.Boolean fireChangeEvent)
throws java.beans.PropertyVetoException
Activityproperties. properties must at least contain
enough information to make the activity valid.
Note that if the PropertyKeys defines a value class type it should be checked in this method and an ClassCastException
is thrown if a value is of the wrong class type. See PropertyKey.getValueClass().
The Property change event will contain a null property name and null for both old and new values.
setProperties in interface Activityproperties - The properties to set. Not null. Keys must be PropertyKeys.fireChangeEvent - If Boolean.TRUE fires a change event. If Boolean.FALSE don't fire and if null
the old and new object is checked for equality (with .equals()) and fires a change if they differ.
java.beans.PropertyVetoException
public void addPropertiesSilent(java.util.Map properties,
java.lang.Boolean fireChangeEvent)
ActivityActivity.setProperties(java.util.Map, Boolean) but should catch the PropertyVetoException. It should not
set the property if an exception is thrown.
addPropertiesSilent in interface Activity
public void addProperties(java.util.Map properties,
java.lang.Boolean fireChangeEvent)
throws java.beans.PropertyVetoException
Activity
Note that if the PropertyKeys defines a value class type it should be checked in this method and an ClassCastException
is thrown if a value is of the wrong class type. See PropertyKey.getValueClass().
The Property change event will contain a null property name and null for both old and new values.
addProperties in interface Activityproperties - The properties to add. Not null. Keys must be PropertyKeys.fireChangeEvent - If Boolean.TRUE fires a change event. If Boolean.FALSE don't fire and if null
the old and new object is checked for equality (with .equals()) and fires a change if they differ.
java.beans.PropertyVetoExceptionpublic java.lang.Object getProperty(PropertyKey property)
ActivityActivity
getProperty in interface ActivitygetProperty in interface PropertyProviderproperty - The property key to return the property for.
null.public java.util.Map getProperties()
Activity
getProperties in interface Activitypublic void setProperties(java.util.Map props)
ActivityActivity.setPropertiesSilent(java.util.Map, java.lang.Boolean). This extra methis of for making this class a bean.
setProperties in interface Activityprops - Must contain a map from PropertyKey to the properties.public java.lang.Object removeProperty(PropertyKey property)
ActivityActivity. If property isn't set, the method returnes null.
Fires a change event if the key currently exists.
removeProperty in interface Activityproperty - The property key that denotes the property.
null.
public java.lang.Object removeProperty(PropertyKey property,
java.lang.Boolean fireChangeEvent)
throws java.beans.PropertyVetoException
PropertyConsumer
removeProperty in interface PropertyConsumerproperty - The property key that denotes the property. Not null.fireChangeEvent - If Boolean.TRUE fires a change event. If Boolean.FALSE don't fire and if null
fires a change if the key existed before this call.
null both is null was stored or if the key did not exist in the provider.
java.beans.PropertyVetoException - If the property couldn't be set on this for some reason.
public java.lang.Object removePropertySilent(PropertyKey property,
java.lang.Boolean fireChangeEvent)
PropertyConsumerPropertyConsumer.removeProperty(com.miginfocom.util.PropertyKey, Boolean) that catches the PropertyVetoException.
It is required that this method is implemented in the PropertyConsumer.setProperty(com.miginfocom.util.PropertyKey, Object, Boolean).
removePropertySilent in interface PropertyConsumerproperty - The property key that denotes the property. Not null.fireChangeEvent - If Boolean.TRUE fires a change event. If Boolean.FALSE don't fire and if null
fires a change if the key existed before this call.
null both is null was stored or if the key did not exist in the provider.public boolean containsProperty(PropertyKey property)
Activity
containsProperty in interface ActivitycontainsProperty in interface PropertyProviderproperty - The property key that denotes the property.
protected void setLastUpdateMillis()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - The other Activity to compare to. Not null.
public boolean isLayoutNeeded()
Activity
isLayoutNeeded in interface Activitytrue if so.public void clearLayoutNeededFlag()
Activity
clearLayoutNeededFlag in interface Activitypublic void setRecurrence(Recurrence rec)
ActivityActivity.
setRecurrence in interface Activityrec - The recurrecy object or null if this Activity should have not recurrence.public Recurrence getRecurrence()
ActivityActivity.
getRecurrence in interface Activitynull if this Activity has not recurrence.public boolean isRecurrent()
ActivityActivity is happening more than once
isRecurrent in interface ActivityActivity is happening more than oncepublic java.lang.String getPaintContext()
Activity
getPaintContext in interface Activitynull by defaultActivityViewRendererpublic void setPaintContext(java.lang.String context)
Activity
setPaintContext in interface Activitycontext - The optional paint context used when painting this activity. Can be null for default behaviour.public java.lang.String getLayoutContext()
Activity
getLayoutContext in interface Activitynull by defaultActivityViewRendererpublic void setLayoutContext(java.lang.String context)
Activity
setLayoutContext in interface Activitycontext - The optional paint context interpretable by the object that is to layout this activity. Can be null for default behaviour.public int getLayerIndex()
Activity
getLayerIndex in interface Activitypublic void setLayerIndex(int ix)
Activity
setLayerIndex in interface Activityix - The layer in which to layout and paint this activity.public int hashCode()