public static class Activities.SameTypeVisitor extends java.lang.Object implements Activities.IlvActivityVisitor<Activities.HasCancelled>, Activities.HasCancelled, Activities.IFilter<ilog.views.gantt.IlvActivity>
Constructor and Description |
---|
Activities.SameTypeVisitor(java.util.List<java.lang.String> objectNames)
Creates a SameTypeVisitor with a list of
objectnames to which to compare each
visisted item
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAccept(ilog.views.gantt.IlvActivity act) |
void |
cancel()
Cancel the visiting
|
boolean |
isCancelled()
Returns true if the visiting should stop
|
boolean |
isValid()
Returns true if each visited object was in the objectnames list
|
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.SameTypeVisitor(java.util.List<java.lang.String> objectNames)
public boolean isCancelled()
Activities.HasCancelled
isCancelled
in interface Activities.HasCancelled
public void cancel()
Activities.HasCancelled
cancel
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 boolean isValid()
public boolean canAccept(ilog.views.gantt.IlvActivity act)
canAccept
in interface Activities.IFilter<ilog.views.gantt.IlvActivity>