|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.displaytag.render.TableWriterTemplate
org.displaytag.render.TableWriterAdapter
org.displaytag.render.HtmlTableWriter
public class HtmlTableWriter
A table writer that formats a table in HTML and writes it to a JSP page.
TableWriterTemplate| Field Summary |
|---|
| Fields inherited from class org.displaytag.render.TableWriterTemplate |
|---|
GROUP_END, GROUP_NO_CHANGE, GROUP_START, GROUP_START_AND_END, NO_RESET_GROUP |
| Constructor Summary | |
|---|---|
HtmlTableWriter(TableModel tableModel,
TableProperties tableProperties,
Href baseHref,
boolean export,
javax.servlet.jsp.JspWriter out,
CaptionTag captionTag,
PaginatedList paginatedList,
SmartListHelper listHelper,
int pagesize,
HtmlAttributeMap attributeMap,
java.lang.String uid)
This table writer uses a TableTag and a JspWriter to do its work. |
|
| Method Summary | |
|---|---|
java.lang.String |
getOpenTag()
create the open tag containing all the attributes. |
void |
write(java.lang.Object string)
Utility method. |
void |
write(java.lang.String string)
Utility method. |
protected void |
writeBottomBanner(TableModel model)
Writes a banner containing search result, paging navigation, and export links below an HTML table to a JSP page. |
protected void |
writeCaption(TableModel model)
Writes an HTML table's caption to a JSP page. |
protected void |
writeColumnCloser(Column column)
Writes an HTML table's column-closing tag to a JSP page. |
protected void |
writeColumnOpener(Column column)
Writes an HTML table's column-opening tag to a JSP page. |
protected void |
writeColumnValue(java.lang.Object value,
Column column)
Writes a HTML table column value to a JSP page. |
protected void |
writeDecoratedRowFinish(TableModel model)
Called by writeTableBody to decorate the table. |
protected void |
writeDecoratedRowStart(TableModel model)
Called by writeTableBody to write to decorate the table. |
protected void |
writeDecoratedTableFinish(TableModel model)
Called by writeTable to decorate the table. |
protected void |
writeEmptyListMessage(java.lang.String emptyListMessage)
Writes an HTML message to a JSP page explaining that the table model contains no data. |
protected void |
writeEmptyListRowMessage(java.lang.String message)
Writes an HTML message to a JSP page explaining that the row contains no data. |
void |
writeNavigationAndExportLinks()
Generates table footer with links for export commands. |
protected void |
writePreBodyFooter(TableModel model)
Writes an HTML table's footer to a JSP page; HTML requires tfoot to appear before tbody. |
protected void |
writeRowCloser(Row row)
Writes an HTML table's row-closing tag to a JSP page. |
protected void |
writeRowOpener(Row row)
Writes an HTML table's row-opening tag to a JSP page. |
protected void |
writeRowWithNoColumns(java.lang.String rowValue)
Writes to a JSP page an HTML table row that has no columns. |
void |
writeSearchResultAndNavigation()
generates the search result and navigation bar. |
void |
writeTable(TableModel model,
java.lang.String id)
Given a table model, this method creates a table, sorting and grouping it per its configuration, while delegating where and how it writes the table to subclass objects. |
protected void |
writeTableBodyCloser(TableModel model)
Writes the end of an HTML table's body to a JSP page. |
protected void |
writeTableBodyOpener(TableModel model)
Writes the start of an HTML table's body to a JSP page. |
protected void |
writeTableCloser(TableModel model)
Writes the closing structure of an HTML table to a JSP page. |
protected void |
writeTableHeader(TableModel model)
Writes an HTML table's column header to a JSP page. |
protected void |
writeTableOpener(TableModel model)
Writes an HTML table's opening tags to a JSP page. |
protected void |
writeTopBanner(TableModel model)
Writes a banner containing search result and paging navigation above an HTML table to a JSP page. |
| Methods inherited from class org.displaytag.render.TableWriterAdapter |
|---|
writePostBodyFooter |
| Methods inherited from class org.displaytag.render.TableWriterTemplate |
|---|
groupColumns |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlTableWriter(TableModel tableModel,
TableProperties tableProperties,
Href baseHref,
boolean export,
javax.servlet.jsp.JspWriter out,
CaptionTag captionTag,
PaginatedList paginatedList,
SmartListHelper listHelper,
int pagesize,
HtmlAttributeMap attributeMap,
java.lang.String uid)
TableTag and a JspWriter to do its work.
tableTag - TableTag instance called back by this writer.out - The output destination.| Method Detail |
|---|
protected void writeTopBanner(TableModel model)
writeTopBanner in class TableWriterAdaptermodel - The table model for which the banner is written.TableWriterTemplate.writeTopBanner(org.displaytag.model.TableModel)protected void writeTableOpener(TableModel model)
writeTableOpener in class TableWriterAdaptermodel - The table model for which the content is written.TableWriterTemplate.writeTableOpener(org.displaytag.model.TableModel)protected void writeCaption(TableModel model)
writeCaption in class TableWriterAdaptermodel - The table model for which the content is written.TableWriterTemplate.writeCaption(org.displaytag.model.TableModel)protected void writePreBodyFooter(TableModel model)
writePreBodyFooter in class TableWriterAdaptermodel - The table model for which the content is written.org.displaytag.render.TableWriterTemplate#writeFooter(org.displaytag.model.TableModel)protected void writeTableBodyOpener(TableModel model)
writeTableBodyOpener in class TableWriterAdaptermodel - The table model for which the content is written.TableWriterTemplate.writeTableBodyOpener(org.displaytag.model.TableModel)protected void writeTableBodyCloser(TableModel model)
writeTableBodyCloser in class TableWriterAdaptermodel - The table model for which the content is written.TableWriterTemplate.writeTableBodyCloser(org.displaytag.model.TableModel)protected void writeTableCloser(TableModel model)
writeTableCloser in class TableWriterAdaptermodel - The table model for which the content is written.TableWriterTemplate.writeTableCloser(org.displaytag.model.TableModel)protected void writeBottomBanner(TableModel model)
writeBottomBanner in class TableWriterAdaptermodel - The table model for which the content is written.TableWriterTemplate.writeBottomBanner(org.displaytag.model.TableModel)protected void writeDecoratedTableFinish(TableModel model)
TableWriterTemplate
writeDecoratedTableFinish in class TableWriterAdaptermodel - The table model for which the content is written.TableWriterTemplate.writeDecoratedTableFinish(org.displaytag.model.TableModel)protected void writeDecoratedRowStart(TableModel model)
TableWriterTemplate
writeDecoratedRowStart in class TableWriterAdaptermodel - The table model for which the content is written.TableWriterTemplate.writeDecoratedRowStart(org.displaytag.model.TableModel)protected void writeRowOpener(Row row)
writeRowOpener in class TableWriterAdapterrow - The table row for which the content is written.TableWriterTemplate.writeRowOpener(org.displaytag.model.Row)
protected void writeColumnOpener(Column column)
throws ObjectLookupException,
DecoratorException
writeColumnOpener in class TableWriterAdaptercolumn - The table column for which the content is written.
ObjectLookupException
DecoratorExceptionTableWriterTemplate.writeColumnOpener(org.displaytag.model.Column)protected void writeColumnCloser(Column column)
writeColumnCloser in class TableWriterAdaptercolumn - The table column for which the content is written.TableWriterTemplate.writeColumnCloser(org.displaytag.model.Column)protected void writeRowWithNoColumns(java.lang.String rowValue)
writeRowWithNoColumns in class TableWriterAdapterrowValue - The row value.TableWriterTemplate.writeRowWithNoColumns(java.lang.String)protected void writeRowCloser(Row row)
writeRowCloser in class TableWriterAdapterrow - The table row for which the content is written.TableWriterTemplate.writeRowCloser(org.displaytag.model.Row)protected void writeDecoratedRowFinish(TableModel model)
TableWriterTemplate
writeDecoratedRowFinish in class TableWriterAdaptermodel - The table model for which the content is written.TableWriterTemplate.writeDecoratedRowFinish(org.displaytag.model.TableModel)protected void writeEmptyListMessage(java.lang.String emptyListMessage)
writeEmptyListMessage in class TableWriterAdapteremptyListMessage - A message explaining that the table model contains no data.TableWriterTemplate.writeEmptyListMessage(java.lang.String)
protected void writeColumnValue(java.lang.Object value,
Column column)
writeColumnValue in class TableWriterAdaptervalue - The column value.column - The table column for which the content is written.org.displaytag.render.TableWriterTemplate#writeColumnValue(java.lang.String,org.displaytag.model.Column)protected void writeEmptyListRowMessage(java.lang.String message)
writeEmptyListRowMessage in class TableWriterAdaptermessage - The message explaining that the row contains no data.TableWriterTemplate.writeEmptyListRowMessage(java.lang.String)protected void writeTableHeader(TableModel model)
writeTableHeader in class TableWriterAdaptermodel - The table model for which the content is written.TableWriterTemplate.writeTableHeader(org.displaytag.model.TableModel)public void writeNavigationAndExportLinks()
public void writeSearchResultAndNavigation()
public java.lang.String getOpenTag()
%lt;table attribute="value" ... >public void write(java.lang.String string)
string - String
public void writeTable(TableModel model,
java.lang.String id)
throws javax.servlet.jsp.JspException
TableWriterTemplate
writeTable in class TableWriterTemplatemodel - The table model used to build the table.id - This table's page id.
javax.servlet.jsp.JspException - if any exception thrown while constructing the tablei, it is caught and rethrown as a
JspException. Extension classes may throw all sorts of exceptions, depending on their respective formats and
destinations.public void write(java.lang.Object string)
string - String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||