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.ColumnDescription
true
if resizeable, false
otherwise.isResizeable
in interface TableViewerSWTCustomization.ColumnDescription
public boolean isMoveable()
TableViewerSWTCustomization.ColumnDescription
true
if moveable, false
otherwise.isMoveable
in interface TableViewerSWTCustomization.ColumnDescription
public int getStyleBits()
TableViewerSWTCustomization.ColumnDescription
getStyleBits
in interface TableViewerSWTCustomization.ColumnDescription
public int getWeight()
TableViewerSWTCustomization.ColumnDescription
getWeight
in interface TableViewerSWTCustomization.ColumnDescription
public int getMinWidth()
TableViewerSWTCustomization.ColumnDescription
getMinWidth
in interface TableViewerSWTCustomization.ColumnDescription
public org.eclipse.core.databinding.observable.value.IObservableValue getColumnText()
TableViewerSWTCustomization.ColumnDescription
getColumnText
in interface TableViewerSWTCustomization.ColumnDescription
public org.eclipse.core.databinding.observable.value.IObservableValue getColumnTooltip()
TableViewerSWTCustomization.ColumnDescription
getColumnTooltip
in interface TableViewerSWTCustomization.ColumnDescription
public org.eclipse.jface.viewers.CellLabelProvider createLabelProvider(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
TableViewerSWTCustomization.ColumnDescription
createLabelProvider
in interface TableViewerSWTCustomization.ColumnDescription
columnViewer
- the column viewerpublic Optional<org.eclipse.jface.viewers.EditingSupport> createEditingSupport(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
TableViewerSWTCustomization.ColumnDescription
EditingSupport
for the viewer.createEditingSupport
in interface TableViewerSWTCustomization.ColumnDescription
columnViewer
- the AbstractTableViewer
public Optional<org.eclipse.swt.graphics.Image> getColumnImage()
TableViewerSWTCustomization.ColumnDescription
getColumnImage
in interface TableViewerSWTCustomization.ColumnDescription
public void setData(Map<String,Object> data)
TableViewerSWTCustomization.ColumnDescription
setData
in interface TableViewerSWTCustomization.ColumnDescription
data
- objectpublic Object getData(String key)
TableViewerSWTCustomization.ColumnDescription
getData
in interface TableViewerSWTCustomization.ColumnDescription
key
- (see constants)public Map<String,Object> getData()
TableViewerSWTCustomization.ColumnDescription
getData
in interface TableViewerSWTCustomization.ColumnDescription
Copyright © 2017. All rights reserved.