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, getContext
protected 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()
Action
readParameters
in class Action
protected void printTable(PrintWriter writer) throws IOException
IOException
protected void printHeaderRow(PrintWriter writer) throws IOException
IOException
protected void printHeaderCell(AbstractTableAction.Column c, PrintWriter writer) throws IOException
IOException
protected void printBody(PrintWriter writer) throws IOException
IOException
protected void printBodyRow(Simon simon, PrintWriter writer) throws IOException
IOException
protected void printBodyRow(Sample sample, PrintWriter writer) throws IOException
IOException
protected void printBodyCell(AbstractTableAction.Column c, Sample sample, PrintWriter writer) throws IOException
IOException
protected void printCell(AbstractTableAction.Column c, String s, PrintWriter writer) throws IOException
IOException
public void execute() throws javax.servlet.ServletException, IOException, ActionException
Action
execute
in class Action
javax.servlet.ServletException
IOException
ActionException
Copyright © 2019. All rights reserved.