public final class SimpleColumnDef<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULTSORT |
static String |
NOWRAP |
static String |
WRAP |
| Constructor and Description |
|---|
SimpleColumnDef(ColumnDefList<?> cdl,
Class<T> valueClass) |
SimpleColumnDef(ColumnDefList<?> cdl,
ExpandedDisplayProperty<T> m) |
SimpleColumnDef(ColumnDefList<?> cdl,
PropertyMetaModel<T> pmm)
Create a column definition using metadata for the column.
|
| Modifier and Type | Method and Description |
|---|---|
SimpleColumnDef<T> |
align(TextAlign align)
Set the text align for this column.
|
SimpleColumnDef<T> |
ascending()
Set the default sort order to ascending first.
|
SimpleColumnDef<T> |
cellClicked(ICellClicked<T> ck)
Set the cell click handler.
|
SimpleColumnDef<T> |
converter(IObjectToStringConverter<T> c)
Set a column value-to-string converter to be used.
|
SimpleColumnDef<T> |
css(String css)
Set the css class of this column's values.
|
SimpleColumnDef<T> |
cssHeader(String css)
Set the css class of this column's header.
|
SimpleColumnDef<T> |
descending()
Set the default sort order to descending first.
|
TextAlign |
getAlign() |
ICellClicked<T> |
getCellClicked() |
String |
getColumnLabel() |
Class<T> |
getColumnType() |
INodeContentRenderer<T> |
getContentRenderer() |
String |
getCssClass()
When set this defines the css class to set on each value cell for this column.
|
int |
getDisplayLength()
Deprecated.
|
String |
getHeaderCssClass()
When set this defines the css class to set on the header of this column.
|
NumericPresentation |
getNumericPresentation() |
IObjectToStringConverter<T> |
getPresentationConverter()
Returns the optional converter to use to convert raw object values to some presentation string value.
|
String |
getPropertyName() |
String |
getRenderHint() |
SortableType |
getSortable() |
ISortHelper<?> |
getSortHelper()
If this column is sortable with help from outside code: this defines that helper
which will sort the main model for the table for this column.
|
IValueTransformer<T> |
getValueTransformer() |
String |
getWidth() |
SimpleColumnDef<T> |
hint(String hint)
Set the hint for a column.
|
Boolean |
isNowrap() |
SimpleColumnDef<T> |
label(String columnLabel)
Set the column header's label.
|
SimpleColumnDef<T> |
nowrap()
Set the column to nowrap.
|
SimpleColumnDef<T> |
numeric(NumericPresentation np)
Set the numeric presentation for this column.
|
SimpleColumnDef<T> |
renderer(INodeContentRenderer<T> cr)
Set the node content renderer.
|
void |
setAlign(TextAlign align) |
void |
setCellClicked(ICellClicked<T> cellClicked) |
void |
setColumnLabel(String columnLabel) |
void |
setContentRenderer(INodeContentRenderer<T> contentRenderer) |
void |
setCssClass(String cssClass)
When set this defines the css class to set on each value cell for this column.
|
void |
setDisplayLength(int displayLength)
Deprecated.
|
void |
setHeaderCssClass(String headerCssClass)
When set this defines the css class to set on the header of this column.
|
void |
setNowrap(Boolean nowrap) |
void |
setNumericPresentation(NumericPresentation numericPresentation) |
void |
setPresentationConverter(IConverter<T> valueConverter) |
void |
setPropertyName(String propertyName) |
void |
setRenderHint(String renderHint) |
void |
setSortable(SortableType sortable) |
void |
setSortHelper(ISortHelper<?> sortHelper) |
void |
setValueTransformer(IValueTransformer<T> valueTransformer) |
void |
setWidth(String width) |
SimpleColumnDef<T> |
sort(ISortHelper<T> sh)
Set a sort helper to be used for this column.
|
SimpleColumnDef<T> |
sortdefault()
Set this column as the default column to sort on.
|
String |
toString() |
SimpleColumnDef<T> |
transform(IValueTransformer<T> vt)
Set a value transformer to convert this column value into something else.
|
SimpleColumnDef<T> |
width(String w) |
SimpleColumnDef<T> |
wrap()
Make sure this column's contents are wrapped (by default columns added by
RowRenderer are marked as not wrappable. |
public static final String NOWRAP
public static final String WRAP
public static final String DEFAULTSORT
public SimpleColumnDef(@Nonnull ColumnDefList<?> cdl, @Nonnull Class<T> valueClass)
public SimpleColumnDef(@Nonnull ColumnDefList<?> cdl, @Nonnull PropertyMetaModel<T> pmm)
pmm - public SimpleColumnDef(@Nonnull ColumnDefList<?> cdl, @Nonnull ExpandedDisplayProperty<T> m)
@Nonnull public SortableType getSortable()
public void setSortable(@Nonnull SortableType sortable)
@Nullable public IValueTransformer<T> getValueTransformer()
public void setValueTransformer(@Nullable IValueTransformer<T> valueTransformer)
@Nullable public IObjectToStringConverter<T> getPresentationConverter()
public void setPresentationConverter(@Nullable IConverter<T> valueConverter)
@Nullable public INodeContentRenderer<T> getContentRenderer()
public void setContentRenderer(@Nullable INodeContentRenderer<T> contentRenderer)
@Nullable public String getCssClass()
public void setCssClass(@Nullable String cssClass)
cssClass - @Nullable public String getHeaderCssClass()
public void setHeaderCssClass(@Nullable String headerCssClass)
headerCssClass - @Deprecated public int getDisplayLength()
@Deprecated public void setDisplayLength(int displayLength)
displayLength - @Nullable public ICellClicked<T> getCellClicked()
public void setCellClicked(@Nullable ICellClicked<T> cellClicked)
@Nonnull public NumericPresentation getNumericPresentation()
public void setNumericPresentation(@Nonnull NumericPresentation numericPresentation)
@Nullable public ISortHelper<?> getSortHelper()
public void setSortHelper(@Nullable ISortHelper<?> sortHelper)
@Nonnull public SimpleColumnDef<T> label(@Nullable String columnLabel)
columnLabel - @Nonnull public SimpleColumnDef<T> align(@Nonnull TextAlign align)
align - @Nonnull public SimpleColumnDef<T> cellClicked(@Nonnull ICellClicked<T> ck)
ck - @Nonnull public SimpleColumnDef<T> renderer(@Nonnull INodeContentRenderer<T> cr)
cr - @Nonnull public SimpleColumnDef<T> css(@Nonnull String css)
css - @Nonnull public SimpleColumnDef<T> cssHeader(@Nonnull String css)
css - @Nonnull public SimpleColumnDef<T> wrap()
RowRenderer are marked as not wrappable.@Nonnull public SimpleColumnDef<T> nowrap()
@Nonnull public SimpleColumnDef<T> numeric(@Nonnull NumericPresentation np)
np - @Nonnull public SimpleColumnDef<T> converter(@Nonnull IObjectToStringConverter<T> c)
c - @Nonnull public SimpleColumnDef<T> hint(@Nonnull String hint)
hint - @Nonnull public SimpleColumnDef<T> ascending()
@Nonnull public SimpleColumnDef<T> descending()
@Nonnull public SimpleColumnDef<T> sortdefault()
@Nonnull public SimpleColumnDef<T> sort(@Nonnull ISortHelper<T> sh)
sh - @Nonnull public SimpleColumnDef<T> transform(@Nonnull IValueTransformer<T> vt)
vt - @Nonnull public SimpleColumnDef<T> width(@Nullable String w)
Copyright © 2017 etc.to. All rights reserved.