Package com.diffplug.common.swt.jface
Class ColumnViewerFormat.ColumnBuilder<T>
- java.lang.Object
-
- com.diffplug.common.swt.ColumnFormat.ColumnBuilder
-
- com.diffplug.common.swt.jface.ColumnViewerFormat.ColumnBuilder<T>
-
- Enclosing class:
- ColumnViewerFormat<T>
public static class ColumnViewerFormat.ColumnBuilder<T> extends ColumnFormat.ColumnBuilder
Builder for a single TableColumn.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnLabelProvidergetLabelProvider()ColumnViewerFormat.ColumnBuilder<T>setFinalSetup(java.util.function.BiConsumer<ColumnViewer,? super ViewerColumn> finalSetup)Calls the given consumer after the ColumnViewer has been constructed.ColumnViewerFormat.ColumnBuilder<T>setFinalSetup(java.util.function.Consumer<? super ViewerColumn> finalSetup)Calls the given consumer after the ColumnViewer has been constructed.ColumnViewerFormat.ColumnBuilder<T>setImage(Image image)ColumnViewerFormat.ColumnBuilder<T>setLabelProvider(ColumnLabelProvider provider)Uses the given as the label provider.ColumnViewerFormat.ColumnBuilder<T>setLabelProviderImage(java.util.function.Function<? super T,Image> image)Uses the given function as the image label provider.ColumnViewerFormat.ColumnBuilder<T>setLabelProviderText(java.util.function.Function<? super T,java.lang.String> text)Uses the given function as the textual label provider.ColumnViewerFormat.ColumnBuilder<T>setLabelProviderTextAndImage(java.util.function.Function<? super T,java.lang.String> text, java.util.function.Function<? super T,Image> image)Uses the given function as the textual and image label provider.ColumnViewerFormat.ColumnBuilder<T>setStyle(int style)ColumnViewerFormat.ColumnBuilder<T>setText(java.lang.String text)-
Methods inherited from class com.diffplug.common.swt.ColumnFormat.ColumnBuilder
getColumnLayoutData, getImage, getStyle, getText, setLayoutPixel, setLayoutWeight
-
-
-
-
Method Detail
-
setLabelProvider
public ColumnViewerFormat.ColumnBuilder<T> setLabelProvider(ColumnLabelProvider provider)
Uses the given as the label provider.
-
setLabelProviderText
public ColumnViewerFormat.ColumnBuilder<T> setLabelProviderText(java.util.function.Function<? super T,java.lang.String> text)
Uses the given function as the textual label provider.
-
setLabelProviderImage
public ColumnViewerFormat.ColumnBuilder<T> setLabelProviderImage(java.util.function.Function<? super T,Image> image)
Uses the given function as the image label provider.
-
setLabelProviderTextAndImage
public ColumnViewerFormat.ColumnBuilder<T> setLabelProviderTextAndImage(java.util.function.Function<? super T,java.lang.String> text, java.util.function.Function<? super T,Image> image)
Uses the given function as the textual and image label provider.
-
setFinalSetup
public ColumnViewerFormat.ColumnBuilder<T> setFinalSetup(java.util.function.Consumer<? super ViewerColumn> finalSetup)
Calls the given consumer after the ColumnViewer has been constructed.
-
setFinalSetup
public ColumnViewerFormat.ColumnBuilder<T> setFinalSetup(java.util.function.BiConsumer<ColumnViewer,? super ViewerColumn> finalSetup)
Calls the given consumer after the ColumnViewer has been constructed.
-
setText
public ColumnViewerFormat.ColumnBuilder<T> setText(java.lang.String text)
- Overrides:
setTextin classColumnFormat.ColumnBuilder
-
setImage
public ColumnViewerFormat.ColumnBuilder<T> setImage(Image image)
- Overrides:
setImagein classColumnFormat.ColumnBuilder
-
setStyle
public ColumnViewerFormat.ColumnBuilder<T> setStyle(int style)
- Overrides:
setStylein classColumnFormat.ColumnBuilder
-
getLabelProvider
@Nullable public ColumnLabelProvider getLabelProvider()
-
-