public class ColumnDescriptionImpl extends Object implements TableViewerSWTCustomization.ColumnDescription
TableViewerSWTCustomization.ColumnDescription.NO_WEIGHT| Constructor and Description |
|---|
ColumnDescriptionImpl(boolean resizeable,
boolean moveable,
int styleBits,
int weight,
int minWidth,
org.eclipse.core.databinding.observable.value.IObservableValue columnText,
org.eclipse.core.databinding.observable.value.IObservableValue tooltipText,
CellLabelProviderFactory labelProvider,
EditingSupportCreator editingSupport,
org.eclipse.swt.graphics.Image image,
Map<String,Object> data)
Constructs a new
TableViewerSWTCustomization.ColumnDescription. |
| Modifier and Type | Method and Description |
|---|---|
Optional<org.eclipse.jface.viewers.EditingSupport> |
createEditingSupport(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
Called to setup the
EditingSupport for the viewer. |
org.eclipse.jface.viewers.CellLabelProvider |
createLabelProvider(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
The cell label provider which will be set on the column.
|
Optional<org.eclipse.swt.graphics.Image> |
getColumnImage()
The image of the column.
|
org.eclipse.core.databinding.observable.value.IObservableValue |
getColumnText()
The header text for the column.
|
org.eclipse.core.databinding.observable.value.IObservableValue |
getColumnTooltip()
The column header tooltip text.
|
Map<String,Object> |
getData()
Get the underlying data map.
|
Object |
getData(String key)
Get an arbitrary element from the data map.
|
int |
getMinWidth()
The minimal width of the column.
|
int |
getStyleBits()
The SWT style bits which will be used to create the column.
|
int |
getWeight()
The weight of the column.
|
boolean |
isMoveable()
true if moveable, false otherwise. |
boolean |
isResizeable()
true if resizeable, false otherwise. |
void |
setData(Map<String,Object> data)
Add the contents of the given map to the data map.
|
public ColumnDescriptionImpl(boolean resizeable,
boolean moveable,
int styleBits,
int weight,
int minWidth,
org.eclipse.core.databinding.observable.value.IObservableValue columnText,
org.eclipse.core.databinding.observable.value.IObservableValue tooltipText,
CellLabelProviderFactory labelProvider,
EditingSupportCreator editingSupport,
org.eclipse.swt.graphics.Image image,
Map<String,Object> data)
TableViewerSWTCustomization.ColumnDescription.resizeable - resizeablemoveable - moveablestyleBits - styleBitsweight - weightminWidth - minWidthcolumnText - columnTexttooltipText - tooltipTextlabelProvider - labelProvidereditingSupport - editingSupport. May be null to indicate that there is no editing supportpublic boolean isResizeable()
TableViewerSWTCustomization.ColumnDescriptiontrue if resizeable, false otherwise.isResizeable in interface TableViewerSWTCustomization.ColumnDescriptionpublic boolean isMoveable()
TableViewerSWTCustomization.ColumnDescriptiontrue if moveable, false otherwise.isMoveable in interface TableViewerSWTCustomization.ColumnDescriptionpublic int getStyleBits()
TableViewerSWTCustomization.ColumnDescriptiongetStyleBits in interface TableViewerSWTCustomization.ColumnDescriptionpublic int getWeight()
TableViewerSWTCustomization.ColumnDescriptiongetWeight in interface TableViewerSWTCustomization.ColumnDescriptionpublic int getMinWidth()
TableViewerSWTCustomization.ColumnDescriptiongetMinWidth in interface TableViewerSWTCustomization.ColumnDescriptionpublic org.eclipse.core.databinding.observable.value.IObservableValue getColumnText()
TableViewerSWTCustomization.ColumnDescriptiongetColumnText in interface TableViewerSWTCustomization.ColumnDescriptionpublic org.eclipse.core.databinding.observable.value.IObservableValue getColumnTooltip()
TableViewerSWTCustomization.ColumnDescriptiongetColumnTooltip in interface TableViewerSWTCustomization.ColumnDescriptionpublic org.eclipse.jface.viewers.CellLabelProvider createLabelProvider(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
TableViewerSWTCustomization.ColumnDescriptioncreateLabelProvider in interface TableViewerSWTCustomization.ColumnDescriptioncolumnViewer - the column viewerpublic Optional<org.eclipse.jface.viewers.EditingSupport> createEditingSupport(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
TableViewerSWTCustomization.ColumnDescriptionEditingSupport for the viewer.createEditingSupport in interface TableViewerSWTCustomization.ColumnDescriptioncolumnViewer - the AbstractTableViewerpublic Optional<org.eclipse.swt.graphics.Image> getColumnImage()
TableViewerSWTCustomization.ColumnDescriptiongetColumnImage in interface TableViewerSWTCustomization.ColumnDescriptionpublic void setData(Map<String,Object> data)
TableViewerSWTCustomization.ColumnDescriptionsetData in interface TableViewerSWTCustomization.ColumnDescriptiondata - objectpublic Object getData(String key)
TableViewerSWTCustomization.ColumnDescriptiongetData in interface TableViewerSWTCustomization.ColumnDescriptionkey - (see constants)public Map<String,Object> getData()
TableViewerSWTCustomization.ColumnDescriptiongetData in interface TableViewerSWTCustomization.ColumnDescriptionCopyright © 2017. All rights reserved.