public static final class Activities.FindByIDActivityVisitor extends java.lang.Object implements Activities.HasCancelled, Activities.IlvActivityVisitor<Activities.HasCancelled>
Constructor and Description |
---|
Activities.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.IlvGanttChart chart,
Activities.HasCancelled state)
Visit an activity of the given chart and pass an instance of the 'state' as well.
|
public Activities.FindByIDActivityVisitor(java.lang.String id)
id
- public boolean isCancelled()
Activities.HasCancelled
isCancelled
in interface Activities.HasCancelled
public void visit(ilog.views.gantt.IlvActivity item, ilog.views.gantt.IlvGanttChart chart, Activities.HasCancelled state)
Activities.IlvActivityVisitor
Void
type.visit
in interface Activities.IlvActivityVisitor<Activities.HasCancelled>
item
- IlvActivity
to visitchart
- IlvGanttChart
that owns the itemstate
- optional stateful data that might be of interest to the visitorpublic void cancel()
Activities.HasCancelled
cancel
in interface Activities.HasCancelled
public ilog.views.gantt.IlvActivity getActivity()