public abstract class ViewerColumn extends Object
ColumnViewer
. Label
providers and editing support can be configured for each column separately.
Concrete subclasses of ColumnViewer
should implement a matching
concrete subclass of ViewerColumn
.Modifier | Constructor and Description |
---|---|
protected |
ViewerColumn(ColumnViewer viewer,
Widget columnOwner)
Create a new instance of the receiver at columnIndex.
|
Modifier and Type | Method and Description |
---|---|
ColumnViewer |
getViewer()
Returns the viewer of this viewer column.
|
protected void |
handleDispose()
Disposes of the label provider (if set), unregisters the listener and
nulls the references to the label provider and editing support.
|
void |
setEditingSupport(EditingSupport editingSupport)
Set the editing support.
|
void |
setLabelProvider(CellLabelProvider labelProvider)
Set the label provider for the column.
|
protected ViewerColumn(ColumnViewer viewer, Widget columnOwner)
viewer
- the viewer the column is part ofcolumnOwner
- the widget owning the viewer in case the widget has no columns
this could be the widget itselfpublic void setLabelProvider(CellLabelProvider labelProvider)
labelProvider
- the new CellLabelProvider
public void setEditingSupport(EditingSupport editingSupport)
Users setting up an editable TreeViewer
or TableViewer
with more than 1 column have
to pass the SWT.FULL_SELECTION style bit when creating the viewer
editingSupport
- The EditingSupport
to set.protected void handleDispose()
public ColumnViewer getViewer()
Copyright (c) 2000, 2013 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.