| java.lang.Object org.eclipse.jface.viewers.ViewerColumn
All known Subclasses: org.eclipse.jface.viewers.TableViewerColumn, org.eclipse.jface.viewers.TreeViewerColumn,
ViewerColumn | abstract public class ViewerColumn (Code) | | 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 .
since: 3.3 |
Constructor Summary | |
protected | ViewerColumn(ColumnViewer viewer, Widget columnOwner) Create a new instance of the receiver at columnIndex. |
ViewerColumn | protected ViewerColumn(ColumnViewer viewer, Widget columnOwner)(Code) | | Create a new instance of the receiver at columnIndex.
Parameters: viewer - the viewer the column is part of Parameters: columnOwner - the widget owning the viewer in case the widget has no columnsthis could be the widget itself |
getLabelProvider | CellLabelProvider getLabelProvider()(Code) | | Return the label provider for the receiver.
ViewerLabelProvider |
handleDispose | protected void handleDispose()(Code) | | Disposes of the label provider (if set), unregisters the listener and
nulls the references to the label provider and editing support. This
method is called when the underlying widget is disposed. Subclasses may
extend but must call the super implementation.
|
refresh | void refresh(ViewerCell cell)(Code) | | Refresh the cell for the given columnIndex. NOTE:the
ViewerCell provided to this method is no longer valid after this
method returns. Do not cache the cell for future use.
Parameters: cell - ViewerCell |
setEditingSupport | public void setEditingSupport(EditingSupport editingSupport)(Code) | | Set the editing support. Subclasses may extend but must call the super
implementation.
Parameters: editingSupport - The EditingSupport to set. |
setLabelProvider | public void setLabelProvider(CellLabelProvider labelProvider)(Code) | | Set the label provider for the column. Subclasses may extend but must
call the super implementation.
Parameters: labelProvider - the new CellLabelProvider |
setLabelProvider | void setLabelProvider(CellLabelProvider labelProvider, boolean registerListener)(Code) | | Parameters: labelProvider - Parameters: registerListener - |
|
|