Package com.diffplug.common.swt.jface
Class ColumnViewerFormat<T>
java.lang.Object
com.diffplug.common.swt.jface.ColumnViewerFormat<T>
Fluent API for creating
TableViewers and TreeViewers with a certain format.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for a single TableColumn. -
Method Summary
Modifier and TypeMethodDescriptionAdds a column to the table.Returns as a regular non-viewer format.static <T> ColumnViewerFormat<T>builder()Creates a `TableFormat` with the given style bits.buildTable(Composite parent) Builds aTableVieweron the given parent.Builds aTreeVieweron the given parent.Returns the columns array.setHeaderVisible(boolean headerVisible) Sets the lines to be visible, defaults to true.setLinesVisible(boolean linesVisible) Sets the lines to be visible, defaults to true.setStyle(int style) Sets the SWT style flags.setUseHashLookup(boolean useHashLookup) Sets the whether the viewer is accelerated by a hashtable, defaults to true.
-
Method Details
-
builder
Creates a `TableFormat` with the given style bits. -
setStyle
Sets the SWT style flags. -
setLinesVisible
Sets the lines to be visible, defaults to true. -
setHeaderVisible
Sets the lines to be visible, defaults to true. -
setUseHashLookup
Sets the whether the viewer is accelerated by a hashtable, defaults to true. -
addColumn
Adds a column to the table. -
buildTable
Builds aTableVieweron the given parent. -
buildTree
Builds aTreeVieweron the given parent. -
getColumns
Returns the columns array. -
asColumnFormat
Returns as a regular non-viewer format.
-