Class GridFooterRenderer

java.lang.Object
All Implemented Interfaces:
IInternalWidget, IRenderer
Direct Known Subclasses:
DefaultColumnFooterRenderer

public abstract class GridFooterRenderer
extends AbstractInternalWidget

NOTE: THIS WIDGET AND ITS API ARE STILL UNDER DEVELOPMENT. THIS IS A PRE-RELEASE ALPHA VERSION. USERS SHOULD EXPECT API CHANGES IN FUTURE VERSIONS.

The super class for all grid header renderers. Contains the properties specific to a grid header.
  • Field Details

  • Constructor Details

  • Method Details

    • getTextBounds

      public org.eclipse.swt.graphics.Rectangle getTextBounds​(java.lang.Object value, boolean preferred)
      Returns the bounds of the text in the cell. This is used when displaying in-place tooltips. If null is returned here, in-place tooltips will not be displayed. If the preferred argument is true then the returned bounds should be large enough to show the entire text. If preferred is false then the returned bounds should be be relative to the current bounds.
      Parameters:
      value - the object being rendered.
      preferred - true if the preferred width of the text should be returned.
      Returns:
      bounds of the text.
    • getTruncationStyle

      public int getTruncationStyle()
      Get the truncation style
      Returns:
      the truncation style.
    • setTruncationStyle

      public void setTruncationStyle​(int truncationStyle)
      Set the truncation style to use when cell content is too large.
      Parameters:
      truncationStyle -
      See Also:
      SWT.LEFT, SWT.CENTER, SWT.RIGHT