|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.viewers.ViewerColumn
public abstract class ViewerColumn
Instances of this class represent a column of a 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.
| Constructor Summary | |
|---|---|
protected |
ViewerColumn(ColumnViewer viewer,
Widget columnOwner)
Create a new instance of the receiver at columnIndex. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 itself| Method Detail |
|---|
public void setLabelProvider(CellLabelProvider labelProvider)
labelProvider - the new CellLabelProviderpublic 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()
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.