| org.eclipse.jface.viewers.BaseLabelProvider org.eclipse.jface.viewers.CellLabelProvider org.eclipse.jface.viewers.OwnerDrawLabelProvider
OwnerDrawLabelProvider | abstract public class OwnerDrawLabelProvider extends CellLabelProvider (Code) | | OwnerDrawLabelProvider is an abstract implementation of a label provider that
handles custom draw.
This class is intended to be subclassed by implementors.
since: 3.3 |
Constructor Summary | |
public | OwnerDrawLabelProvider() Create a new instance of the receiver based on a column viewer. |
Method Summary | |
protected void | erase(Event event, Object element) Handle the erase event. | abstract protected void | measure(Event event, Object element) Handle the measure event. | abstract protected void | paint(Event event, Object element) Handle the paint event. | public static void | setUpOwnerDraw(ColumnViewer viewer) Set up the owner draw callbacks for the viewer. | public void | update(ViewerCell cell) |
OwnerDrawLabelProvider | public OwnerDrawLabelProvider()(Code) | | Create a new instance of the receiver based on a column viewer.
|
erase | protected void erase(Event event, Object element)(Code) | | Handle the erase event. The default implementation colors the background
of selected areas with
SWT.COLOR_LIST_SELECTION and foregrounds
with
SWT.COLOR_LIST_SELECTION_TEXT Parameters: event - the erase event Parameters: element - the model object See Also: SWT.EraseItem See Also: SWT.COLOR_LIST_SELECTION See Also: SWT.COLOR_LIST_SELECTION_TEXT |
measure | abstract protected void measure(Event event, Object element)(Code) | | Handle the measure event.
Parameters: event - the measure event Parameters: element - the model element See Also: SWT.MeasureItem |
paint | abstract protected void paint(Event event, Object element)(Code) | | Handle the paint event.
Parameters: event - the paint event Parameters: element - the model element See Also: SWT.PaintItem |
setUpOwnerDraw | public static void setUpOwnerDraw(ColumnViewer viewer)(Code) | | Set up the owner draw callbacks for the viewer.
Parameters: viewer - the viewer the owner draw is set up |
|
|