public class IlvVerticalDisplayController.ResourceAdapter extends Object
ResourceAdapter
can adapt between a vertical controller and
the resource 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(ResourceMovedEvent event)
Invoked through the event demultiplexer when a resource has been moved
within the data model.
|
void |
inform(ResourcesInsertedEvent event)
Invoked through the event demultiplexer when resources have been
inserted into the data model.
|
void |
inform(ResourcesRemovedEvent event)
Invoked through the event demultiplexer when resources have been removed
from 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(ResourcesInsertedEvent event)
event
- The event.public void inform(ResourcesRemovedEvent event)
event
- The event.public void inform(ResourceMovedEvent event)
event
- The event.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.