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