public class TableComponentContentProvider extends java.lang.Object implements org.eclipse.jface.viewers.IStructuredContentProvider, IVizUpdateableListener
IStructuredContentProvider
for ICE
TableComponent
s. It automatically registers for updates from the
input TableComponent
and refreshes the associated JFace
Viewer
when the TableComponent
changes.component
Constructor and Description |
---|
TableComponentContentProvider() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
java.lang.Object[] |
getElements(java.lang.Object inputElement)
For the root element (the
tableComponent ), this method returns
the rows in the table. |
void |
inputChanged(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object oldInput,
java.lang.Object newInput)
This method expects a new
tableComponent as input. |
void |
update(IVizUpdateable component)
This listens for changes to the
tableComponent and updates the
viewer as necessary. |
public void dispose()
dispose
in interface org.eclipse.jface.viewers.IContentProvider
public java.lang.Object[] getElements(java.lang.Object inputElement)
tableComponent
), this method returns
the rows in the table. For each row, the Entry
instances in the
row are returned.
All other input elements are ignored.
getElements
in interface org.eclipse.jface.viewers.IStructuredContentProvider
public void inputChanged(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object oldInput, java.lang.Object newInput)
tableComponent
as input. This content
provider will register for updates from the TableComponent
and
update the viewer
when the data model changes.inputChanged
in interface org.eclipse.jface.viewers.IContentProvider
public void update(IVizUpdateable component)
tableComponent
and updates the
viewer
as necessary.update
in interface IVizUpdateableListener
component
- The component that was updated in some way.