public interface ShellTable<D>
| Modifier and Type | Method and Description |
|---|---|
void |
display(PrintStream out,
boolean showHeaders,
boolean showData)
Displays the content of the table to the specified
PrintStream. |
String |
evaluate(Object object,
String expression)
Evaluate an expression on the given Object and return a
String representation of the result. |
List<String> |
getAlignments() |
boolean |
getAscending() |
D |
getDisplayData() |
List<String> |
getDisplayExpression() |
List<String> |
getHeaders() |
String |
getSortBy() |
String |
getType() |
void |
setAlignments(List<String> alignments) |
void |
setAscending(boolean ascending) |
void |
setDisplayData(D displayData) |
void |
setDisplayExpression(List<String> displayExpression) |
void |
setHeaders(List<String> headers) |
void |
setSortBy(String sortBy) |
void |
setType(String type) |
static final String LEFT
static final String RIGHT
String evaluate(Object object, String expression)
String representation of the result.object - expression - void display(PrintStream out, boolean showHeaders, boolean showData)
PrintStream.out - String getType()
void setType(String type)
String getSortBy()
void setSortBy(String sortBy)
boolean getAscending()
void setAscending(boolean ascending)
D getDisplayData()
void setDisplayData(D displayData)
Copyright © 2013. All Rights Reserved.