All Implemented Interfaces:
IInputProvider, IInputSelectionProvider, IPostSelectionProvider, ISelectionProvider
Direct Known Subclasses:
LayersTable, LegendTableViewer, ObjectPropertiesTableViewer, ObjectsTableViewer, SeriesAdditionTableViewer, SeriesTableViewer

public abstract class BaseTableViewer extends TableViewer
Abstract class for tables construction.
  • Field Details

  • Constructor Details

    • BaseTableViewer

      public BaseTableViewer(org.eclipse.swt.widgets.Composite parent, IGeographicalSchemaPresenter presenter)
      Creates new instance of BaseTableViewer.
      Parameters:
      parent - parent composite, cannot be null
      presenter - application presenter, cannot be null
    • BaseTableViewer

      public BaseTableViewer(org.eclipse.swt.widgets.Composite parent, IGeographicalSchemaPresenter presenter, int style)
      Creates new instance of BaseTableViewer.
      Parameters:
      parent - parent composite, cannot be null
      presenter - application presenter, cannot be null
      style - style to apply to the table
  • Method Details

    • setTableInput

      public void setTableInput(Object input)
      Sets table input.
      Parameters:
      input - serializable object, can be null
    • getFocusedColumnIndex

      public int getFocusedColumnIndex()
      Gets focused column index.
      Returns:
      column index, can be null
    • getFocusedRowIndex

      public int getFocusedRowIndex()
      Gets focused row index.
      Returns:
      row index, can be null
    • init

      public void init(List<String> columnNames)
      Inits table with column names.
      Parameters:
      columnsNames - table column names, can be null
    • getColumnNames

      public List<String> getColumnNames()
      Gets table column names.
      Returns:
      string list of column names, can be null
    • setTableProviders

      protected abstract void setTableProviders()
      Sets providers for the table.
    • customActivation

      protected abstract boolean customActivation(ColumnViewerEditorActivationEvent event)
      Adds custom editor activation to the table.
      Parameters:
      event - activation event ColumnViewerEditorActivationEvent, cannot be null
      Returns:
      should editor be activated
    • inputChanged

      protected void inputChanged(Object input, Object oldInput)
      Overrides:
      inputChanged in class AbstractTableViewer