public static interface HtmlTableBuilder.FirstContentStep
Modifier and Type | Method and Description |
---|---|
HtmlTableBuilder.SecondContentStep |
fillFromCriteria(DatatablesCriterias criteria)
Fills the current column using the corresponding
ColumnDef
instance of the passed criterias . |
HtmlTableBuilder.SecondContentStep |
fillFromCriteria(DatatablesCriterias criteria,
String pattern)
Fills the current column using the corresponding
ColumnDef
instance of the passed criterias . |
HtmlTableBuilder.SecondContentStep |
fillWith(String content)
Simply fills the current column with the passed
content . |
HtmlTableBuilder.SecondContentStep |
fillWithProperty(String propertyName)
Fills the current column with the property extracted from the
collection passed in the builder.
|
HtmlTableBuilder.SecondContentStep |
fillWithProperty(String propertyName,
String pattern)
Fills the current column with the property extracted from the
collection passed in the builder.
|
HtmlTableBuilder.SecondContentStep |
fillWithProperty(String propertyName,
String pattern,
String defaultContent)
Fills the current column with the property extracted from the
collection passed in the builder.
|
HtmlTableBuilder.SecondContentStep fillWithProperty(String propertyName)
Fills the current column with the property extracted from the collection passed in the builder.
propertyName
- Name of the property to be extracted from the collection.HtmlTableBuilder.SecondContentStep fillWithProperty(String propertyName, String pattern)
Fills the current column with the property extracted from the collection passed in the builder.
The extracted value is then formatted using the passed pattern
with a MessageFormat
.
propertyName
- Name of the property to be extracted from the collection.pattern
- Pattern to be used by the MessageFormat
to format the
returned value.HtmlTableBuilder.SecondContentStep fillWithProperty(String propertyName, String pattern, String defaultContent)
Fills the current column with the property extracted from the collection passed in the builder.
The extracted value is then formatted using the passed pattern
with a MessageFormat
.
propertyName
- Name of the property to be extracted from the collection.pattern
- Pattern to be used by the MessageFormat
to format the
returned value.defaultContent
- The contents to render if the extrated value is null.HtmlTableBuilder.SecondContentStep fillWith(String content)
Simply fills the current column with the passed content
.
content
- The string to be used in the column.HtmlTableBuilder.SecondContentStep fillFromCriteria(DatatablesCriterias criteria)
Fills the current column using the corresponding ColumnDef
instance of the passed criterias
.
As soon as this method is invoked, an internal counter is incremented.
The increment is used to directly access the list of ColumnDef
of DatatablesCriterias
.
WARNING: don't call this method more times than the number of columns registered.
criteria
- All criteria sent by DataTable.HtmlTableBuilder.SecondContentStep fillFromCriteria(DatatablesCriterias criteria, String pattern)
Fills the current column using the corresponding ColumnDef
instance of the passed criterias
.
The extracted value is then formatted using the passed pattern
with a MessageFormat
.
As soon as this method is invoked, an internal counter is incremented.
The increment is used to directly access the list of ColumnDef
of DatatablesCriterias
.
WARNING: don't call this method more times than the number of columns registered.
criteria
- All criteria sent by DataTable.pattern
- Pattern to be used by the MessageFormat
to format the
returned value.Copyright © 2013–2015 Dandelion Project. All rights reserved.