Class RichTextCellLabelProvider<T>

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.viewers.BaseLabelProvider
org.eclipse.jface.viewers.CellLabelProvider
org.eclipse.jface.viewers.OwnerDrawLabelProvider
org.eclipse.jface.viewers.StyledCellLabelProvider
org.eclipse.nebula.widgets.richtext.RichTextCellLabelProvider<T>
All Implemented Interfaces:
org.eclipse.jface.viewers.IBaseLabelProvider, org.eclipse.jface.viewers.IToolTipProvider

public abstract class RichTextCellLabelProvider<T>
extends org.eclipse.jface.viewers.StyledCellLabelProvider
See Also:
Custom Drawing Table and Tree Items
  • Field Summary

    Fields 
    Modifier and Type Field Description
    (package private) int preferredWidth  

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

    COLORS_ON_SELECTION, NO_FOCUS
  • Constructor Summary

    Constructors 
    Constructor Description
    RichTextCellLabelProvider​(org.eclipse.swt.widgets.Control viewerControl)  
    RichTextCellLabelProvider​(org.eclipse.swt.widgets.Control viewerControl, boolean wordWrap)  
    RichTextCellLabelProvider​(org.eclipse.swt.widgets.Control viewerControl, int leftRightMargin, boolean wordWrap)  
    RichTextCellLabelProvider​(org.eclipse.swt.widgets.Control viewerControl, int leftRightMargin, boolean wordWrap, java.lang.String wordSplitRegex)  
  • Method Summary

    Modifier and Type Method Description
    abstract java.lang.String getRichText​(T object)  
    protected java.lang.String getText​(T object)
    Null-safe method to return the text that should be shown.
    void update​(org.eclipse.jface.viewers.ViewerCell cell)  

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

    dispose, erase, getColumn, getViewer, initialize, isOwnerDrawEnabled, measure, paint, prepareStyleRange, setOwnerDrawEnabled, styleDecoratedString

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

    dispose, initialize, setOwnerDrawEnabled, setUpOwnerDraw

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

    getToolTipBackgroundColor, getToolTipDisplayDelayTime, getToolTipFont, getToolTipForegroundColor, getToolTipImage, getToolTipShift, getToolTipStyle, getToolTipText, getToolTipTimeDisplayed, useNativeToolTip

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

    addListener, fireLabelProviderChanged, isLabelProperty, removeListener

    Methods inherited from class org.eclipse.core.commands.common.EventManager

    addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • RichTextCellLabelProvider

      public RichTextCellLabelProvider​(org.eclipse.swt.widgets.Control viewerControl)
    • RichTextCellLabelProvider

      public RichTextCellLabelProvider​(org.eclipse.swt.widgets.Control viewerControl, boolean wordWrap)
    • RichTextCellLabelProvider

      public RichTextCellLabelProvider​(org.eclipse.swt.widgets.Control viewerControl, int leftRightMargin, boolean wordWrap)
    • RichTextCellLabelProvider

      public RichTextCellLabelProvider​(org.eclipse.swt.widgets.Control viewerControl, int leftRightMargin, boolean wordWrap, java.lang.String wordSplitRegex)
      Since:
      1.3.0
  • Method Details

    • update

      public void update​(org.eclipse.jface.viewers.ViewerCell cell)
      Overrides:
      update in class org.eclipse.jface.viewers.StyledCellLabelProvider
    • getRichText

      public abstract java.lang.String getRichText​(T object)
    • getText

      protected java.lang.String getText​(T object)
      Null-safe method to return the text that should be shown.
      Parameters:
      object - The value object to get the text to show from.
      Returns:
      The text to render or an empty string if the given object is null