public class AbstractTableAction extends Action
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractTableAction.Column<T> |
| Modifier and Type | Field and Description |
|---|---|
protected String |
contentType
Content type of response.
|
protected String |
numberPattern
Decimal format pattern used for printing doubles.
|
protected StringifierFactory |
stringifierFactory
Value formatter.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTableAction(ActionContext context,
String contentType)
Base constructor initializes columns list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Execute action
|
String |
getPattern() |
protected void |
printBody(PrintWriter writer) |
protected void |
printBodyCell(AbstractTableAction.Column c,
Sample sample,
PrintWriter writer) |
protected void |
printBodyRow(Sample sample,
PrintWriter writer) |
protected void |
printBodyRow(Simon simon,
PrintWriter writer) |
protected void |
printCell(AbstractTableAction.Column c,
String s,
PrintWriter writer) |
protected void |
printHeaderCell(AbstractTableAction.Column c,
PrintWriter writer) |
protected void |
printHeaderRow(PrintWriter writer) |
protected void |
printTable(PrintWriter writer) |
void |
readParameters()
Parse HTTP Request parameters and store them locally
|
void |
setPattern(String pattern) |
dontCache, getContextprotected StringifierFactory stringifierFactory
protected final String contentType
protected String numberPattern
protected AbstractTableAction(ActionContext context, String contentType)
public String getPattern()
public void setPattern(String pattern)
public void readParameters()
ActionreadParameters in class Actionprotected void printTable(PrintWriter writer) throws IOException
IOExceptionprotected void printHeaderRow(PrintWriter writer) throws IOException
IOExceptionprotected void printHeaderCell(AbstractTableAction.Column c, PrintWriter writer) throws IOException
IOExceptionprotected void printBody(PrintWriter writer) throws IOException
IOExceptionprotected void printBodyRow(Simon simon, PrintWriter writer) throws IOException
IOExceptionprotected void printBodyRow(Sample sample, PrintWriter writer) throws IOException
IOExceptionprotected void printBodyCell(AbstractTableAction.Column c, Sample sample, PrintWriter writer) throws IOException
IOExceptionprotected void printCell(AbstractTableAction.Column c, String s, PrintWriter writer) throws IOException
IOExceptionpublic void execute() throws javax.servlet.ServletException, IOException, ActionException
Actionexecute in class Actionjavax.servlet.ServletExceptionIOExceptionActionExceptionCopyright © 2019. All rights reserved.