Class TableView<T>

java.lang.Object
org.eclipse.jface.viewers.Viewer
org.eclipse.jface.viewers.ContentViewer
org.eclipse.jface.viewers.StructuredViewer
org.eclipse.jface.viewers.ColumnViewer
org.eclipse.jface.viewers.AbstractTableViewer
org.eclipse.jface.viewers.TableViewer
com.amalgamasimulation.desktop.ui.tables.Table<T>
com.amalgamasimulation.desktop.ui.views.TableView<T>
Type Parameters:
T -
All Implemented Interfaces:
com.amalgamasimulation.viewupdater.SimulationView, org.eclipse.jface.viewers.IInputProvider, org.eclipse.jface.viewers.IInputSelectionProvider, org.eclipse.jface.viewers.IPostSelectionProvider, org.eclipse.jface.viewers.ISelectionProvider

@Deprecated(forRemoval=true) public class TableView<T> extends Table<T>
Deprecated, for removal: This API element is subject to removal in a future version.
to be removed in AmalgamaPlatform 4.0
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jface.viewers.StructuredViewer

    org.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollector, org.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollectorWithProviders
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Fields inherited from class com.amalgamasimulation.desktop.ui.tables.Table

    columnViewAdapter, DEFAULT_TABLE_COLUMN_WIDTH, parent, selectionChangedConsumer

    Fields inherited from class org.eclipse.jface.viewers.Viewer

    WIDGET_DATA_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    TableView(org.eclipse.swt.widgets.Composite parent, boolean virtual, List<T> data)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    TableView(org.eclipse.swt.widgets.Composite parent, boolean virtual, List<T> data, boolean checkboxes)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    TableView(org.eclipse.swt.widgets.Composite parent, boolean virtual, List<T> data, boolean checkboxes, boolean syncUpdate)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    TableView(org.eclipse.swt.widgets.Composite parent, boolean virtual, List<T> data, int style)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    TableView(org.eclipse.swt.widgets.Composite parent, boolean virtual, List<T> data, int style, boolean checkboxes, boolean syncUpdate)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    TableView(org.eclipse.swt.widgets.Composite parent, List<T> data)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    TableView(org.eclipse.swt.widgets.Composite parent, List<T> data, boolean checkboxes)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    TableView(org.eclipse.swt.widgets.Composite parent, List<T> data, boolean checkboxes, boolean syncUpdate)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    TableView(org.eclipse.swt.widgets.Composite parent, List<T> data, int style)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    TableView(org.eclipse.swt.widgets.Composite parent, List<T> data, int style, boolean checkboxes, boolean syncUpdate)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addColumn(String name, int width, Function<T,E> extractor)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    addColumn(String name, int width, Function<T,E> extractor, BiFunction<T,E,String> labelExtractor)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    addColumn(String name, int width, Function<T,E> extractor, Function<E,String> labelExtractor)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    addColumn(String name, Function<T,E> extractor)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    <E> IEMFColumn<T,E,?>
    column(Function<T,E> extractor)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new column with the specified value extractor function.
    protected void
    createCheckboxColumn(String name, int width, ColumnViewAdapter<T> columnViewAdapter)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getEditingMenuItems(IColumn<T,?,?> column, T clickedElement)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class org.eclipse.jface.viewers.TableViewer

    createViewerEditor, doClear, doClearAll, doDeselectAll, doFindItem, doGetColumn, doGetColumnCount, doGetItem, doGetItemCount, doGetItems, doGetSelection, doGetSelectionIndices, doIndexOf, doRemove, doRemove, doRemoveAll, doResetItem, doSelect, doSetItemCount, doSetSelection, doSetSelection, doShowItem, doShowSelection, getControl, getItemAt, getTable, getViewerRowFromItem, internalCreateNewRowPart, refresh, refresh, remove, setSelection

    Methods inherited from class org.eclipse.jface.viewers.AbstractTableViewer

    add, add, assertContentProviderType, clear, contains, doFindInputItem, doUpdateItem, getColumnViewerOwner, getElementAt, getLabelProvider, getRawChildren, getSelectionFromWidget, handleDispose, hookControl, indexForElement, insert, internalRefresh, remove, replace, reveal, setContentProvider, setItemCount, setSelectionToWidget

    Methods inherited from class org.eclipse.jface.viewers.ColumnViewer

    applyEditorValue, cancelEditing, checkBusy, disassociate, editElement, firePostSelectionChanged, getCell, getCellEditors, getCellModifier, getColumnProperties, getColumnViewerEditor, getItem, getLabelProvider, getSortedChildren, getViewerRow, handleDoubleSelect, hookEditingSupport, isBusy, isCellEditorActive, isExpandableNode, refresh, refresh, setBusy, setCellEditors, setCellModifier, setColumnProperties, setColumnViewerEditor, setDisplayIncrementally, setLabelProvider, triggerEditorActivationEvent, update, updateSelection

    Methods inherited from class org.eclipse.jface.viewers.StructuredViewer

    addDoubleClickListener, addDragSupport, addDropSupport, addOpenListener, addPostSelectionChangedListener, assertElementsNotNull, associate, buildLabel, equals, filter, findItem, findItems, fireDoubleClick, fireOpen, getColorAndFontCollector, getComparator, getComparer, getFilteredChildren, getFilters, getRoot, getSelection, getSorter, getStructuredSelection, handleInvalidSelection, handleLabelProviderChanged, handleOpen, handlePostSelect, handleSelect, hasFilters, internalUpdate, mapElement, needsRefilter, preservingSelection, refresh, refresh, refreshItem, removeDoubleClickListener, removeOpenListener, removePostSelectionChangedListener, resetFilters, setComparator, setComparer, setFilters, setInput, setSelectionToWidget, setSorter, setUseHashlookup, testFindItem, testFindItems, unmapAllElements, unmapElement, unmapElement, update, updateItem, usingElementMap

    Methods inherited from class org.eclipse.jface.viewers.ContentViewer

    getContentProvider, getInput, labelProviderChanged

    Methods inherited from class org.eclipse.jface.viewers.Viewer

    addHelpListener, addSelectionChangedListener, fireHelpRequested, getData, handleHelpRequest, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider

    addSelectionChangedListener, removeSelectionChangedListener, setSelection
  • Field Details

    • editingInExcelManager

      protected EditingInExcelManager editingInExcelManager
      Deprecated, for removal: This API element is subject to removal in a future version.
    • loaderFromTXTAndCSVFile

      protected LoaderFromTXTAndCSVFile loaderFromTXTAndCSVFile
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • TableView

      public TableView(org.eclipse.swt.widgets.Composite parent, List<T> data)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TableView

      public TableView(org.eclipse.swt.widgets.Composite parent, boolean virtual, List<T> data)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TableView

      public TableView(org.eclipse.swt.widgets.Composite parent, List<T> data, boolean checkboxes)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TableView

      public TableView(org.eclipse.swt.widgets.Composite parent, boolean virtual, List<T> data, boolean checkboxes)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TableView

      public TableView(org.eclipse.swt.widgets.Composite parent, List<T> data, int style)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TableView

      public TableView(org.eclipse.swt.widgets.Composite parent, boolean virtual, List<T> data, int style)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TableView

      public TableView(org.eclipse.swt.widgets.Composite parent, List<T> data, boolean checkboxes, boolean syncUpdate)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TableView

      public TableView(org.eclipse.swt.widgets.Composite parent, List<T> data, int style, boolean checkboxes, boolean syncUpdate)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TableView

      public TableView(org.eclipse.swt.widgets.Composite parent, boolean virtual, List<T> data, boolean checkboxes, boolean syncUpdate)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TableView

      public TableView(org.eclipse.swt.widgets.Composite parent, boolean virtual, List<T> data, int style, boolean checkboxes, boolean syncUpdate)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • addColumn

      public <E> TableViewerColumnDescriptor<T,E> addColumn(String name, Function<T,E> extractor)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • addColumn

      public <E> TableViewerColumnDescriptor<T,E> addColumn(String name, int width, Function<T,E> extractor)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • addColumn

      public <E> TableViewerColumnDescriptor<T,E> addColumn(String name, int width, Function<T,E> extractor, Function<E,String> labelExtractor)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • addColumn

      public <E> TableViewerColumnDescriptor<T,E> addColumn(String name, int width, Function<T,E> extractor, BiFunction<T,E,String> labelExtractor)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getViewerColumnDescriptors

      public List<TableViewerColumnDescriptor<T,?>> getViewerColumnDescriptors()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getViewerColumnDescriptors in class Table<T>
    • createCheckboxColumn

      protected void createCheckboxColumn(String name, int width, ColumnViewAdapter<T> columnViewAdapter)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      createCheckboxColumn in class Table<T>
    • invalidateEditors

      protected void invalidateEditors()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      invalidateEditors in class Table<T>
    • getEditingMenuItems

      protected List<ColumnViewAdapter.MenuItemDescriptor> getEditingMenuItems(IColumn<T,?,?> column, T clickedElement)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getEditingMenuItems in class Table<T>
    • getEditingInExcelManager

      public EditingInExcelManager getEditingInExcelManager()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getLoaderFromTXTAndCSVFile

      public LoaderFromTXTAndCSVFile getLoaderFromTXTAndCSVFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • column

      public <E> IEMFColumn<T,E,?> column(Function<T,E> extractor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: Table
      Creates a new column with the specified value extractor function. The column is added to the first position
      Overrides:
      column in class Table<T>
      Type Parameters:
      E - the type of the column value
      Parameters:
      extractor - function that extracts the column value from a row object
      Returns:
      the created column descriptor for further configuration