public class TableViewerColumnBuilder extends Object
Constructor and Description |
---|
TableViewerColumnBuilder() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.jface.viewers.TableViewerColumn |
build(org.eclipse.jface.viewers.TableViewer tableViewer)
Creates and returns a
TableViewerColumn . |
static TableViewerColumnBuilder |
create()
Creates a new
TableViewerColumnBuilder instance. |
TableViewerColumnBuilder |
setData(String key,
Object value)
Sets data on the column.
|
TableViewerColumnBuilder |
setMoveable(boolean isMoveable) |
TableViewerColumnBuilder |
setResizable(boolean isResizable) |
TableViewerColumnBuilder |
setStyle(int style) |
TableViewerColumnBuilder |
setText(String text) |
TableViewerColumnBuilder |
setToolTipText(String tooltip) |
TableViewerColumnBuilder |
setWidth(int width) |
public static TableViewerColumnBuilder create()
TableViewerColumnBuilder
instance.public TableViewerColumnBuilder setText(String text)
text
- the column textpublic TableViewerColumnBuilder setToolTipText(String tooltip)
tooltip
- the column tooltippublic TableViewerColumnBuilder setResizable(boolean isResizable)
isResizable
- whether the column is resizeablepublic TableViewerColumnBuilder setMoveable(boolean isMoveable)
isMoveable
- whether the column is moveablepublic TableViewerColumnBuilder setData(String key, Object value)
key
- the keyvalue
- the valuepublic TableViewerColumnBuilder setStyle(int style)
style
- the swt style bits for the columnpublic TableViewerColumnBuilder setWidth(int width)
width
- the width of the columnpublic org.eclipse.jface.viewers.TableViewerColumn build(org.eclipse.jface.viewers.TableViewer tableViewer)
TableViewerColumn
.tableViewer
- the parentCopyright © 2019. All rights reserved.