public static final class GanttModelUtil.FindByIDActivityVisitor extends java.lang.Object implements GanttModelUtil.HasCancelled, GanttModelUtil.IlvActivityVisitor<GanttModelUtil.HasCancelled>
Constructor and Description |
---|
FindByIDActivityVisitor(java.lang.String id)
Creates a new Visitor that will find an activity based on its ID
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the visiting
|
ilog.views.gantt.IlvActivity |
getActivity()
Returns the Activity for the given ID, or null, if it was not found.
|
boolean |
isCancelled()
Returns true if the visiting should stop
|
void |
visit(ilog.views.gantt.IlvActivity item,
ilog.views.gantt.IlvGanttModel model,
GanttModelUtil.HasCancelled state)
Visit an activity of the given chart and pass an instance of the 'state' as well.
|
public FindByIDActivityVisitor(java.lang.String id)
id
- public boolean isCancelled()
GanttModelUtil.HasCancelled
isCancelled
in interface GanttModelUtil.HasCancelled
public void visit(ilog.views.gantt.IlvActivity item, ilog.views.gantt.IlvGanttModel model, GanttModelUtil.HasCancelled state)
GanttModelUtil.IlvActivityVisitor
Void
type.visit
in interface GanttModelUtil.IlvActivityVisitor<GanttModelUtil.HasCancelled>
item
- IlvActivity
to visitmodel
- IlvGanttModel
that owns the itemstate
- optional stateful data that might be of interest to the visitorpublic void cancel()
GanttModelUtil.HasCancelled
cancel
in interface GanttModelUtil.HasCancelled
public ilog.views.gantt.IlvActivity getActivity()