public final class ColumnDef<I,T> extends Object
| Modifier and Type | Method and Description |
|---|---|
ColumnDef<I,T> |
align(TextAlign align)
Set the text align for this column.
|
ColumnDef<I,T> |
ascending()
Set the default sort order to ascending first.
|
ColumnDef<I,T> |
cellClicked(ICellClicked<?> ck)
Set the cell click handler.
|
ColumnDef<I,T> |
converter(IConverter<T> converter) |
ColumnDef<I,T> |
css(String css)
Set the css class of this column's values.
|
ColumnDef<I,T> |
cssHeader(String css)
Set the css class of this column's header.
|
ColumnDef<I,T> |
descending()
Set the default sort order to descending first.
|
ColumnDef<I,T> |
editable()
Create an editable component bound to the column's value.
|
ColumnDef<I,T> |
factory(IRowControlFactory<I> factory)
Define the control factory to create the control to use to show the column's value.
|
Class<T> |
getActualClass() |
TextAlign |
getAlign() |
ICellClicked<?> |
getCellClicked() |
String |
getColumnLabel() |
Class<T> |
getColumnType() |
<R> T |
getColumnValue(R instance) |
INodeContentRenderer<T> |
getContentRenderer() |
IRowControlFactory<I> |
getControlFactory()
Return the control factory to create the control to use to show the column's value.
|
IConverter<T> |
getConverter() |
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() |
PropertyMetaModel<T> |
getPropertyMetaModel() |
String |
getPropertyName() |
String |
getRenderHint() |
SortableType |
getSortable() |
ISortHelper<?> |
getSortHelper() |
String |
getSortProperty() |
String |
getWidth() |
ColumnDef<I,T> |
hint(String hint)
Set the hint for a column.
|
boolean |
isEditable() |
boolean |
isNowrap() |
ColumnDef<I,T> |
label(String columnLabel)
Set the column header's label.
|
ColumnDef<I,T> |
nowrap()
Set the column to nowrap.
|
ColumnDef<I,T> |
numeric(NumericPresentation np)
Set the numeric presentation for this column.
|
ColumnDef<I,T> |
property(String name)
Use to set the property name for a column that wraps the whole record
(a column defined by
RowRenderer.column(). |
ColumnDef<I,T> |
renderer(INodeContentRenderer<T> cr)
Set the node content renderer.
|
void |
setPropertyName(String propertyName) |
void |
setSortable(SortableType sortable) |
ColumnDef<I,T> |
sort(ISortHelper<?> sh)
Set a sort helper to be used for this column.
|
ColumnDef<I,T> |
sort(String propertyName)
For a column that represents the whole entity, this can specify which property of
the entity is to be used to sort on.
|
ColumnDef<I,T> |
sortdefault()
Set this column as the default column to sort on.
|
String |
toString() |
ColumnDef<I,T> |
width(String w) |
ColumnDef<I,T> |
wrap()
Make sure this column's contents are wrapped (by default columns added by
RowRenderer are marked as not wrappable. |
@Nullable public PropertyMetaModel<T> getPropertyMetaModel()
@Nullable public IConverter<T> getConverter()
@Nonnull public ColumnDef<I,T> editable()
@Nonnull public ColumnDef<I,T> property(@Nonnull String name)
RowRenderer.column(). It should be set when a row has
sort defined.name - public boolean isEditable()
@Nonnull public SortableType getSortable()
@Nullable public INodeContentRenderer<T> getContentRenderer()
@Nullable public String getCssClass()
@Nullable public String getHeaderCssClass()
@Deprecated public int getDisplayLength()
public boolean isNowrap()
@Nullable public ICellClicked<?> getCellClicked()
@Nonnull public NumericPresentation getNumericPresentation()
@Nullable public ISortHelper<?> getSortHelper()
public void setSortable(@Nonnull SortableType sortable)
@Nonnull public ColumnDef<I,T> label(@Nullable String columnLabel)
columnLabel - @Nonnull public ColumnDef<I,T> align(@Nonnull TextAlign align)
align - @Nonnull public ColumnDef<I,T> cellClicked(@Nullable ICellClicked<?> ck)
ck - @Nonnull public ColumnDef<I,T> renderer(@Nullable INodeContentRenderer<T> cr)
cr - @Nonnull public ColumnDef<I,T> css(@Nonnull String css)
css - @Nonnull public ColumnDef<I,T> cssHeader(@Nonnull String css)
css - @Nonnull public ColumnDef<I,T> wrap()
RowRenderer are marked as not wrappable.@Nonnull public ColumnDef<I,T> numeric(@Nonnull NumericPresentation np)
np - @Nonnull public ColumnDef<I,T> hint(@Nonnull String hint)
hint - @Nonnull public ColumnDef<I,T> ascending()
@Nonnull public ColumnDef<I,T> descending()
@Nonnull public ColumnDef<I,T> sortdefault()
@Nonnull public ColumnDef<I,T> sort(@Nonnull ISortHelper<?> sh)
sort(String) instead.sh - @Nonnull public ColumnDef<I,T> sort(@Nonnull String propertyName)
ISortHelper for simple sorting.propertyName - @Nonnull public ColumnDef<I,T> factory(@Nonnull IRowControlFactory<I> factory)
factory - @Nullable public IRowControlFactory<I> getControlFactory()
Copyright © 2017 etc.to. All rights reserved.