public class DefaultEditActivityObjectPolicy extends AbstractPolicy implements IEditActivityObjectPolicy
IEditActivityObjectPolicy
.Constructor and Description |
---|
DefaultEditActivityObjectPolicy() |
Modifier and Type | Method and Description |
---|---|
ICommand |
getChangePercentageCommand(TimelineObjectPath path,
IGanttChartModel model,
double percentage)
Returns a command object that will perform the actual change of the
percentage complete value.
|
boolean |
isPercentageChangeable(TimelineObjectPath path,
IGanttChartModel model)
Decides whether or not the percentage complete value of the given
activity object can be edited.
|
assertClass
public boolean isPercentageChangeable(TimelineObjectPath path, IGanttChartModel model)
IEditActivityObjectPolicy
isPercentageChangeable
in interface IEditActivityObjectPolicy
path
- the path to the activity object that gets checked for its
editing abilitymodel
- the data source of the tree node and the activity objectpublic ICommand getChangePercentageCommand(TimelineObjectPath path, IGanttChartModel model, double percentage)
IEditActivityObjectPolicy
getChangePercentageCommand
in interface IEditActivityObjectPolicy
path
- the path to the activity object that gets checked for its
editing abilitymodel
- the data source of the tree node and the activity objectCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.