public class LabelProviders extends Object
CellLabelProvider
(which is also appropriate for plain-jane ILabelProvider
).Modifier and Type | Class and Description |
---|---|
static class |
LabelProviders.Builder<T>
A fluent API for creating a
ColumnLabelProvider . |
Constructor and Description |
---|
LabelProviders() |
Modifier and Type | Method and Description |
---|---|
static <T> LabelProviders.Builder<T> |
builder()
Returns a fluent builder for creating a
ColumnLabelProvider . |
static <T> ColumnLabelProvider |
createWithImage(Function<? super T,? extends Image> image)
Creates a
ColumnLabelProvider for images. |
static <T> ColumnLabelProvider |
createWithText(Function<? super T,? extends String> text)
Creates a
ColumnLabelProvider for text. |
static <T> ColumnLabelProvider |
createWithTextAndImage(Function<? super T,? extends String> text,
Function<? super T,? extends Image> image)
Creates a
ColumnLabelProvider for text and images. |
public static <T> LabelProviders.Builder<T> builder()
ColumnLabelProvider
.public static <T> ColumnLabelProvider createWithText(Function<? super T,? extends String> text)
ColumnLabelProvider
for text.public static <T> ColumnLabelProvider createWithImage(Function<? super T,? extends Image> image)
ColumnLabelProvider
for images.public static <T> ColumnLabelProvider createWithTextAndImage(Function<? super T,? extends String> text, Function<? super T,? extends Image> image)
ColumnLabelProvider
for text and images.