Class TableViewElementBuilder
java.lang.Object
com.foreach.across.modules.web.ui.ViewElementBuilderSupport<T,SELF>
com.foreach.across.modules.web.ui.elements.builder.ContainerViewElementBuilderSupport<T,SELF>
com.foreach.across.modules.web.ui.elements.builder.AbstractNodeViewElementBuilder<TableViewElement,TableViewElementBuilder>
com.foreach.across.modules.bootstrapui.elements.builder.TableViewElementBuilder
- All Implemented Interfaces:
com.foreach.across.modules.web.ui.elements.builder.HtmlViewElementBuilder<TableViewElement,
,TableViewElementBuilder> com.foreach.across.modules.web.ui.ViewElementBuilder<TableViewElement>
public class TableViewElementBuilder
extends com.foreach.across.modules.web.ui.elements.builder.AbstractNodeViewElementBuilder<TableViewElement,TableViewElementBuilder>
- Author:
- Arne Vandamme
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
Nested classes/interfaces inherited from class com.foreach.across.modules.web.ui.ViewElementBuilderSupport
com.foreach.across.modules.web.ui.ViewElementBuilderSupport.ElementOrBuilder
Nested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.ViewElementBuilder
com.foreach.across.modules.web.ui.ViewElementBuilder.Wither<T extends com.foreach.across.modules.web.ui.ViewElementBuilder>
-
Field Summary
Fields inherited from class com.foreach.across.modules.web.ui.ViewElementBuilderSupport
customTemplate, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbody()
Creates a body builder and adds it to the table.Set the body builder to an existing instance.caption()
Creates a caption builder and adds it to the table.caption
(TableViewElementBuilder.Caption caption) Set the caption builder to an existing instance.cell()
static TableViewElementBuilder.Body
protected TableViewElement
createElement
(com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext) footer()
Creates a footer builder and adds it to the table.footer
(TableViewElementBuilder.Footer footer) Set the footer builder to an existing instance.header()
Creates a header builder and adds it to the table.header
(TableViewElementBuilder.Header header) Set the header builder to an existing instance.heading()
Will make the table responsive.responsive
(boolean responsive) Determine if the table should be responsive or not.row()
Methods inherited from class com.foreach.across.modules.web.ui.elements.builder.AbstractNodeViewElementBuilder
apply, attribute, attributes, clearAttributes, css, htmlId, removeAttribute, removeCss
Methods inherited from class com.foreach.across.modules.web.ui.elements.builder.ContainerViewElementBuilderSupport
add, add, addAll, addFirst, addFirst, sort
Methods inherited from class com.foreach.across.modules.web.ui.ViewElementBuilderSupport
build, configure, customTemplate, elementSupplier, elementSupplier, name, postProcess, postProcessor, registerWebResources, with
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.foreach.across.modules.web.ui.elements.builder.HtmlViewElementBuilder
data, removeData
Methods inherited from interface com.foreach.across.modules.web.ui.ViewElementBuilder
andThen, build, doWith, map, map, postProcess, postProcess
-
Constructor Details
-
TableViewElementBuilder
public TableViewElementBuilder()
-
-
Method Details
-
style
-
clearStyles
-
responsive
Will make the table responsive.- Returns:
- current builder
-
responsive
Determine if the table should be responsive or not.- Parameters:
responsive
- true if the table should be responsive- Returns:
- current builder
-
header
Creates a header builder and adds it to the table. If a header builder is already attached, the existing instance is returned. UsecreateHeader()
if you want to create a new detached header builder.- Returns:
- header builder
-
header
Set the header builder to an existing instance.- Parameters:
header
- builder to use- Returns:
- current table builder
-
body
Creates a body builder and adds it to the table. If a body builder is already attached, the existing instance is returned. UsecreateBody()
if you want to create a new detached body builder.- Returns:
- body builder
-
body
Set the body builder to an existing instance.- Parameters:
body
- builder to use- Returns:
- current table builder
-
row
- Returns:
- new row builder
-
cell
- Returns:
- new cell builder
-
heading
- Returns:
- new cell builder with heading set to true
-
createElement
protected TableViewElement createElement(com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext) - Specified by:
createElement
in classcom.foreach.across.modules.web.ui.ViewElementBuilderSupport<TableViewElement,
TableViewElementBuilder>
-
createHeader
- Returns:
- new header builder
-
createBody
- Returns:
- new body builder
-
createCaption
- Returns:
- new caption builder
-