public class TableBuilder extends Object
Modifier and Type | Class and Description |
---|---|
class |
TableBuilder.tbody |
class |
TableBuilder.tfoot |
class |
TableBuilder.thead
inner class for thead.
|
class |
TableBuilder.tr
Inner class of tr tag.
|
Modifier and Type | Field and Description |
---|---|
TableBuilder.tfoot |
tfoot |
TableBuilder.thead |
thead |
Constructor and Description |
---|
TableBuilder() |
Modifier and Type | Method and Description |
---|---|
TableBuilder.tbody |
addTbody()
add new tbody and get it.
|
TableBuilder |
addTbody(List<List<Object>> trList)
add new tbody into table having tr,td tags
|
TableBuilder |
addTbody(List<List<Object>> trList,
Map<String,Object> attrMap) |
TableBuilder.tr |
addTr()
add new tr.
|
<T extends AbstractJaxb> |
addTr(List<Object> tdList)
add new tr having td tags that has content of each value of list.
|
<T extends AbstractJaxb> |
addTr(List<Object> tdList,
Map<String,Object> attrMap)
add new tr having td tags that has content of each value of list.
|
TableBuilder.tr |
addTr(Map<String,Object> attrMap)
add new tr having specified attributes.
|
Table |
build()
build table tag object finally.
|
TableBuilder.tbody |
tbody(int index)
Get tbody at specified index
|
TableBuilder.tr |
tr(int index)
Get tr of specified index.
|
public TableBuilder.thead thead
public TableBuilder.tfoot tfoot
public TableBuilder.tr tr(int index)
index
- 0=first tr, 1= second trpublic TableBuilder.tr addTr()
public TableBuilder.tr addTr(Map<String,Object> attrMap)
public <T extends AbstractJaxb> TableBuilder addTr(List<Object> tdList) throws TagTypeUnmatchException
tdList
- TagTypeUnmatchException
public <T extends AbstractJaxb> TableBuilder addTr(List<Object> tdList, Map<String,Object> attrMap) throws TagTypeUnmatchException
tdList
- attrMap
- attributes for new tr tagTagTypeUnmatchException
public TableBuilder.tbody tbody(int index)
index
- 0=first tbody, 1=second tbody.
添え字です。0なら一つ目のtbody、1なら二つ目のtbodypublic TableBuilder.tbody addTbody()
public TableBuilder addTbody(List<List<Object>> trList) throws TagTypeUnmatchException
trList
- List of List for tr,td tagsTagTypeUnmatchException
public TableBuilder addTbody(List<List<Object>> trList, Map<String,Object> attrMap) throws TagTypeUnmatchException
TagTypeUnmatchException
public Table build()
Copyright © 2021 Project Mixer2. All rights reserved.