public class ConstraintRemovedEvent extends EventObject implements ConstraintEvent
ConstraintRemovedEvent
is used to notify
ConstraintListener
s
when a constraint has been removed from an IlvGanttModel
.source
Constructor and Description |
---|
ConstraintRemovedEvent(IlvGanttModel model,
IlvConstraint constraint)
Constructs a new
ConstraintRemovedEvent generated by the
specified data model that can be used to notify listeners when a constraint
has been removed from a Gantt data model. |
ConstraintRemovedEvent(IlvGanttModel model,
IlvConstraint constraint,
boolean removingActivity)
Constructs a new
ConstraintRemovedEvent generated by the
specified data model that can be used to notify listeners when a constraint
has been removed from a Gantt data model. |
Modifier and Type | Method and Description |
---|---|
IlvConstraint |
getConstraint()
Returns the constraint that was removed.
|
IlvGanttModel |
getGanttModel()
Returns the data model where the event originated.
|
boolean |
isRemovingActivity()
Returns whether the constraint was removed as the side effect of removing
an activity from the data model.
|
getSource, toString
public ConstraintRemovedEvent(IlvGanttModel model, IlvConstraint constraint, boolean removingActivity)
ConstraintRemovedEvent
generated by the
specified data model that can be used to notify listeners when a constraint
has been removed from a Gantt data model.model
- The data model where the event originated.constraint
- The constraint that was removed from model.removingActivity
- Indicates whether the constraint was removed as the
side effect of removing an activity from the data model. This flag should
be set to true
when constraints are removed by the
IlvGanttModel.setRootActivity(ilog.views.gantt.IlvActivity)
,
IlvGanttModel.removeActivity(ilog.views.gantt.IlvActivity)
, or
IlvGanttModel.removeActivity(ilog.views.gantt.IlvActivity,int)
methods. It should be set to false
at all other times.public ConstraintRemovedEvent(IlvGanttModel model, IlvConstraint constraint)
ConstraintRemovedEvent
generated by the
specified data model that can be used to notify listeners when a constraint
has been removed from a Gantt data model. The event indicates that the
constraint was not removed as a side effect of an activity removal.model
- The data model where the event originated.constraint
- The constraint that was removed from model.public IlvGanttModel getGanttModel()
IlvGanttModel
where the event originated.public IlvConstraint getConstraint()
getConstraint
in interface ConstraintEvent
IlvConstraint
that was removed.public boolean isRemovingActivity()
true
if the
constraint was removed by the
IlvGanttModel.setRootActivity(ilog.views.gantt.IlvActivity)
,
IlvGanttModel.removeActivity(ilog.views.gantt.IlvActivity)
, or
IlvGanttModel.removeActivity(ilog.views.gantt.IlvActivity,int)
methods. The value will be false
at all other times.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.