Class TooltipTableViewer

  • All Implemented Interfaces:
    IViewerToolTip, org.eclipse.jface.viewers.IInputProvider, org.eclipse.jface.viewers.IInputSelectionProvider, org.eclipse.jface.viewers.IPostSelectionProvider, org.eclipse.jface.viewers.ISelectionProvider

    public class TooltipTableViewer
    extends org.eclipse.jface.viewers.TableViewer
    implements IViewerToolTip
    The table viewer with the interface for tooltip implemented.
    Author:
    Christopher Mindus
    • 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 inherited from class org.eclipse.jface.viewers.Viewer

        WIDGET_DATA_KEY
    • Constructor Summary

      Constructors 
      ConstructorDescription
      TooltipTableViewer​(org.eclipse.swt.widgets.Composite parent, int style)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      org.eclipse.jface.viewers.ViewerRowgetViewerRow​(org.eclipse.swt.graphics.Point point)
      Returns the viewer row at the given widget-relative coordinates.
      org.eclipse.jface.viewers.ViewerRowgetViewerRowFromItem​(org.eclipse.swt.widgets.Widget item)
      Returns the viewer row for the given widget.
      • 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, internalCreateNewRowPart, refresh, refresh, remove, setSelection
      • Methods inherited from class org.eclipse.jface.viewers.AbstractTableViewer

        add, add, assertContentProviderType, clear, doFindInputItem, doUpdateItem, getColumnViewerOwner, getElementAt, getLabelProvider, getRawChildren, getSelectionFromWidget, handleDispose, hookControl, indexForElement, inputChanged, insert, internalRefresh, internalRefresh, remove, replace, reveal, setContentProvider, setItemCount, setSelectionToWidget
      • Methods inherited from class org.eclipse.jface.viewers.ColumnViewer

        applyEditorValue, cancelEditing, checkBusy, editElement, getCell, getCellEditors, getCellModifier, getColumnProperties, getColumnViewerEditor, getItem, getLabelProvider, hookEditingSupport, isBusy, isCellEditorActive, refresh, refresh, setBusy, setCellEditors, setCellModifier, setColumnProperties, setColumnViewerEditor, setLabelProvider, triggerEditorActivationEvent, update
      • Methods inherited from class org.eclipse.jface.viewers.StructuredViewer

        addDoubleClickListener, addDragSupport, addDropSupport, addFilter, addOpenListener, addPostSelectionChangedListener, assertElementsNotNull, associate, buildLabel, disassociate, equals, filter, findItem, findItems, fireDoubleClick, fireOpen, firePostSelectionChanged, getColorAndFontCollector, getComparator, getComparer, getFilteredChildren, getFilters, getRoot, getSelection, getSortedChildren, getSorter, getStructuredSelection, handleDoubleSelect, handleInvalidSelection, handleLabelProviderChanged, handleOpen, handlePostSelect, handleSelect, hasFilters, internalUpdate, mapElement, needsRefilter, preservingSelection, refresh, refresh, refreshItem, removeDoubleClickListener, removeFilter, removeOpenListener, removePostSelectionChangedListener, resetFilters, setComparator, setComparer, setFilters, setInput, setSelectionToWidget, setSorter, setUseHashlookup, testFindItem, testFindItems, unmapAllElements, unmapElement, unmapElement, update, updateItem, updateSelection, 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, fireSelectionChanged, 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
    • Constructor Detail

      • TooltipTableViewer

        public TooltipTableViewer​(org.eclipse.swt.widgets.Composite parent,
                                  int style)
        Constructor.
    • Method Detail

      • getViewerRow

        public org.eclipse.jface.viewers.ViewerRow getViewerRow​(org.eclipse.swt.graphics.Point point)
        Returns the viewer row at the given widget-relative coordinates. Overridden to make public. As it's for tooltip support this will work just fine.
        Specified by:
        getViewerRow in interface IViewerToolTip
        Overrides:
        getViewerRow in class org.eclipse.jface.viewers.ColumnViewer
        Parameters:
        point - The widget-relative coordinates of the viewer row.
        Returns:
        ViewerRow the row or null if no row is found at the given coordinates.
      • getViewerRowFromItem

        public org.eclipse.jface.viewers.ViewerRow getViewerRowFromItem​(org.eclipse.swt.widgets.Widget item)
        Returns the viewer row for the given widget.
        Overrides:
        getViewerRowFromItem in class org.eclipse.jface.viewers.TableViewer
        Returns:
        ViewerRow the row or null if no row is found for the given widget.