public abstract class XViewerLabelProvider extends java.lang.Object implements org.eclipse.jface.viewers.ITableLabelProvider, org.eclipse.jface.viewers.ITableColorProvider, IXViewerLabelProvider
Constructor and Description |
---|
XViewerLabelProvider(XViewer viewer) |
Modifier and Type | Method and Description |
---|---|
void |
clearXViewerColumnIndexCache()
When columns get re-ordered, need to clear out this cache so indexing can be re-computed
|
org.eclipse.swt.graphics.Color |
getBackground(java.lang.Object element,
int columnIndex) |
org.eclipse.swt.graphics.Color |
getBackground(java.lang.Object element,
org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xCol,
int columnIndex) |
java.lang.Object |
getBackingData(java.lang.Object element,
org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xViewerColumn,
int columnIndex)
Returns the backing data object for operations like sorting
|
int |
getColumnGradient(java.lang.Object element,
org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xCol,
int columnIndex)
Return value between 0..100 and cell will show bar graph shading that portion of the cell
|
org.eclipse.swt.graphics.Image |
getColumnImage(java.lang.Object element,
int columnIndex) |
abstract org.eclipse.swt.graphics.Image |
getColumnImage(java.lang.Object element,
org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xCol,
int columnIndex) |
java.lang.String |
getColumnText(java.lang.Object element,
int columnIndex)
Returns the label text for the given column of the given element.
|
abstract java.lang.String |
getColumnText(java.lang.Object element,
org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xCol,
int columnIndex)
Returns the label text for the given column of the given element.
|
org.eclipse.swt.graphics.Color |
getForeground(java.lang.Object element,
int columnIndex) |
org.eclipse.swt.graphics.Color |
getForeground(java.lang.Object element,
org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xCol,
int columnIndex) |
org.eclipse.swt.graphics.Color |
getSearchBackground(java.lang.Object element,
int columnIndex) |
org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn |
getTreeColumnOffIndex(int columnIndex)
Returns XViewerColumn of the given index
|
public XViewerLabelProvider(XViewer viewer)
public org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn getTreeColumnOffIndex(int columnIndex)
IXViewerLabelProvider
getTreeColumnOffIndex
in interface IXViewerLabelProvider
public void clearXViewerColumnIndexCache()
IXViewerLabelProvider
clearXViewerColumnIndexCache
in interface IXViewerLabelProvider
public org.eclipse.swt.graphics.Image getColumnImage(java.lang.Object element, int columnIndex)
getColumnImage
in interface org.eclipse.jface.viewers.ITableLabelProvider
public java.lang.String getColumnText(java.lang.Object element, int columnIndex)
IXViewerLabelProvider
getColumnText
in interface org.eclipse.jface.viewers.ITableLabelProvider
getColumnText
in interface IXViewerLabelProvider
public org.eclipse.swt.graphics.Color getSearchBackground(java.lang.Object element, int columnIndex)
public org.eclipse.swt.graphics.Color getBackground(java.lang.Object element, int columnIndex)
getBackground
in interface org.eclipse.jface.viewers.ITableColorProvider
public org.eclipse.swt.graphics.Color getForeground(java.lang.Object element, int columnIndex)
getForeground
in interface org.eclipse.jface.viewers.ITableColorProvider
public org.eclipse.swt.graphics.Color getBackground(java.lang.Object element, org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xCol, int columnIndex)
public org.eclipse.swt.graphics.Color getForeground(java.lang.Object element, org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xCol, int columnIndex)
public abstract org.eclipse.swt.graphics.Image getColumnImage(java.lang.Object element, org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xCol, int columnIndex) throws java.lang.Exception
java.lang.Exception
public abstract java.lang.String getColumnText(java.lang.Object element, org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xCol, int columnIndex) throws java.lang.Exception
IXViewerLabelProvider
getColumnText
in interface IXViewerLabelProvider
java.lang.Exception
public java.lang.Object getBackingData(java.lang.Object element, org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xViewerColumn, int columnIndex) throws java.lang.Exception
getBackingData
in interface IXViewerLabelProvider
java.lang.Exception
public int getColumnGradient(java.lang.Object element, org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xCol, int columnIndex) throws java.lang.Exception
getColumnGradient
in interface IXViewerLabelProvider
java.lang.Exception