public class ColumnDefinition extends Object implements Serializable
ColumnsBuilder in a DSL-style fashion. The column definitions
can be used to compose a grid out of its defining columns and to display it
(with proper filtering, sorting and width).| Constructor and Description |
|---|
ColumnDefinition()
default constructor needed for json / jackson de-/serialization.
|
ColumnDefinition(String columnName)
constructor with name for the column definition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply() |
boolean |
equals(Object obj) |
String |
getFilterValue()
returns the filter value.
|
String |
getName()
returns the name.
|
Integer |
getSorting()
returns the sorting.
|
Integer |
getWidth() |
int |
hashCode() |
void |
setFilterValue(String filter)
needed for jackson.
|
void |
setName(String theName)
needed for jackson.
|
void |
setSorting(Integer theSorting)
needed for jackson.
|
ColumnDefinition |
setWidth(Integer colWidth) |
ColumnDefinition |
sortAsc(Integer weight) |
ColumnDefinition |
sortDesc(Integer weight) |
String |
toString() |
public ColumnDefinition()
public ColumnDefinition(String columnName)
columnName - for the columnpublic final void apply()
public final ColumnDefinition sortDesc(Integer weight)
weight - value used for deciding about precedencepublic final ColumnDefinition sortAsc(Integer weight)
weight - value used for deciding about precedencepublic final ColumnDefinition setWidth(Integer colWidth)
colWidth - in pixelpublic final Integer getWidth()
public final String getFilterValue()
public void setFilterValue(String filter)
public void setName(String theName)
public final String getName()
public final Integer getSorting()
public void setSorting(Integer theSorting)
Copyright © 2011-2013. All Rights Reserved.