public class TableLabelProvider<T> extends ManagedLabelProvider implements ITableLabelProvider, ITableColorProvider, ITableFontProvider
Modifier and Type | Class and Description |
---|---|
static class |
TableLabelProvider.Column<T> |
Constructor and Description |
---|
TableLabelProvider() |
Modifier and Type | Method and Description |
---|---|
TableLabelProvider<T> |
addColumn(TableLabelProvider.Column<T> column) |
Color |
getBackground(Object element,
int columnIndex) |
TableLabelProvider.Column<T> |
getColumn(int columnIndex) |
Image |
getColumnImage(Object element,
int columnIndex) |
String |
getColumnText(Object element,
int columnIndex) |
Font |
getFont(Object element,
int columnIndex) |
Color |
getForeground(Object element,
int columnIndex) |
boolean |
isHeaderVisible() |
boolean |
isLinesVisible() |
TableLabelProvider.Column<T> |
removeColumn(int columnIndex) |
TableLabelProvider<T> |
setHeaderVisible(boolean headerVisible) |
TableLabelProvider<T> |
setLinesVisible(boolean linesVisible) |
TableLabelProvider<T> |
support(TableViewer tableViewer) |
createResourceManager, dispose, getResource, getResourceManager
getImage, getText
addListener, fireLabelProviderChanged, isLabelProperty, removeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, dispose, isLabelProperty, removeListener
public TableLabelProvider<T> addColumn(TableLabelProvider.Column<T> column)
public boolean isHeaderVisible()
public TableLabelProvider<T> setHeaderVisible(boolean headerVisible)
public boolean isLinesVisible()
public TableLabelProvider<T> setLinesVisible(boolean linesVisible)
public TableLabelProvider.Column<T> removeColumn(int columnIndex)
public TableLabelProvider.Column<T> getColumn(int columnIndex)
public String getColumnText(Object element, int columnIndex)
getColumnText
in interface ITableLabelProvider
public Image getColumnImage(Object element, int columnIndex)
getColumnImage
in interface ITableLabelProvider
public Color getForeground(Object element, int columnIndex)
getForeground
in interface ITableColorProvider
public Color getBackground(Object element, int columnIndex)
getBackground
in interface ITableColorProvider
public Font getFont(Object element, int columnIndex)
getFont
in interface ITableFontProvider
public TableLabelProvider<T> support(TableViewer tableViewer)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html