public static class GanttModelUtil.SameTypeVisitor extends java.lang.Object implements GanttModelUtil.IlvActivityVisitor<GanttModelUtil.HasCancelled>, GanttModelUtil.HasCancelled, GanttModelUtil.IFilter<ilog.views.gantt.IlvActivity>
Constructor and Description |
---|
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.IlvGanttModel model,
GanttModelUtil.HasCancelled state)
Visit an activity of the given chart and pass an instance of the 'state' as well.
|
public SameTypeVisitor(java.util.List<java.lang.String> objectNames)
public boolean isCancelled()
GanttModelUtil.HasCancelled
isCancelled
in interface GanttModelUtil.HasCancelled
public void cancel()
GanttModelUtil.HasCancelled
cancel
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 boolean isValid()
public boolean canAccept(ilog.views.gantt.IlvActivity act)
canAccept
in interface GanttModelUtil.IFilter<ilog.views.gantt.IlvActivity>