public class TableForm extends Object implements Element
Modifier and Type | Class and Description |
---|---|
class |
TableForm.Column |
class |
TableForm.Row |
Modifier and Type | Field and Description |
---|---|
protected String |
caption |
protected TableForm.Column[] |
columns |
protected boolean |
condensed |
static String |
copyright |
protected TextFormat |
keyTextFormat |
protected String |
prefix |
protected TableForm.Row[] |
rows |
protected boolean |
selectable |
protected String |
selectInputName |
protected boolean |
striped |
Constructor and Description |
---|
TableForm(int nRows,
PropertyAccessor... propertyAccessors) |
Modifier and Type | Method and Description |
---|---|
String |
getCaption() |
TableForm.Column[] |
getColumns() |
TextFormat |
getKeyGenerator() |
String |
getPrefix() |
TableForm.Row[] |
getRows() |
boolean |
isCondensed()
If a table is "condensed", it is rendered with less whitespace to make it more compact.
|
boolean |
isSelectable() |
boolean |
isStriped()
If a table is "striped", it is rendered with rows of alternating background colors.
|
void |
readFromObject(Object obj) |
void |
readFromRequest(HttpServletRequest req) |
void |
setCaption(String caption) |
void |
setCondensed(boolean condensed) |
void |
setKeyGenerator(TextFormat keyTextFormat) |
void |
setPrefix(String prefix) |
void |
setSelectable(boolean selectable) |
void |
setStriped(boolean striped) |
void |
toXhtml(XhtmlBuffer xb) |
boolean |
validate() |
void |
writeToObject(Object obj) |
public static final String copyright
protected String selectInputName
protected final TableForm.Column[] columns
protected final TableForm.Row[] rows
protected String prefix
protected String caption
protected boolean selectable
protected TextFormat keyTextFormat
protected boolean condensed
protected boolean striped
public TableForm(int nRows, PropertyAccessor... propertyAccessors)
public void toXhtml(@NotNull XhtmlBuffer xb)
toXhtml
in interface XhtmlFragment
public void readFromRequest(HttpServletRequest req)
readFromRequest
in interface Element
public void readFromObject(Object obj)
readFromObject
in interface Element
public void writeToObject(Object obj)
writeToObject
in interface Element
public String getCaption()
public void setCaption(String caption)
public TextFormat getKeyGenerator()
public void setKeyGenerator(TextFormat keyTextFormat)
public boolean isSelectable()
public void setSelectable(boolean selectable)
public TableForm.Column[] getColumns()
public TableForm.Row[] getRows()
public String getPrefix()
public void setPrefix(String prefix)
public boolean isCondensed()
public void setCondensed(boolean condensed)
public boolean isStriped()
public void setStriped(boolean striped)