|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.command.AbstractCommand com.dlsc.flexgantt.command.layer.DefaultChangePercentageCommand
public class DefaultChangePercentageCommand
A command that will change the percentage complete value of a
timeline object. This command will only work for models that are instances of
DefaultGanttChartModel
and timeline objects that implement the
IActivityObject
interface.
IActivityObject.setPercentageComplete(double)
,
IEditActivityObjectPolicy.isPercentageChangeable(Object, Object,
com.dlsc.flexgantt.model.gantt.IGanttChartModel)
,
IEditActivityObjectPolicy.getChangePercentageCommand(Object, Object,
com.dlsc.flexgantt.model.gantt.IGanttChartModel, double)
,
Serialized FormConstructor Summary | |
---|---|
DefaultChangePercentageCommand(IActivityObject object,
DefaultGanttChartModel model,
double percentage)
Constructs a new command. |
Method Summary | |
---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command. |
IActivityObject |
getActivityObject()
Returns the activity object that was / will be modified. |
DefaultGanttChartModel |
getModel()
Returns the model to which the activity object belongs. |
double |
getNewPercentage()
Returns the new value that will be used for the percentage complete value. |
double |
getOldPercentage()
Returns the old percentage complete value. |
void |
undoCommand(IProgressMonitor monitor)
Undos the command. |
Methods inherited from class com.dlsc.flexgantt.command.AbstractCommand |
---|
getName, isRedoable, isRelevant, isUndoable, redoCommand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultChangePercentageCommand(IActivityObject object, DefaultGanttChartModel model, double percentage)
object
- the activity object that will be modifiedmodel
- the model to which the object belongspercentage
- the new percentage complete value (0 <= p <= 100)Method Detail |
---|
public void executeCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic void undoCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic IActivityObject getActivityObject()
public DefaultGanttChartModel getModel()
public double getNewPercentage()
public double getOldPercentage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |