public class IlvVerticalDisplayController.ActivityAdapter extends Object
ActivityAdapter can adapt between a vertical controller and
the activity tree of a Gantt data model. This class is part of
IlvVerticalDisplayController's internal implementation. It is
only made public because the reflection technique used by the event
demultiplexer during event dispatching requires it.| Modifier and Type | Field and Description |
|---|---|
protected IlvEventDemultiplexer |
adapterDemux
The adapter's demultiplexer for all events received from the Gantt
configuration.
|
| Modifier and Type | Method and Description |
|---|---|
protected IlvHierarchyNode |
getRootNode(IlvGanttModel ganttModel)
Returns the root node of the specified data model or
null if
the data model has no nodes. |
void |
inform(ActivitiesInsertedEvent event)
Invoked through the event demultiplexer when activities have been
inserted into the data model.
|
void |
inform(ActivitiesRemovedEvent event)
Invoked through the event demultiplexer when activities have been
removed from the data model.
|
void |
inform(ActivityMovedEvent event)
Invoked through the event demultiplexer when an activity has been moved
within the data model.
|
protected void |
subscribeToDataModelEvents()
Subscribes the adapter to receive data model nodes inserted/removed/moved
events from the Gantt configuration.
|
protected void |
unsubscribeToDataModelEvents()
Unsubscribes the adapter so that it no longer receives data model events
from the Gantt configuration.
|
protected IlvEventDemultiplexer adapterDemux
protected IlvHierarchyNode getRootNode(IlvGanttModel ganttModel)
null if
the data model has no nodes.ganttModel - The data model.protected void subscribeToDataModelEvents()
protected void unsubscribeToDataModelEvents()
public void inform(ActivitiesInsertedEvent event)
event - The event.public void inform(ActivitiesRemovedEvent event)
event - The event.public void inform(ActivityMovedEvent event)
event - The event.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.