| Constructor and Description |
|---|
ColumnList(Class<T> rootClass,
ClassMetaModel cmm) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ColumnDef<T,?> cd) |
void |
addDefaultColumns()
Add all of the columns as defined by the metadata to the list.
|
void |
assignPercentages()
Width calculations: this tries to assign widths to columns that have no explicit width assigned.
|
ColumnDef<T,T> |
column()
Add a column which gets referred the row element instead of a column element.
|
<V> ColumnDef<T,V> |
column(Class<V> type,
String property)
Add and return the column definition for a column on the specified property.
|
ColumnDef<T,?> |
column(String property)
This adds a column on the specified property, but has no idea about the real type.
|
ColumnDef<T,?> |
get(int ix) |
ColumnDef<T,?> |
getSortColumn() |
int |
indexOf(ColumnDef<T,?> scd) |
boolean |
isSortDescending() |
Iterator<ColumnDef<T,?>> |
iterator()
Return the iterator for all elements.
|
void |
setDefaultSortColumn(String sort)
Set the default sort column by property name.
|
void |
setSortColumn(ColumnDef<T,?> cd) |
void |
setSortColumn(ColumnDef<T,?> cd,
SortableType type) |
void |
setSortDescending(boolean desc) |
int |
size() |
protected void |
updateDefaultSort(ColumnDef<T,?> scd) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ColumnList(@Nonnull Class<T> rootClass, @Nonnull ClassMetaModel cmm)
public int size()
public void setDefaultSortColumn(@Nullable String sort)
sort - public void setSortColumn(@Nullable ColumnDef<T,?> cd, @Nullable SortableType type)
public void addDefaultColumns()
public void assignPercentages()
@Nonnull public Iterator<ColumnDef<T,?>> iterator()
iterator in interface Iterable<ColumnDef<T,?>>Iterable.iterator()public boolean isSortDescending()
public void setSortDescending(boolean desc)
@Nonnull public <V> ColumnDef<T,V> column(@Nonnull Class<V> type, @Nonnull String property)
column(String).type - property - @Nonnull public ColumnDef<T,?> column(@Nonnull String property)
property - Copyright © 2017 etc.to. All rights reserved.