public abstract class ViewData extends java.lang.Object implements IView
Data
object.Modifier and Type | Field and Description |
---|---|
protected Controller |
controller
TODO
|
protected Model |
model
TODO
|
protected ComponentDataTable |
table
TODO
|
Constructor and Description |
---|
ViewData(org.eclipse.swt.widgets.Composite parent,
Controller controller,
java.lang.String title)
Creates a new data view.
|
Modifier and Type | Method and Description |
---|---|
protected void |
actionCellSelected(org.eclipse.nebula.widgets.nattable.selection.event.CellSelectionEvent arg1)
Cell selection event.
|
protected void |
actionColumnSelected(org.eclipse.nebula.widgets.nattable.selection.event.ColumnSelectionEvent arg1)
Column selection event.
|
protected abstract void |
actionSort()
Called when the sort button is pressed.
|
void |
addScrollBarListener(org.eclipse.swt.widgets.Listener listener)
Add a scrollbar listener to this view.
|
void |
dispose()
Disposes the view.
|
protected void |
enableSorting()
Enable sorting.
|
protected abstract DataDefinition |
getDefinition()
Returns the data definition.
|
protected abstract DataHandle |
getHandle()
Returns the data definition.
|
org.eclipse.nebula.widgets.nattable.viewport.ViewportLayer |
getViewportLayer()
Returns the NatTable viewport layer.
|
void |
reset()
Resets the view.
|
void |
update(ModelEvent event)
Updates the view.
|
protected void |
updateHeaderImage(int index,
AttributeType type)
Updates the header image in the table.
|
protected final ComponentDataTable table
protected final Controller controller
protected Model model
public ViewData(org.eclipse.swt.widgets.Composite parent, Controller controller, java.lang.String title)
parent
- controller
- title
- public void addScrollBarListener(org.eclipse.swt.widgets.Listener listener)
listener
- public void dispose()
IView
public org.eclipse.nebula.widgets.nattable.viewport.ViewportLayer getViewportLayer()
public void reset()
IView
public void update(ModelEvent event)
IView
protected void actionCellSelected(org.eclipse.nebula.widgets.nattable.selection.event.CellSelectionEvent arg1)
arg1
- protected void actionColumnSelected(org.eclipse.nebula.widgets.nattable.selection.event.ColumnSelectionEvent arg1)
arg1
- protected abstract void actionSort()
protected void enableSorting()
protected abstract DataDefinition getDefinition()
protected abstract DataHandle getHandle()
protected void updateHeaderImage(int index, AttributeType type)
index
- type
-