TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.common.ui.views
Class TableCellLabelProvider

java.lang.Object
  extended by org.eclipse.tptp.platform.common.ui.views.TableCellLabelProvider
Direct Known Subclasses:
TableCellLabelProvider

public abstract class TableCellLabelProvider
extends java.lang.Object

Extends TableCellLabelProvider with the methods to provide hover text content for a given cell element in a table.

Columns supporting the custom hover content is listed in IContextAttributes


Constructor Summary
TableCellLabelProvider()
           
 
Method Summary
abstract  java.lang.String getColumnHoverText(java.lang.Object element, java.lang.String columnID)
          Given a cell element and column ID of a table in table viewer, return a custom hover text string content for the table cell.
abstract  java.lang.String[] getSupportColumnKeys()
          Return an array of column ID supported by this provider.
 boolean isSupportColumn(java.lang.String columnID)
          Helper method to verify if a column key is supported by the provider
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableCellLabelProvider

public TableCellLabelProvider()
Method Detail

getColumnHoverText

public abstract java.lang.String getColumnHoverText(java.lang.Object element,
                                                    java.lang.String columnID)
Given a cell element and column ID of a table in table viewer, return a custom hover text string content for the table cell.

Parameters:
element - element of row selection in table
columnID - column ID as listed in IContextAttributes.
Returns:
hover text string content

getSupportColumnKeys

public abstract java.lang.String[] getSupportColumnKeys()
Return an array of column ID supported by this provider.

Returns:
String array of support column ID as listed in IContextAttributes.

isSupportColumn

public boolean isSupportColumn(java.lang.String columnID)
Helper method to verify if a column key is supported by the provider

Parameters:
columnID -
Returns:

TPTP 4.6.0 Platform Project
Public API Specification