Interface TableComboRenderer

All Known Implementing Classes:
DefaultTableComboRenderer, TableComboRendererAdapter

public interface TableComboRenderer
Renderer used to display the "text" part of the TableCombo widget
  • Method Summary

    Modifier and Type Method Description
    org.eclipse.swt.graphics.Color getBackground​(int selectionIndex)
    Returns the background color of the given element at position selectionIndex.
    org.eclipse.swt.graphics.Font getFont​(int selectionIndex)
    Returns the font of the given element at position selectionIndex.
    org.eclipse.swt.graphics.Color getForeground​(int selectionIndex)
    Returns the foreground color of the given element at position selectionIndex.
    org.eclipse.swt.graphics.Image getImage​(int selectionIndex)
    Returns the image of the given element at position selectionIndex.
    java.lang.String getLabel​(int selectionIndex)
    Returns the text of the given element at position selectionIndex.
  • Method Details

    • getLabel

      java.lang.String getLabel​(int selectionIndex)
      Returns the text of the given element at position selectionIndex.
      Parameters:
      selectionIndex - index of the selected element
      Returns:
      the text
    • getImage

      org.eclipse.swt.graphics.Image getImage​(int selectionIndex)
      Returns the image of the given element at position selectionIndex.
      Parameters:
      selectionIndex - index of the selected element
      Returns:
      the image (or null if there is no image)
    • getBackground

      org.eclipse.swt.graphics.Color getBackground​(int selectionIndex)
      Returns the background color of the given element at position selectionIndex.
      Parameters:
      selectionIndex - index of the selected element
      Returns:
      the background color (or null if one wants to keep the default color)
    • getForeground

      org.eclipse.swt.graphics.Color getForeground​(int selectionIndex)
      Returns the foreground color of the given element at position selectionIndex.
      Parameters:
      selectionIndex - index of the selected element *
      Returns:
      the foreground color (or null if one wants to keep the default color)
    • getFont

      org.eclipse.swt.graphics.Font getFont​(int selectionIndex)
      Returns the font of the given element at position selectionIndex.
      Parameters:
      selectionIndex - index of the selected element
      Returns:
      the font (or null if one wants to keep the default font)