|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.twenty11.skysail.common.grids.ColumnDefinition
public class ColumnDefinition
Defines a grid column.
A grid column has a name, a filter (maybe empty), a "sorting" field (defaults
to 0), and a width (defaults to null). Columns can be "chained" together
using a 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 Summary | |
|---|---|
ColumnDefinition()
default constructor needed for json / jackson de-/serialization. |
|
ColumnDefinition(String columnName)
constructor with name for the column definition. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnDefinition()
public ColumnDefinition(String columnName)
columnName - for the column| Method Detail |
|---|
public final void apply()
public final ColumnDefinition sortDesc(Integer weight)
weight - value used for deciding about precedence
public final ColumnDefinition sortAsc(Integer weight)
weight - value used for deciding about precedence
public final ColumnDefinition setWidth(Integer colWidth)
colWidth - in pixel
public 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)
public final String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic final boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||