T - the type of the wrapped user objectpublic class DefaultActivityObject<T> extends DefaultTimelineObject<T> implements IActivityObject
IEditActivityObjectPolicy| Constructor and Description |
|---|
DefaultActivityObject()
Constructs a new activity object with an undefined time span, no name and
an initial work complete percentage of zero.
|
DefaultActivityObject(double percentageComplete)
Constructs a new activity object with an undefined time span.
|
DefaultActivityObject(ITimeSpan timeSpan)
Constructs a new activity object.
|
DefaultActivityObject(ITimeSpan timeSpan,
double percentageComplete)
Constructs a new activity object.
|
DefaultActivityObject(String name)
Constructs a new activity object with an undefined time span and a
percentage complete value of zero.
|
DefaultActivityObject(String name,
double percentageComplete)
Constructs a new activity object with an undefined time span.
|
DefaultActivityObject(String name,
ITimeSpan timeSpan)
Constructs a new activity object.
|
DefaultActivityObject(String name,
ITimeSpan timeSpan,
double percentageComplete)
Constructs a new activity object.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getPercentageComplete()
Returns the percentage complete value of the activity.
|
boolean |
isPercentageChangeable()
Returns TRUE if the percentage complete value can be edited.
|
void |
setPercentageChangeable(boolean changeable)
Specifies whether or not the user will be allowed to interactively edit
the percentage complete value.
|
void |
setPercentageComplete(double p)
Changes the percentage complete value of the activity.
|
addChild, compareTo, getChildren, getDragActions, getLabel, getLineIndex, getPopupObject, getPopupTitleObject, getStatus, getTimeSpan, getUserObject, isDeletable, isDurationChangeable, isInPlaceEditable, isParent, isSelectable, isStartTimeChangeable, removeChild, setChildren, setChildren, setDeletable, setDragActions, setDurationChangeable, setInPlaceEditable, setLabel, setLineIndex, setPopupObject, setPopupTitleObject, setSelectable, setStartTimeChangeable, setStatus, setTimeSpan, setUserObject, toStringgetProperty, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildren, getDragActions, getLabel, getLineIndex, getPopupObject, getPopupTitleObject, getStatus, getTimeSpan, isDeletable, isDurationChangeable, isInPlaceEditable, isParent, isSelectable, isStartTimeChangeable, setTimeSpangetProperty, setPropertycompareTopublic DefaultActivityObject(String name, ITimeSpan timeSpan, double percentageComplete)
name - the name of the activitytimeSpan - the time span occupied by the activitypercentageComplete - the completeness expressed as a percentage valuepublic DefaultActivityObject(String name, ITimeSpan timeSpan)
name - the name of the activitytimeSpan - the time span occupied by the activitypublic DefaultActivityObject(String name, double percentageComplete)
name - the name of the activitypercentageComplete - the completeness expressed as a percentage valueTimeSpan.UNDEFINEDpublic DefaultActivityObject(String name)
name - the name of the activityTimeSpan.UNDEFINEDpublic DefaultActivityObject(ITimeSpan timeSpan, double percentageComplete)
timeSpan - the time span occupied by the activitypercentageComplete - the amount of work completedpublic DefaultActivityObject(ITimeSpan timeSpan)
timeSpan - the time span occupied by the activitypublic DefaultActivityObject(double percentageComplete)
percentageComplete - the amount of work completedTimeSpan.UNDEFINEDpublic DefaultActivityObject()
TimeSpan.UNDEFINEDpublic double getPercentageComplete()
IActivityObjectgetPercentageComplete in interface IActivityObjectIActivityObject.setPercentageComplete(double)public void setPercentageComplete(double p)
IActivityObjectsetPercentageComplete in interface IActivityObjectp - the new percnetage complete valueIActivityObject.getPercentageComplete()public void setPercentageChangeable(boolean changeable)
changeable - if TRUE the user can edit the percentage completepublic boolean isPercentageChangeable()
IActivityObjectisPercentageChangeable in interface IActivityObjectIEditActivityObjectPolicy.isPercentageChangeable(TimelineObjectPath,
IGanttChartModel)Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.