Class CheckboxTableViewerEx

All Implemented Interfaces:
IViewerToolTip, ICheckable, IInputProvider, IInputSelectionProvider, IPostSelectionProvider, ISelectionProvider

public class CheckboxTableViewerEx extends CheckboxTableViewer implements IViewerToolTip
Checkbox table viewer with tooltip support.
Author:
Christopher Mindus
  • Constructor Details

    • CheckboxTableViewerEx

      public CheckboxTableViewerEx(Table table, GProp<?>[] props)
      Creates the checkbox table viewer for a table, initialized with the content, label and tooltip provider for properties, then input set to the properties.
      Parameters:
      table - The table.
      props - The properties input.
  • Method Details

    • getViewerRow

      public ViewerRow getViewerRow(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 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.
    • setInput

      public Object[] setInput(GProp<?>[] props)
      Sets the input with properties.
    • getCheckedProps

      public GProp<?>[] getCheckedProps()
      Gets the checked properties from the CheckboxTableViewer.