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, toString
getProperty, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren, getDragActions, getLabel, getLineIndex, getPopupObject, getPopupTitleObject, getStatus, getTimeSpan, isDeletable, isDurationChangeable, isInPlaceEditable, isParent, isSelectable, isStartTimeChangeable, setTimeSpan
getProperty, setProperty
compareTo
public 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.UNDEFINED
public DefaultActivityObject(String name)
name
- the name of the activityTimeSpan.UNDEFINED
public 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.UNDEFINED
public DefaultActivityObject()
TimeSpan.UNDEFINED
public double getPercentageComplete()
IActivityObject
getPercentageComplete
in interface IActivityObject
IActivityObject.setPercentageComplete(double)
public void setPercentageComplete(double p)
IActivityObject
setPercentageComplete
in interface IActivityObject
p
- the new percnetage complete valueIActivityObject.getPercentageComplete()
public void setPercentageChangeable(boolean changeable)
changeable
- if TRUE the user can edit the percentage completepublic boolean isPercentageChangeable()
IActivityObject
isPercentageChangeable
in interface IActivityObject
IEditActivityObjectPolicy.isPercentageChangeable(TimelineObjectPath,
IGanttChartModel)
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.