<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!-- saved from url=(0014)about:internet --> | |
<HTML> | |
<HEAD> | |
<!-- Generated by javadoc (build 1.5.0_19) on Sun Mar 20 20:56:06 PKT 2011 --> | |
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<TITLE> | |
Table (Click Framework API - v2.3.0) | |
</TITLE> | |
<META NAME="keywords" CONTENT="org.apache.click.control.Table class"> | |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> | |
<SCRIPT type="text/javascript"> | |
function windowTitle() | |
{ | |
parent.document.title="Table (Click Framework API - v2.3.0)"; | |
} | |
</SCRIPT> | |
<NOSCRIPT> | |
</NOSCRIPT> | |
</HEAD> | |
<BODY BGCOLOR="white"> | |
<!-- ========= START OF TOP NAVBAR ======= --> | |
<A NAME="navbar_top"><!-- --></A> | |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_top_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../org/apache/click/control/Submit.html" title="class in org.apache.click.control"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/click/control/TablePaginator.html" title="class in org.apache.click.control"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../index.html?org/apache/click/control/Table.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="Table.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_top"></A> | |
<!-- ========= END OF TOP NAVBAR ========= --> | |
<HR> | |
<!-- ======== START OF CLASS DATA ======== --> | |
<H2> | |
<FONT SIZE="-1"> | |
org.apache.click.control</FONT> | |
<BR> | |
Class Table</H2> | |
<PRE> | |
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> | |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">org.apache.click.control.AbstractControl</A> | |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.click.control.Table</B> | |
</PRE> | |
<DL> | |
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A>, <A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A>, <A HREF="../../../../org/apache/click/Stateful.html" title="interface in org.apache.click">Stateful</A></DD> | |
</DL> | |
<HR> | |
<DL> | |
<DT><PRE>public class <B>Table</B><DT>extends <A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A><DT>implements <A HREF="../../../../org/apache/click/Stateful.html" title="interface in org.apache.click">Stateful</A></DL> | |
</PRE> | |
<P> | |
Provides a HTML Table control: <table>. | |
<table class='htmlHeader' cellspacing='10'> | |
<tr> | |
<td> | |
<img align='middle' hspace='2'src='table.png' title='Table'/> | |
</td> | |
</tr> | |
</table> | |
The Table control provides a HTML <table> control with | |
<a href="http://sourceforge.net/projects/displaytag">DisplayTag</a> | |
like functionality. The design of the Table control has been informed by | |
the excellent DisplayTag library. | |
<h3>Table Example</h3> | |
An example Table usage is provided below: | |
<pre class="prettyprint"> | |
public class CustomersPage extends BorderPage { | |
public Table table = new Table(); | |
public ActionLink deleteLink = new ActionLink("Delete", this, "onDeleteClick"); | |
public CustomersPage() { | |
table.setClass(Table.CLASS_ITS); | |
table.setPageSize(4); | |
table.setShowBanner(true); | |
table.setSortable(true); | |
table.addColumn(new Column("id")); | |
table.addColumn(new Column("name")); | |
Column column = new Column("email"); | |
column.setAutolink(true); | |
table.addColumn(column); | |
table.addColumn(new Column("investments")); | |
column = new Column("Action"); | |
column.setDecorator(new LinkDecorator(table, deleteLink, "id")); | |
column.setSortable(false); | |
table.addColumn(column); | |
// Set data provider to populate the table row list from | |
table.setDataProvider(new DataProvider() { | |
public List getData() { | |
return getCustomerService().getCustomersSortedByName(); | |
} | |
}); | |
} | |
public boolean onDeleteClick() { | |
Integer id = deleteLink.getValueInteger(); | |
getCustomerService().deleteCustomer(id); | |
return true; | |
} | |
} </pre> | |
<h3><a name="dataprovider"></a>DataProvider</h3> | |
In the example above a <A HREF="../../../../org/apache/click/dataprovider/DataProvider.html" title="interface in org.apache.click.dataprovider"><CODE>DataProvider</CODE></A> | |
is used to populate the Table <A HREF="../../../../org/apache/click/control/Table.html#setRowList(java.util.List)"><CODE>row list</CODE></A> | |
from. DataProviders are used to provide data on demand to controls. For very | |
<tt>large data sets</tt> use a <A HREF="../../../../org/apache/click/dataprovider/PagingDataProvider.html" title="interface in org.apache.click.dataprovider"><CODE>PagingDataProvider</CODE></A> | |
instead. See the section <a href="#large-datasets">large data sets</a> for | |
details. | |
<h3><a name="resources"></a>CSS and JavaScript resources</h3> | |
The Table control makes use of the following resources (which Click automatically | |
deploys to the application directory, <tt>/click</tt>): | |
<ul> | |
<li><tt>click/table.css</tt></li> | |
</ul> | |
To import the Table CSS styles and any control JavaScript simply reference | |
the variables <span class="blue">$headElements</span> and | |
<span class="blue">$jsElements</span> in the page template. For example: | |
<pre class="codeHtml"> | |
<html> | |
<head> | |
<span class="blue">$headElements</span> | |
</head> | |
<body> | |
<span class="red">$table</span> | |
<span class="blue">$jsElements</span> | |
</body> | |
</html> </pre> | |
<h3><a name="styles"></a>Table Styles</h3> | |
The table CSS style sheet is adapted from the DisplayTag <tt>screen.css</tt> | |
style sheet and includes the styles: | |
<ul style="margin-top:0.5em;"> | |
<li>blue1</li> | |
<li>blue2</li> | |
<li>complex</li> | |
<li>isi</li> | |
<li>its</li> | |
<li>mars</li> | |
<li>nocol</li> | |
<li>orange1</li> | |
<li>orange2</li> | |
<li>report</li> | |
<li>simple</li> | |
</ul> | |
To use one of these CSS styles set the table <span class="st">"class"</span> | |
attribute. For example in a page constructor: | |
<pre class="prettyprint"> | |
public LineItemsPage() { | |
Table table = new Table("table"); | |
table.setClass(Table.CLASS_SIMPLE); | |
.. | |
} </pre> | |
An alternative method of specifying the table class to use globally for your | |
application is to define a <tt>table-default-class</tt> message property | |
in your applications <tt>click-pages.properties</tt> file. For example: | |
<pre class="codeConfig"> | |
table-default-class=blue2 </pre> | |
<h3><a name="paging"></a>Paging</h3> | |
Table provides out-of-the-box paging. | |
<p/> | |
To enable Paging set the table's page size: <A HREF="../../../../org/apache/click/control/Table.html#setPageSize(int)"><CODE>setPageSize(int)</CODE></A> and | |
optionally make the Table Banner visible: <A HREF="../../../../org/apache/click/control/Table.html#setShowBanner(boolean)"><CODE>setShowBanner(boolean)</CODE></A>. | |
<p/> | |
Table supports rendering different paginators through the method | |
<A HREF="../../../../org/apache/click/control/Table.html#setPaginator(org.apache.click.control.Renderable)"><CODE>setPaginator</CODE></A>. | |
The default Table Paginator is <A HREF="../../../../org/apache/click/control/TablePaginator.html" title="class in org.apache.click.control"><CODE>TablePaginator</CODE></A>. | |
<h3><a name="sorting"></a>Sorting</h3> | |
Table also has built in column sorting. | |
<p/> | |
To enable/disable sorting use <A HREF="../../../../org/apache/click/control/Table.html#setSortable(boolean)"><CODE>setSortable(boolean)</CODE></A>. | |
<h3><a name="custom-parameters"></a>Custom Parameters - preserve state when paging and sorting</h3> | |
Its often necessary to add extra parameters on the Table links in order to | |
preserve state when navigating between pages or sorting columns. | |
<p/> | |
One can easily add extra parameters to links generated by the Table through | |
the Table's <A HREF="../../../../org/apache/click/control/Table.html#getControlLink()"><CODE>controlLink</CODE></A>. | |
<p/> | |
For example: | |
<pre class="prettyprint"> | |
public CompanyPage extends BorderPage { | |
// companyId is the criteria used to limit Table rows to clients from | |
// the specified company. This variable could be selected from a drop | |
// down list or similar means. | |
public String companyId; | |
public Table table = new Table(); | |
public onInit() { | |
// Set the companyId on the table's controlLink. If you view the | |
// output rendered by Table note that the companyId parameter | |
// is rendered for each Paging and Sorting link. | |
table.getControlLink().setParameter("companyId", companyId); | |
// Set data provider to populate the table row list from | |
table.setDataProvider(new DataProvider() { | |
public List getData() { | |
return getCompanyDao().getCompanyClients(companyId); | |
} | |
}); | |
} | |
... | |
} </pre> | |
<h3><a name="row-attributes"></a>Row Attributes</h3> | |
Sometimes it is useful to add HTML attributes on individual rows. For these | |
cases one can override the method <A HREF="../../../../org/apache/click/control/Table.html#addRowAttributes(java.util.Map, java.lang.Object, int)"><CODE>addRowAttributes(java.util.Map, java.lang.Object, int)</CODE></A> | |
and add custom attributes to the row's attribute Map. | |
<h3><a name="large-datasets"></a>Large Datasets</h3> | |
For large data sets use a <A HREF="../../../../org/apache/click/dataprovider/PagingDataProvider.html" title="interface in org.apache.click.dataprovider"><CODE>PagingDataProvider</CODE></A>. | |
<p/> | |
A PagingDataProvider has two responsibilities. First, it must load | |
only those rows to be displayed on the current page e.g. rows 50 - 59. | |
Second, it must return the <tt>total number of rows</tt> represented by the | |
PagingDataProvider. | |
<p/> | |
The Table methods <A HREF="../../../../org/apache/click/control/Table.html#getFirstRow()"><CODE>getFirstRow()</CODE></A>, <A HREF="../../../../org/apache/click/control/Table.html#getLastRow()"><CODE>getLastRow()</CODE></A> | |
and <A HREF="../../../../org/apache/click/control/Table.html#getPageSize()"><CODE>getPageSize()</CODE></A> provides the necessary information to limit | |
the rows to the selected page. For sorting, the Table methods | |
<A HREF="../../../../org/apache/click/control/Table.html#getSortedColumn()"><CODE>getSortedColumn()</CODE></A> and <A HREF="../../../../org/apache/click/control/Table.html#isSortedAscending()"><CODE>isSortedAscending()</CODE></A> provides the | |
necessary information to sort the data. | |
<p/> | |
<b>Please note</b>: when using a PagingDataProvider, you are responsible | |
for sorting the data, as the Table does not have access to all the data. | |
<p/> | |
Example usage: | |
<pre class="prettyprint"> | |
public CustomerPage() { | |
Table table = new Table("table"); | |
table.setPageSize(10); | |
table.setShowBanner(true); | |
table.setSortable(true); | |
table.addColumn(new Column("id")); | |
table.addColumn(new Column("name")); | |
table.addColumn(new Column("investments")); | |
table.setDataProvider(new PagingDataProvider() { | |
public List getData() { | |
int start = table.getFirstRow(); | |
int count = table.getPageSize(); | |
String sortColumn = table.getSortedColumn(); | |
boolean ascending = table.isSortedAscending(); | |
return getCustomerService().getCustomersForPage(start, count, sortColumn, ascending); | |
} | |
public int size() { | |
return getCustomerService().getNumberOfCustomers(); | |
} | |
}); | |
} </pre> | |
For a live demonstration see the | |
<a href="http://click.avoka.com/click-examples/table/large-dataset-demo.htm">Large Dataset Demo</a>. | |
<p/> | |
See the W3C HTML reference | |
<a class="external" target="_blank" title="W3C HTML 4.01 Specification" | |
href="http://www.w3.org/TR/html401/struct/tables.html">Tables</a> | |
and the W3C CSS reference | |
<a class="external" target="_blank" title="W3C CSS 2.1 Specification" | |
href="http://www.w3.org/TR/CSS21/tables.html">Tables</a>. | |
<P> | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control"><CODE>Column</CODE></A>, | |
<A HREF="../../../../org/apache/click/control/Decorator.html" title="interface in org.apache.click.control"><CODE>Decorator</CODE></A>, | |
<A HREF="../../../../serialized-form.html#org.apache.click.control.Table">Serialized Form</A></DL> | |
<HR> | |
<P> | |
<!-- =========== FIELD SUMMARY =========== --> | |
<A NAME="field_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Field Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#ASCENDING">ASCENDING</A></B></CODE> | |
<BR> | |
The control ActionLink page number parameter name: <tt>"ascending"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#bannerPosition">bannerPosition</A></B></CODE> | |
<BR> | |
The table pagination banner position: | |
<tt>[ POSITION_TOP | POSITION_BOTTOM | POSITION_BOTH ]</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#caption">caption</A></B></CODE> | |
<BR> | |
The table HTML <caption> element.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#CLASS_BLUE1">CLASS_BLUE1</A></B></CODE> | |
<BR> | |
The table CSS style: <tt>"blue1"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#CLASS_BLUE2">CLASS_BLUE2</A></B></CODE> | |
<BR> | |
The table CSS style: <tt>"blue2"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#CLASS_COMPLEX">CLASS_COMPLEX</A></B></CODE> | |
<BR> | |
The table CSS style: <tt>"complex"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#CLASS_ISI">CLASS_ISI</A></B></CODE> | |
<BR> | |
The table CSS style: <tt>"isi"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#CLASS_ITS">CLASS_ITS</A></B></CODE> | |
<BR> | |
The table CSS style: <tt>"its"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#CLASS_MARS">CLASS_MARS</A></B></CODE> | |
<BR> | |
The table CSS style: <tt>"mars"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#CLASS_NOCOL">CLASS_NOCOL</A></B></CODE> | |
<BR> | |
The table CSS style: <tt>"nocol"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#CLASS_ORANGE1">CLASS_ORANGE1</A></B></CODE> | |
<BR> | |
The table CSS style: <tt>"orange1"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#CLASS_ORANGE2">CLASS_ORANGE2</A></B></CODE> | |
<BR> | |
The table CSS style: <tt>"orange2"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#CLASS_REPORT">CLASS_REPORT</A></B></CODE> | |
<BR> | |
The table CSS style: <tt>"report"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#CLASS_SIMPLE">CLASS_SIMPLE</A></B></CODE> | |
<BR> | |
The table CSS style: <tt>"simple"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#CLASS_STYLES">CLASS_STYLES</A></B></CODE> | |
<BR> | |
The array of pre-defined table CSS class styles.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#COLUMN">COLUMN</A></B></CODE> | |
<BR> | |
The control ActionLink sorted column parameter name: <tt>"column"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A>></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#columnList">columnList</A></B></CODE> | |
<BR> | |
The list of table Columns.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>,<A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A>></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#columns">columns</A></B></CODE> | |
<BR> | |
The map of table columns keyed by column name.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="../../../../org/apache/click/control/ActionLink.html" title="class in org.apache.click.control">ActionLink</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#controlLink">controlLink</A></B></CODE> | |
<BR> | |
The table paging and sorting control action link.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A>></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#controlList">controlList</A></B></CODE> | |
<BR> | |
The list of table controls.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="../../../../org/apache/click/dataprovider/DataProvider.html" title="interface in org.apache.click.dataprovider">DataProvider</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#dataProvider">dataProvider</A></B></CODE> | |
<BR> | |
The table data provider.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#height">height</A></B></CODE> | |
<BR> | |
The table HTML <td> height attribute.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#hoverRows">hoverRows</A></B></CODE> | |
<BR> | |
The table rows set 'hover' CSS class on mouseover events flag.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#nullifyRowListOnDestroy">nullifyRowListOnDestroy</A></B></CODE> | |
<BR> | |
<B>Deprecated.</B> <I>stateful pages are not supported anymore, use stateful | |
Controls instead</I></TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#PAGE">PAGE</A></B></CODE> | |
<BR> | |
The control ActionLink page number parameter name: <tt>"page"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#pageNumber">pageNumber</A></B></CODE> | |
<BR> | |
The currently displayed page number.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#pageSize">pageSize</A></B></CODE> | |
<BR> | |
The maximum page size in rows.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="../../../../org/apache/click/control/Renderable.html" title="interface in org.apache.click.control">Renderable</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#paginator">paginator</A></B></CODE> | |
<BR> | |
The paginator used to render the table pagination controls.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#PAGINATOR_ATTACHED">PAGINATOR_ATTACHED</A></B></CODE> | |
<BR> | |
The attached style pagination banner position.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#PAGINATOR_DETACHED">PAGINATOR_DETACHED</A></B></CODE> | |
<BR> | |
The detached style pagination banner position.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#PAGINATOR_INLINE">PAGINATOR_INLINE</A></B></CODE> | |
<BR> | |
The attached style pagination banner position.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#paginatorAttachment">paginatorAttachment</A></B></CODE> | |
<BR> | |
The paginator attachment style: | |
<tt>[ PAGINATOR_ATTACHED | PAGINATOR_DETACHED | PAGINATOR_INLINE ]</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#POSITION_BOTH">POSITION_BOTH</A></B></CODE> | |
<BR> | |
The table top and bottom pagination banner position.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#POSITION_BOTTOM">POSITION_BOTTOM</A></B></CODE> | |
<BR> | |
The table bottom pagination banner position.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#POSITION_TOP">POSITION_TOP</A></B></CODE> | |
<BR> | |
The table top pagination banner position.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#renderId">renderId</A></B></CODE> | |
<BR> | |
The default column render id attribute status.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#rowCount">rowCount</A></B></CODE> | |
<BR> | |
The total possible number of rows of the table.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#rowList">rowList</A></B></CODE> | |
<BR> | |
The list Table rows.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#showBanner">showBanner</A></B></CODE> | |
<BR> | |
The show table banner flag detailing number of rows and current rows | |
displayed.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#SORT">SORT</A></B></CODE> | |
<BR> | |
The control ActionLink sort number parameter name: <tt>"sort"</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#sortable">sortable</A></B></CODE> | |
<BR> | |
The default column are sortable status.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#sorted">sorted</A></B></CODE> | |
<BR> | |
The row list is sorted status.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#sortedAscending">sortedAscending</A></B></CODE> | |
<BR> | |
The rows list is sorted in ascending order.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#sortedColumn">sortedColumn</A></B></CODE> | |
<BR> | |
The name of the sorted column.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#width">width</A></B></CODE> | |
<BR> | |
The table HTML <td> width attribute.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_org.apache.click.control.AbstractControl"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from class org.apache.click.control.<A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#actionListener">actionListener</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#attributes">attributes</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#behaviors">behaviors</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#headElements">headElements</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#listener">listener</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#listenerMethod">listenerMethod</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#messages">messages</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#name">name</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#parent">parent</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#styles">styles</A></CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_org.apache.click.Control"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from interface org.apache.click.<A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/click/Control.html#CONTROL_MESSAGES">CONTROL_MESSAGES</A></CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> | |
<A NAME="constructor_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Constructor Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#Table()">Table</A></B>()</CODE> | |
<BR> | |
Create a Table with no name defined.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#Table(java.lang.String)">Table</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</CODE> | |
<BR> | |
Create an Table for the given name.</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ========== METHOD SUMMARY =========== --> | |
<A NAME="method_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Method Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#add(org.apache.click.Control)">add</A></B>(<A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A> control)</CODE> | |
<BR> | |
Add the given Control to the table.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#addColumn(org.apache.click.control.Column)">addColumn</A></B>(<A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A> column)</CODE> | |
<BR> | |
Add the column to the table.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#addControl(org.apache.click.Control)">addControl</A></B>(<A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A> control)</CODE> | |
<BR> | |
<B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/click/control/Table.html#add(org.apache.click.Control)"><CODE>add(org.apache.click.Control)</CODE></A> instead</I></TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#addRowAttributes(java.util.Map, java.lang.Object, int)">addRowAttributes</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>,<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>> attributes, | |
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> row, | |
int rowIndex)</CODE> | |
<BR> | |
Override this method to set HTML attributes for each Table row.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#createRowList()">createRowList</A></B>()</CODE> | |
<BR> | |
Create a new table row list.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getBannerPosition()">getBannerPosition</A></B>()</CODE> | |
<BR> | |
Return the Table pagination banner position.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getCaption()">getCaption</A></B>()</CODE> | |
<BR> | |
Return the content of the table <tt><caption></tt> element, or null | |
if not defined.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getColumn(java.lang.String)">getColumn</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</CODE> | |
<BR> | |
Return the Column for the given name.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A>></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getColumnList()">getColumnList</A></B>()</CODE> | |
<BR> | |
Return the list of table columns.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>,<A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A>></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getColumns()">getColumns</A></B>()</CODE> | |
<BR> | |
Return the Map of table Columns, keyed on column name.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/click/control/ActionLink.html" title="class in org.apache.click.control">ActionLink</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getControlLink()">getControlLink</A></B>()</CODE> | |
<BR> | |
Return the table paging and sorting control action link.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A>></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getControls()">getControls</A></B>()</CODE> | |
<BR> | |
Return the list of Controls added to the table.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getControlSizeEst()">getControlSizeEst</A></B>()</CODE> | |
<BR> | |
Return the estimated rendered control size in characters.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/click/dataprovider/DataProvider.html" title="interface in org.apache.click.dataprovider">DataProvider</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getDataProvider()">getDataProvider</A></B>()</CODE> | |
<BR> | |
Return the table row list DataProvider.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getFirstRow()">getFirstRow</A></B>()</CODE> | |
<BR> | |
Return the index of the first row to display.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/apache/click/element/Element.html" title="class in org.apache.click.element">Element</A>></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getHeadElements()">getHeadElements</A></B>()</CODE> | |
<BR> | |
Return the Table HTML HEAD elements for the following resource: | |
<tt>click/table.css</tt> | |
Additionally, the HEAD elements of the <A HREF="../../../../org/apache/click/control/Table.html#getControlLink()"><CODE>getControlLink()</CODE></A> will | |
also be returned.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getHeight()">getHeight</A></B>()</CODE> | |
<BR> | |
Return the table HTML <td> height attribute.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getHoverRows()">getHoverRows</A></B>()</CODE> | |
<BR> | |
Return true if the table row (<tr>) elements should have the | |
class="hover" attribute set on JavaScript mouseover events.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getLastRow()">getLastRow</A></B>()</CODE> | |
<BR> | |
Return the index of the last row to display.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getNullifyRowListOnDestroy()">getNullifyRowListOnDestroy</A></B>()</CODE> | |
<BR> | |
Return true if the Table will nullify the <tt>rowList</tt> when the | |
<tt>onDestroy()</tt> method is invoked.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getNumberPages()">getNumberPages</A></B>()</CODE> | |
<BR> | |
Return the number of pages to display.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getPageNumber()">getPageNumber</A></B>()</CODE> | |
<BR> | |
Return the currently displayed page number.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getPageSize()">getPageSize</A></B>()</CODE> | |
<BR> | |
Return the maximum page size in rows.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/click/control/Renderable.html" title="interface in org.apache.click.control">Renderable</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getPaginator()">getPaginator</A></B>()</CODE> | |
<BR> | |
Return the paginator for rendering the table pagination.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getPaginatorAttachment()">getPaginatorAttachment</A></B>()</CODE> | |
<BR> | |
Return the paginator attachment style.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getRenderId()">getRenderId</A></B>()</CODE> | |
<BR> | |
Returns the column render id attribute status.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getRowCount()">getRowCount</A></B>()</CODE> | |
<BR> | |
The total possible number of rows of the table.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getRowList()">getRowList</A></B>()</CODE> | |
<BR> | |
Return the list of table rows.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getShowBanner()">getShowBanner</A></B>()</CODE> | |
<BR> | |
Return the show Table banner flag detailing number of rows and current rows | |
displayed.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getSortable()">getSortable</A></B>()</CODE> | |
<BR> | |
Return the table default column are sortable status.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getSortedColumn()">getSortedColumn</A></B>()</CODE> | |
<BR> | |
Return the name of the sorted column, or null if not defined.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getState()">getState</A></B>()</CODE> | |
<BR> | |
Return the Table state.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getTag()">getTag</A></B>()</CODE> | |
<BR> | |
Return the table's html tag: <tt>table</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#getWidth()">getWidth</A></B>()</CODE> | |
<BR> | |
Return the table HTML <td> width attribute.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#hasControls()">hasControls</A></B>()</CODE> | |
<BR> | |
Return true if the table has any controls defined.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#isSorted()">isSorted</A></B>()</CODE> | |
<BR> | |
Return the sorted status of the table row list.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#isSortedAscending()">isSortedAscending</A></B>()</CODE> | |
<BR> | |
Return true if the sort order is ascending.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#onDestroy()">onDestroy</A></B>()</CODE> | |
<BR> | |
This method will clear the <tt>rowList</tt>, if the property | |
<tt>nullifyRowListOnDestroy</tt> is true, set the sorted flag to false and | |
will invoke the onDestroy() method of any child controls.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#onInit()">onInit</A></B>()</CODE> | |
<BR> | |
Initialize the controls contained in the Table.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#onProcess()">onProcess</A></B>()</CODE> | |
<BR> | |
Process any Table paging control requests, and process any added Table | |
Controls.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#onRender()">onRender</A></B>()</CODE> | |
<BR> | |
This method invokes <A HREF="../../../../org/apache/click/control/Table.html#getRowList()"><CODE>getRowList()</CODE></A> to ensure exceptions thrown | |
while retrieving table rows will be handled by the error page.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#removeColumn(org.apache.click.control.Column)">removeColumn</A></B>(<A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A> column)</CODE> | |
<BR> | |
Remove the given Column from the table.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#removeColumn(java.lang.String)">removeColumn</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</CODE> | |
<BR> | |
Remove the named column from the Table.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#removeColumns(java.util.List)">removeColumns</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>> columnNames)</CODE> | |
<BR> | |
Remove the list of named columns from the table.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#removeState(org.apache.click.Context)">removeState</A></B>(<A HREF="../../../../org/apache/click/Context.html" title="class in org.apache.click">Context</A> context)</CODE> | |
<BR> | |
Remove the Table state from the session for the given request context.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#render(org.apache.click.util.HtmlStringBuffer)">render</A></B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</CODE> | |
<BR> | |
Render the HTML representation of the Table.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#renderBodyNoRows(org.apache.click.util.HtmlStringBuffer)">renderBodyNoRows</A></B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</CODE> | |
<BR> | |
Render the table body content if no rows are in the row list.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#renderBodyRowColumns(org.apache.click.util.HtmlStringBuffer, int)">renderBodyRowColumns</A></B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer, | |
int rowIndex)</CODE> | |
<BR> | |
Render the current table body row cells.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#renderBodyRows(org.apache.click.util.HtmlStringBuffer)">renderBodyRows</A></B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</CODE> | |
<BR> | |
Render the table body rows for each of the rows in <tt>getRowList</tt>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#renderFooterRow(org.apache.click.util.HtmlStringBuffer)">renderFooterRow</A></B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</CODE> | |
<BR> | |
Render the table header footer row.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#renderHeaderRow(org.apache.click.util.HtmlStringBuffer)">renderHeaderRow</A></B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</CODE> | |
<BR> | |
Render the table header row of column names.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#renderPaginator(org.apache.click.util.HtmlStringBuffer)">renderPaginator</A></B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</CODE> | |
<BR> | |
Render the table pagination display.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#renderPagingControls(org.apache.click.util.HtmlStringBuffer)">renderPagingControls</A></B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</CODE> | |
<BR> | |
<B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/click/control/Table.html#renderPaginator(org.apache.click.util.HtmlStringBuffer)"><CODE>renderPaginator(HtmlStringBuffer)</CODE></A> instead, this | |
method is provided to support backward compatibility older Click 1.4 | |
customized tables. In these scenarios please override <A HREF="../../../../org/apache/click/control/Table.html#renderPaginator(org.apache.click.util.HtmlStringBuffer)"><CODE>renderPaginator(HtmlStringBuffer)</CODE></A> | |
method to invoke <A HREF="../../../../org/apache/click/control/Table.html#renderTableBanner(org.apache.click.util.HtmlStringBuffer)"><CODE>renderTableBanner(HtmlStringBuffer)</CODE></A> and <A HREF="../../../../org/apache/click/control/Table.html#renderPagingControls(org.apache.click.util.HtmlStringBuffer)"><CODE>renderPagingControls(HtmlStringBuffer)</CODE></A>.</I></TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#renderTableBanner(org.apache.click.util.HtmlStringBuffer)">renderTableBanner</A></B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</CODE> | |
<BR> | |
<B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/click/control/Table.html#renderPaginator(org.apache.click.util.HtmlStringBuffer)"><CODE>renderPaginator(HtmlStringBuffer)</CODE></A> instead, this | |
method is provided to support backward compatibility older Click 1.4 | |
customized tables. In these scenarios please override <A HREF="../../../../org/apache/click/control/Table.html#renderPaginator(org.apache.click.util.HtmlStringBuffer)"><CODE>renderPaginator(HtmlStringBuffer)</CODE></A> | |
method to invoke <A HREF="../../../../org/apache/click/control/Table.html#renderTableBanner(org.apache.click.util.HtmlStringBuffer)"><CODE>renderTableBanner(HtmlStringBuffer)</CODE></A> and <A HREF="../../../../org/apache/click/control/Table.html#renderPagingControls(org.apache.click.util.HtmlStringBuffer)"><CODE>renderPagingControls(HtmlStringBuffer)</CODE></A>.</I></TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#restoreState(org.apache.click.Context)">restoreState</A></B>(<A HREF="../../../../org/apache/click/Context.html" title="class in org.apache.click">Context</A> context)</CODE> | |
<BR> | |
Restore the Table state from the session for the given request context.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#saveState(org.apache.click.Context)">saveState</A></B>(<A HREF="../../../../org/apache/click/Context.html" title="class in org.apache.click">Context</A> context)</CODE> | |
<BR> | |
Save the Table state to the session for the given request context.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setBannerPosition(int)">setBannerPosition</A></B>(int value)</CODE> | |
<BR> | |
Set Table pagination banner position.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setCaption(java.lang.String)">setCaption</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> caption)</CODE> | |
<BR> | |
Set the content of the table <tt><caption></tt> element.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setClass(java.lang.String)">setClass</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</CODE> | |
<BR> | |
Set the HTML class attribute.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setDataProvider(org.apache.click.dataprovider.DataProvider)">setDataProvider</A></B>(<A HREF="../../../../org/apache/click/dataprovider/DataProvider.html" title="interface in org.apache.click.dataprovider">DataProvider</A> dataProvider)</CODE> | |
<BR> | |
Set the table row list <A HREF="../../../../org/apache/click/dataprovider/DataProvider.html" title="interface in org.apache.click.dataprovider"><CODE>DataProvider</CODE></A>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setHeight(java.lang.String)">setHeight</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</CODE> | |
<BR> | |
Set the table HTML <td> height attribute.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setHoverRows(boolean)">setHoverRows</A></B>(boolean hoverRows)</CODE> | |
<BR> | |
Set whether the table row (<tr>) elements should have the | |
class="hover" attribute set on JavaScript mouseover events.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setName(java.lang.String)">setName</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</CODE> | |
<BR> | |
Set the name of the Control.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setNullifyRowListOnDestroy(boolean)">setNullifyRowListOnDestroy</A></B>(boolean value)</CODE> | |
<BR> | |
Set the flag to nullify the <tt>rowList</tt> when the <tt>onDestroy()</tt> | |
method is invoked.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setPageNumber(int)">setPageNumber</A></B>(int pageNumber)</CODE> | |
<BR> | |
Set the currently displayed page number.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setPageSize(int)">setPageSize</A></B>(int pageSize)</CODE> | |
<BR> | |
Set the maximum page size in rows.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setPaginator(org.apache.click.control.Renderable)">setPaginator</A></B>(<A HREF="../../../../org/apache/click/control/Renderable.html" title="interface in org.apache.click.control">Renderable</A> value)</CODE> | |
<BR> | |
Set the paginator for rendering the table pagination controls.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setPaginatorAttachment(int)">setPaginatorAttachment</A></B>(int value)</CODE> | |
<BR> | |
Set Table pagination attachment style.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setParent(java.lang.Object)">setParent</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> parent)</CODE> | |
<BR> | |
Set the parent of the Table.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setRenderId(boolean)">setRenderId</A></B>(boolean renderId)</CODE> | |
<BR> | |
Set the column render id attribute status.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setRowList(java.util.List)">setRowList</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A> rowList)</CODE> | |
<BR> | |
Set the list of table rows.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setShowBanner(boolean)">setShowBanner</A></B>(boolean showBanner)</CODE> | |
<BR> | |
Set the show Table banner flag detailing number of rows and current rows | |
displayed.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setSortable(boolean)">setSortable</A></B>(boolean sortable)</CODE> | |
<BR> | |
Set the table default column are sortable status.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setSorted(boolean)">setSorted</A></B>(boolean value)</CODE> | |
<BR> | |
Set the sorted status of the table row list.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setSortedAscending(boolean)">setSortedAscending</A></B>(boolean ascending)</CODE> | |
<BR> | |
Set the ascending sort order status.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setSortedColumn(java.lang.String)">setSortedColumn</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> columnName)</CODE> | |
<BR> | |
Set the name of the sorted column, or null if not defined.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setState(java.lang.Object)">setState</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> state)</CODE> | |
<BR> | |
Set the Table state.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#setWidth(java.lang.String)">setWidth</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</CODE> | |
<BR> | |
Set the table HTML <td> width attribute.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/click/control/Table.html#sortRowList()">sortRowList</A></B>()</CODE> | |
<BR> | |
The default row list sorting method, which will sort the row list based | |
on the selected column if the row list is not already sorted.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_org.apache.click.control.AbstractControl"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class org.apache.click.control.<A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#addBehavior(org.apache.click.Behavior)">addBehavior</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#addStyleClass(java.lang.String)">addStyleClass</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#appendAttributes(org.apache.click.util.HtmlStringBuffer)">appendAttributes</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#dispatchActionEvent()">dispatchActionEvent</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getActionListener()">getActionListener</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getAttribute(java.lang.String)">getAttribute</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getAttributes()">getAttributes</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getBehaviors()">getBehaviors</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getContext()">getContext</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getHtmlImports()">getHtmlImports</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getId()">getId</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getMessage(java.lang.String)">getMessage</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getMessage(java.lang.String, java.lang.Object...)">getMessage</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getMessages()">getMessages</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getName()">getName</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getPage()">getPage</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getParent()">getParent</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getStyle(java.lang.String)">getStyle</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#getStyles()">getStyles</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#hasAttribute(java.lang.String)">hasAttribute</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#hasAttributes()">hasAttributes</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#hasBehaviors()">hasBehaviors</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#hasStyles()">hasStyles</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#isAjaxTarget(org.apache.click.Context)">isAjaxTarget</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#onDeploy(javax.servlet.ServletContext)">onDeploy</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#removeBehavior(org.apache.click.Behavior)">removeBehavior</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#removeStyleClass(java.lang.String)">removeStyleClass</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#renderTagBegin(java.lang.String, org.apache.click.util.HtmlStringBuffer)">renderTagBegin</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#renderTagEnd(java.lang.String, org.apache.click.util.HtmlStringBuffer)">renderTagEnd</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#setActionListener(org.apache.click.ActionListener)">setActionListener</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#setId(java.lang.String)">setId</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#setListener(java.lang.Object, java.lang.String)">setListener</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#setStyle(java.lang.String, java.lang.String)">setStyle</A>, <A HREF="../../../../org/apache/click/control/AbstractControl.html#toString()">toString</A></CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<P> | |
<!-- ============ FIELD DETAIL =========== --> | |
<A NAME="field_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Field Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="PAGINATOR_ATTACHED"><!-- --></A><H3> | |
PAGINATOR_ATTACHED</H3> | |
<PRE> | |
public static final int <B>PAGINATOR_ATTACHED</B></PRE> | |
<DL> | |
<DD>The attached style pagination banner position. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.PAGINATOR_ATTACHED">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="PAGINATOR_DETACHED"><!-- --></A><H3> | |
PAGINATOR_DETACHED</H3> | |
<PRE> | |
public static final int <B>PAGINATOR_DETACHED</B></PRE> | |
<DL> | |
<DD>The detached style pagination banner position. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.PAGINATOR_DETACHED">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="PAGINATOR_INLINE"><!-- --></A><H3> | |
PAGINATOR_INLINE</H3> | |
<PRE> | |
public static final int <B>PAGINATOR_INLINE</B></PRE> | |
<DL> | |
<DD>The attached style pagination banner position. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.PAGINATOR_INLINE">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="POSITION_TOP"><!-- --></A><H3> | |
POSITION_TOP</H3> | |
<PRE> | |
public static final int <B>POSITION_TOP</B></PRE> | |
<DL> | |
<DD>The table top pagination banner position. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.POSITION_TOP">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="POSITION_BOTTOM"><!-- --></A><H3> | |
POSITION_BOTTOM</H3> | |
<PRE> | |
public static final int <B>POSITION_BOTTOM</B></PRE> | |
<DL> | |
<DD>The table bottom pagination banner position. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.POSITION_BOTTOM">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="POSITION_BOTH"><!-- --></A><H3> | |
POSITION_BOTH</H3> | |
<PRE> | |
public static final int <B>POSITION_BOTH</B></PRE> | |
<DL> | |
<DD>The table top and bottom pagination banner position. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.POSITION_BOTH">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="ASCENDING"><!-- --></A><H3> | |
ASCENDING</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>ASCENDING</B></PRE> | |
<DL> | |
<DD>The control ActionLink page number parameter name: <tt>"ascending"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.ASCENDING">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="COLUMN"><!-- --></A><H3> | |
COLUMN</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>COLUMN</B></PRE> | |
<DL> | |
<DD>The control ActionLink sorted column parameter name: <tt>"column"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.COLUMN">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="PAGE"><!-- --></A><H3> | |
PAGE</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>PAGE</B></PRE> | |
<DL> | |
<DD>The control ActionLink page number parameter name: <tt>"page"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.PAGE">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="SORT"><!-- --></A><H3> | |
SORT</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>SORT</B></PRE> | |
<DL> | |
<DD>The control ActionLink sort number parameter name: <tt>"sort"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.SORT">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="CLASS_BLUE1"><!-- --></A><H3> | |
CLASS_BLUE1</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CLASS_BLUE1</B></PRE> | |
<DL> | |
<DD>The table CSS style: <tt>"blue1"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.CLASS_BLUE1">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="CLASS_BLUE2"><!-- --></A><H3> | |
CLASS_BLUE2</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CLASS_BLUE2</B></PRE> | |
<DL> | |
<DD>The table CSS style: <tt>"blue2"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.CLASS_BLUE2">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="CLASS_COMPLEX"><!-- --></A><H3> | |
CLASS_COMPLEX</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CLASS_COMPLEX</B></PRE> | |
<DL> | |
<DD>The table CSS style: <tt>"complex"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.CLASS_COMPLEX">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="CLASS_ISI"><!-- --></A><H3> | |
CLASS_ISI</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CLASS_ISI</B></PRE> | |
<DL> | |
<DD>The table CSS style: <tt>"isi"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.CLASS_ISI">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="CLASS_ITS"><!-- --></A><H3> | |
CLASS_ITS</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CLASS_ITS</B></PRE> | |
<DL> | |
<DD>The table CSS style: <tt>"its"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.CLASS_ITS">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="CLASS_MARS"><!-- --></A><H3> | |
CLASS_MARS</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CLASS_MARS</B></PRE> | |
<DL> | |
<DD>The table CSS style: <tt>"mars"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.CLASS_MARS">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="CLASS_NOCOL"><!-- --></A><H3> | |
CLASS_NOCOL</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CLASS_NOCOL</B></PRE> | |
<DL> | |
<DD>The table CSS style: <tt>"nocol"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.CLASS_NOCOL">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="CLASS_ORANGE1"><!-- --></A><H3> | |
CLASS_ORANGE1</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CLASS_ORANGE1</B></PRE> | |
<DL> | |
<DD>The table CSS style: <tt>"orange1"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.CLASS_ORANGE1">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="CLASS_ORANGE2"><!-- --></A><H3> | |
CLASS_ORANGE2</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CLASS_ORANGE2</B></PRE> | |
<DL> | |
<DD>The table CSS style: <tt>"orange2"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.CLASS_ORANGE2">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="CLASS_REPORT"><!-- --></A><H3> | |
CLASS_REPORT</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CLASS_REPORT</B></PRE> | |
<DL> | |
<DD>The table CSS style: <tt>"report"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.CLASS_REPORT">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="CLASS_SIMPLE"><!-- --></A><H3> | |
CLASS_SIMPLE</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CLASS_SIMPLE</B></PRE> | |
<DL> | |
<DD>The table CSS style: <tt>"simple"</tt>. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.click.control.Table.CLASS_SIMPLE">Constant Field Values</A></DL> | |
</DL> | |
<HR> | |
<A NAME="CLASS_STYLES"><!-- --></A><H3> | |
CLASS_STYLES</H3> | |
<PRE> | |
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] <B>CLASS_STYLES</B></PRE> | |
<DL> | |
<DD>The array of pre-defined table CSS class styles. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="bannerPosition"><!-- --></A><H3> | |
bannerPosition</H3> | |
<PRE> | |
protected int <B>bannerPosition</B></PRE> | |
<DL> | |
<DD>The table pagination banner position: | |
<tt>[ POSITION_TOP | POSITION_BOTTOM | POSITION_BOTH ]</tt>. | |
The default position is <tt>POSITION_BOTTOM</tt>. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="caption"><!-- --></A><H3> | |
caption</H3> | |
<PRE> | |
protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>caption</B></PRE> | |
<DL> | |
<DD>The table HTML <caption> element. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="columns"><!-- --></A><H3> | |
columns</H3> | |
<PRE> | |
protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>,<A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A>> <B>columns</B></PRE> | |
<DL> | |
<DD>The map of table columns keyed by column name. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="columnList"><!-- --></A><H3> | |
columnList</H3> | |
<PRE> | |
protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A>> <B>columnList</B></PRE> | |
<DL> | |
<DD>The list of table Columns. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="controlLink"><!-- --></A><H3> | |
controlLink</H3> | |
<PRE> | |
protected <A HREF="../../../../org/apache/click/control/ActionLink.html" title="class in org.apache.click.control">ActionLink</A> <B>controlLink</B></PRE> | |
<DL> | |
<DD>The table paging and sorting control action link. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="controlList"><!-- --></A><H3> | |
controlList</H3> | |
<PRE> | |
protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A>> <B>controlList</B></PRE> | |
<DL> | |
<DD>The list of table controls. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="height"><!-- --></A><H3> | |
height</H3> | |
<PRE> | |
protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>height</B></PRE> | |
<DL> | |
<DD>The table HTML <td> height attribute. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="dataProvider"><!-- --></A><H3> | |
dataProvider</H3> | |
<PRE> | |
protected <A HREF="../../../../org/apache/click/dataprovider/DataProvider.html" title="interface in org.apache.click.dataprovider">DataProvider</A> <B>dataProvider</B></PRE> | |
<DL> | |
<DD>The table data provider. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="rowCount"><!-- --></A><H3> | |
rowCount</H3> | |
<PRE> | |
protected int <B>rowCount</B></PRE> | |
<DL> | |
<DD>The total possible number of rows of the table. This value | |
could be much larger than the number of entries in the <A HREF="../../../../org/apache/click/control/Table.html#rowList"><CODE>rowList</CODE></A>, | |
indicating that some rows have not been loaded yet. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="hoverRows"><!-- --></A><H3> | |
hoverRows</H3> | |
<PRE> | |
protected boolean <B>hoverRows</B></PRE> | |
<DL> | |
<DD>The table rows set 'hover' CSS class on mouseover events flag. By default | |
hoverRows is false. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="nullifyRowListOnDestroy"><!-- --></A><H3> | |
nullifyRowListOnDestroy</H3> | |
<PRE> | |
protected boolean <B>nullifyRowListOnDestroy</B></PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <I>stateful pages are not supported anymore, use stateful | |
Controls instead</I><DD>Flag indicating if <tt>rowList</tt> is nullified when | |
<tt>onDestroy()</tt> is invoked, default is true. This flag only applies | |
to <tt>stateful</tt> pages. | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/control/Table.html#setNullifyRowListOnDestroy(boolean)"><CODE>setNullifyRowListOnDestroy(boolean)</CODE></A></DL> | |
</DL> | |
<HR> | |
<A NAME="pageNumber"><!-- --></A><H3> | |
pageNumber</H3> | |
<PRE> | |
protected int <B>pageNumber</B></PRE> | |
<DL> | |
<DD>The currently displayed page number. The page number is zero indexed, | |
i.e. the page number of the first page is 0. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="pageSize"><!-- --></A><H3> | |
pageSize</H3> | |
<PRE> | |
protected int <B>pageSize</B></PRE> | |
<DL> | |
<DD>The maximum page size in rows. A value of 0 means there is no maximum | |
page size. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="paginator"><!-- --></A><H3> | |
paginator</H3> | |
<PRE> | |
protected <A HREF="../../../../org/apache/click/control/Renderable.html" title="interface in org.apache.click.control">Renderable</A> <B>paginator</B></PRE> | |
<DL> | |
<DD>The paginator used to render the table pagination controls. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="paginatorAttachment"><!-- --></A><H3> | |
paginatorAttachment</H3> | |
<PRE> | |
protected int <B>paginatorAttachment</B></PRE> | |
<DL> | |
<DD>The paginator attachment style: | |
<tt>[ PAGINATOR_ATTACHED | PAGINATOR_DETACHED | PAGINATOR_INLINE ]</tt>. | |
The default paginator attachment type is <tt>PAGINATOR_ATTACHED</tt>. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="renderId"><!-- --></A><H3> | |
renderId</H3> | |
<PRE> | |
protected boolean <B>renderId</B></PRE> | |
<DL> | |
<DD>The default column render id attribute status. The default value is | |
false. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="rowList"><!-- --></A><H3> | |
rowList</H3> | |
<PRE> | |
protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>rowList</B></PRE> | |
<DL> | |
<DD>The list Table rows. Please note the rowList is cleared in table | |
<A HREF="../../../../org/apache/click/control/Table.html#onDestroy()"><CODE>onDestroy()</CODE></A> method at the end of each request. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="showBanner"><!-- --></A><H3> | |
showBanner</H3> | |
<PRE> | |
protected boolean <B>showBanner</B></PRE> | |
<DL> | |
<DD>The show table banner flag detailing number of rows and current rows | |
displayed. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="sortable"><!-- --></A><H3> | |
sortable</H3> | |
<PRE> | |
protected boolean <B>sortable</B></PRE> | |
<DL> | |
<DD>The default column are sortable status. By default columnsSortable is | |
false. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="sorted"><!-- --></A><H3> | |
sorted</H3> | |
<PRE> | |
protected boolean <B>sorted</B></PRE> | |
<DL> | |
<DD>The row list is sorted status. By default sorted is false. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="sortedAscending"><!-- --></A><H3> | |
sortedAscending</H3> | |
<PRE> | |
protected boolean <B>sortedAscending</B></PRE> | |
<DL> | |
<DD>The rows list is sorted in ascending order. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="sortedColumn"><!-- --></A><H3> | |
sortedColumn</H3> | |
<PRE> | |
protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>sortedColumn</B></PRE> | |
<DL> | |
<DD>The name of the sorted column. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="width"><!-- --></A><H3> | |
width</H3> | |
<PRE> | |
protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>width</B></PRE> | |
<DL> | |
<DD>The table HTML <td> width attribute. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<!-- ========= CONSTRUCTOR DETAIL ======== --> | |
<A NAME="constructor_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Constructor Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="Table(java.lang.String)"><!-- --></A><H3> | |
Table</H3> | |
<PRE> | |
public <B>Table</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE> | |
<DL> | |
<DD>Create an Table for the given name. | |
<P> | |
<DL> | |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the table name | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the name is null</DL> | |
</DL> | |
<HR> | |
<A NAME="Table()"><!-- --></A><H3> | |
Table</H3> | |
<PRE> | |
public <B>Table</B>()</PRE> | |
<DL> | |
<DD>Create a Table with no name defined. | |
<p/> | |
<b>Please note</b> the control's name must be defined before it is valid. | |
<P> | |
</DL> | |
<!-- ============ METHOD DETAIL ========== --> | |
<A NAME="method_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Method Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="getTag()"><!-- --></A><H3> | |
getTag</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getTag</B>()</PRE> | |
<DL> | |
<DD>Return the table's html tag: <tt>table</tt>. | |
<P> | |
<DD><DL> | |
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#getTag()">getTag</A></CODE> in class <CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>this controls html tag<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/control/AbstractControl.html#getTag()"><CODE>AbstractControl.getTag()</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setParent(java.lang.Object)"><!-- --></A><H3> | |
setParent</H3> | |
<PRE> | |
public void <B>setParent</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> parent)</PRE> | |
<DL> | |
<DD>Set the parent of the Table. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/click/Control.html#setParent(java.lang.Object)">setParent</A></CODE> in interface <CODE><A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#setParent(java.lang.Object)">setParent</A></CODE> in class <CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>parent</CODE> - the parent of the Table | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if <A HREF="../../../../org/apache/click/control/AbstractControl.html#name"><CODE>AbstractControl.name</CODE></A> is not defined | |
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the given parent instance is | |
referencing <tt>this</tt> object: <tt>if (parent == this)</tt><DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/Control.html#setParent(java.lang.Object)"><CODE>Control.setParent(Object)</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getBannerPosition()"><!-- --></A><H3> | |
getBannerPosition</H3> | |
<PRE> | |
public int <B>getBannerPosition</B>()</PRE> | |
<DL> | |
<DD>Return the Table pagination banner position. Banner position values: | |
<tt>[ POSITION_TOP | POSITION_BOTTOM | POSITION_BOTH ]</tt>. | |
The default banner position is <tt>POSITION_BOTTOM</tt>. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the table pagination banner position</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setBannerPosition(int)"><!-- --></A><H3> | |
setBannerPosition</H3> | |
<PRE> | |
public void <B>setBannerPosition</B>(int value)</PRE> | |
<DL> | |
<DD>Set Table pagination banner position. Banner position values: | |
<tt>[ POSITION_TOP | POSITION_BOTTOM | POSITION_BOTH ]</tt>. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the table pagination banner position</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getCaption()"><!-- --></A><H3> | |
getCaption</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getCaption</B>()</PRE> | |
<DL> | |
<DD>Return the content of the table <tt><caption></tt> element, or null | |
if not defined. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the content of the table caption element, or <tt>null</tt> if not | |
defined.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setCaption(java.lang.String)"><!-- --></A><H3> | |
setCaption</H3> | |
<PRE> | |
public void <B>setCaption</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> caption)</PRE> | |
<DL> | |
<DD>Set the content of the table <tt><caption></tt> element. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>caption</CODE> - the content of the caption element.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setClass(java.lang.String)"><!-- --></A><H3> | |
setClass</H3> | |
<PRE> | |
public void <B>setClass</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE> | |
<DL> | |
<DD>Set the HTML class attribute. | |
<p/> | |
<b>Note:</b> this method will replace the existing <tt>"class"</tt> | |
attribute value. | |
<p/> | |
Predefined table CSS classes include: | |
<ul> | |
<li>complex</li> | |
<li>isi</li> | |
<li>its</li> | |
<li>mars</li> | |
<li>nocol</li> | |
<li>report</li> | |
<li>simple</li> | |
</ul> | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the HTML class attribute</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="addColumn(org.apache.click.control.Column)"><!-- --></A><H3> | |
addColumn</H3> | |
<PRE> | |
public <A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A> <B>addColumn</B>(<A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A> column)</PRE> | |
<DL> | |
<DD>Add the column to the table. The column will be added to the | |
<A HREF="../../../../org/apache/click/control/Table.html#columns"><CODE>columns</CODE></A> Map using its name. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>column</CODE> - the column to add to the table | |
<DT><B>Returns:</B><DD>the added column | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the table already contains a column | |
with the same name, or the column name is not defined</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="removeColumn(org.apache.click.control.Column)"><!-- --></A><H3> | |
removeColumn</H3> | |
<PRE> | |
public void <B>removeColumn</B>(<A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A> column)</PRE> | |
<DL> | |
<DD>Remove the given Column from the table. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>column</CODE> - the column to remove from the table</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="removeColumn(java.lang.String)"><!-- --></A><H3> | |
removeColumn</H3> | |
<PRE> | |
public void <B>removeColumn</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE> | |
<DL> | |
<DD>Remove the named column from the Table. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the column to remove from the table</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="removeColumns(java.util.List)"><!-- --></A><H3> | |
removeColumns</H3> | |
<PRE> | |
public void <B>removeColumns</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>> columnNames)</PRE> | |
<DL> | |
<DD>Remove the list of named columns from the table. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>columnNames</CODE> - the list of column names to remove from the table</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getNullifyRowListOnDestroy()"><!-- --></A><H3> | |
getNullifyRowListOnDestroy</H3> | |
<PRE> | |
public boolean <B>getNullifyRowListOnDestroy</B>()</PRE> | |
<DL> | |
<DD>Return true if the Table will nullify the <tt>rowList</tt> when the | |
<tt>onDestroy()</tt> method is invoked. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true if the rowList is nullified when onDestroy is invoked</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setNullifyRowListOnDestroy(boolean)"><!-- --></A><H3> | |
setNullifyRowListOnDestroy</H3> | |
<PRE> | |
public void <B>setNullifyRowListOnDestroy</B>(boolean value)</PRE> | |
<DL> | |
<DD>Set the flag to nullify the <tt>rowList</tt> when the <tt>onDestroy()</tt> | |
method is invoked. | |
<p/> | |
This option only applies to <tt>stateful</tt> pages. | |
<p/> | |
If this option is false, the rowList will be persisted between requests. | |
If this option is true (<tt>the default</tt>), the rowList must be set | |
each request. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the flag value to nullify the table rowList when onDestroy | |
is called</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getColumn(java.lang.String)"><!-- --></A><H3> | |
getColumn</H3> | |
<PRE> | |
public <A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A> <B>getColumn</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE> | |
<DL> | |
<DD>Return the Column for the given name. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the column to return | |
<DT><B>Returns:</B><DD>the Column for the given name</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getColumnList()"><!-- --></A><H3> | |
getColumnList</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A>> <B>getColumnList</B>()</PRE> | |
<DL> | |
<DD>Return the list of table columns. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the list of table columns</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getColumns()"><!-- --></A><H3> | |
getColumns</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>,<A HREF="../../../../org/apache/click/control/Column.html" title="class in org.apache.click.control">Column</A>> <B>getColumns</B>()</PRE> | |
<DL> | |
<DD>Return the Map of table Columns, keyed on column name. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the Map of table Columns, keyed on column name</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="addControl(org.apache.click.Control)"><!-- --></A><H3> | |
addControl</H3> | |
<PRE> | |
public <A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A> <B>addControl</B>(<A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A> control)</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/click/control/Table.html#add(org.apache.click.Control)"><CODE>add(org.apache.click.Control)</CODE></A> instead</I> | |
<P> | |
<DD>Add the given Control to the table. The control will be processed when | |
the Table is processed. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>control</CODE> - the Control to add to the table | |
<DT><B>Returns:</B><DD>the added control</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="add(org.apache.click.Control)"><!-- --></A><H3> | |
add</H3> | |
<PRE> | |
public <A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A> <B>add</B>(<A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A> control)</PRE> | |
<DL> | |
<DD>Add the given Control to the table. The control will be processed when | |
the Table is processed. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>control</CODE> - the Control to add to the table | |
<DT><B>Returns:</B><DD>the added control</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getControls()"><!-- --></A><H3> | |
getControls</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A>> <B>getControls</B>()</PRE> | |
<DL> | |
<DD>Return the list of Controls added to the table. Note table paging control | |
will not be returned in this list. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the list of table controls</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="hasControls()"><!-- --></A><H3> | |
hasControls</H3> | |
<PRE> | |
public boolean <B>hasControls</B>()</PRE> | |
<DL> | |
<DD>Return true if the table has any controls defined. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true if the table has any controls defined</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getControlLink()"><!-- --></A><H3> | |
getControlLink</H3> | |
<PRE> | |
public <A HREF="../../../../org/apache/click/control/ActionLink.html" title="class in org.apache.click.control">ActionLink</A> <B>getControlLink</B>()</PRE> | |
<DL> | |
<DD>Return the table paging and sorting control action link. | |
<p/> | |
<b>Note</b> you can set parameters on the returned ActionLink in order | |
to preserve state when paging or sorting columns. A common use case is | |
to filter out Table rows on specified criteria. See | |
<a href="#paging-and-sorting">here</a> for an example. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the table paging and sorting control action link</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getDataProvider()"><!-- --></A><H3> | |
getDataProvider</H3> | |
<PRE> | |
public <A HREF="../../../../org/apache/click/dataprovider/DataProvider.html" title="interface in org.apache.click.dataprovider">DataProvider</A> <B>getDataProvider</B>()</PRE> | |
<DL> | |
<DD>Return the table row list DataProvider. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the table row list DataProvider</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setDataProvider(org.apache.click.dataprovider.DataProvider)"><!-- --></A><H3> | |
setDataProvider</H3> | |
<PRE> | |
public void <B>setDataProvider</B>(<A HREF="../../../../org/apache/click/dataprovider/DataProvider.html" title="interface in org.apache.click.dataprovider">DataProvider</A> dataProvider)</PRE> | |
<DL> | |
<DD>Set the table row list <A HREF="../../../../org/apache/click/dataprovider/DataProvider.html" title="interface in org.apache.click.dataprovider"><CODE>DataProvider</CODE></A>. | |
The Table will retrieve its data from the DataProvider on demand. | |
<p/> | |
<b>Please note</b>: setting the dataProvider will nullify the table | |
<A HREF="../../../../org/apache/click/control/Table.html#setRowList(java.util.List)"><CODE>rowList</CODE></A>. | |
<p/> | |
Example usage: | |
<pre class="prettyprint"> | |
public CustomerPage() { | |
Table table = new Table("table"); | |
table.addColumn(new Column("id")); | |
table.addColumn(new Column("name")); | |
table.addColumn(new Column("investments")); | |
table.setDataProvider(new DataProvider() { | |
public List getData() { | |
return getCustomerService().getCustomers(); | |
} | |
}); | |
} </pre> | |
For <b>large</b> data sets use a <A HREF="../../../../org/apache/click/dataprovider/PagingDataProvider.html" title="interface in org.apache.click.dataprovider"><CODE>PagingDataProvider</CODE></A> | |
instead. | |
<p/> | |
The Table methods <A HREF="../../../../org/apache/click/control/Table.html#getFirstRow()"><CODE>getFirstRow()</CODE></A>, <A HREF="../../../../org/apache/click/control/Table.html#getLastRow()"><CODE>getLastRow()</CODE></A> | |
and <A HREF="../../../../org/apache/click/control/Table.html#getPageSize()"><CODE>getPageSize()</CODE></A> provides the necessary information to limit | |
the rows to the selected page. For sorting, the Table methods | |
<A HREF="../../../../org/apache/click/control/Table.html#getSortedColumn()"><CODE>getSortedColumn()</CODE></A> and <A HREF="../../../../org/apache/click/control/Table.html#isSortedAscending()"><CODE>isSortedAscending()</CODE></A> provides the | |
necessary information to sort the data. | |
<p/> | |
<b>Please note</b>: when using a PagingDataProvider, you are responsible | |
for sorting the data, as the Table does not have access to all the data. | |
<p/> | |
Example usage: | |
<pre class="prettyprint"> | |
public CustomerPage() { | |
Table table = new Table("table"); | |
table.setPageSize(10); | |
table.setShowBanner(true); | |
table.setSortable(true); | |
table.addColumn(new Column("id")); | |
table.addColumn(new Column("name")); | |
table.addColumn(new Column("investments")); | |
table.setDataProvider(new PagingDataProvider() { | |
public List getData() { | |
int start = table.getFirstRow(); | |
int count = table.getPageSize(); | |
String sortColumn = table.getSortedColumn(); | |
boolean ascending = table.isSortedAscending(); | |
return getCustomerService().getCustomersForPage(start, count, sortColumn, ascending); | |
} | |
public int size() { | |
return getCustomerService().getNumberOfCustomers(); | |
} | |
}); | |
} </pre> | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>dataProvider</CODE> - the table row list DataProvider<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/control/Table.html#setRowList(java.util.List)"><CODE>setRowList(java.util.List)</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getHeight()"><!-- --></A><H3> | |
getHeight</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getHeight</B>()</PRE> | |
<DL> | |
<DD>Return the table HTML <td> height attribute. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the table HTML <td> height attribute</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setHeight(java.lang.String)"><!-- --></A><H3> | |
setHeight</H3> | |
<PRE> | |
public void <B>setHeight</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE> | |
<DL> | |
<DD>Set the table HTML <td> height attribute. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the table HTML <td> height attribute</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getHoverRows()"><!-- --></A><H3> | |
getHoverRows</H3> | |
<PRE> | |
public boolean <B>getHoverRows</B>()</PRE> | |
<DL> | |
<DD>Return true if the table row (<tr>) elements should have the | |
class="hover" attribute set on JavaScript mouseover events. This class | |
can be used to define mouse over :hover CSS pseudo classes to create | |
table row highlight effects. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true if table rows elements will have the class 'hover' attribute | |
set on JavaScript mouseover events</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setHoverRows(boolean)"><!-- --></A><H3> | |
setHoverRows</H3> | |
<PRE> | |
public void <B>setHoverRows</B>(boolean hoverRows)</PRE> | |
<DL> | |
<DD>Set whether the table row (<tr>) elements should have the | |
class="hover" attribute set on JavaScript mouseover events. This class | |
can be used to define mouse over :hover CSS pseudo classes to create | |
table row highlight effects. For example: | |
<pre class="codeHtml"> | |
hover:hover { color: navy } </pre> | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>hoverRows</CODE> - specify whether class 'hover' rows attribute is rendered | |
(default false).</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getHeadElements()"><!-- --></A><H3> | |
getHeadElements</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/apache/click/element/Element.html" title="class in org.apache.click.element">Element</A>> <B>getHeadElements</B>()</PRE> | |
<DL> | |
<DD>Return the Table HTML HEAD elements for the following resource: | |
<ul> | |
<li><tt>click/table.css</tt></li> | |
</ul> | |
Additionally, the HEAD elements of the <A HREF="../../../../org/apache/click/control/Table.html#getControlLink()"><CODE>getControlLink()</CODE></A> will | |
also be returned. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/click/Control.html#getHeadElements()">getHeadElements</A></CODE> in interface <CODE><A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#getHeadElements()">getHeadElements</A></CODE> in class <CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the list of HEAD elements for the Table<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/Control.html#getHeadElements()"><CODE>Control.getHeadElements()</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setName(java.lang.String)"><!-- --></A><H3> | |
setName</H3> | |
<PRE> | |
public void <B>setName</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE> | |
<DL> | |
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/click/Control.html#setName(java.lang.String)">Control</A></CODE></B></DD> | |
<DD>Set the name of the Control. Each control name must be unique in the | |
containing Page model or the parent container. | |
<p/> | |
<b>Please note:</b> changing the name of a Control after it has been | |
added to its parent container is undefined. Thus it is best <b>not</b> | |
to change the name of a Control once its been set. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/click/Control.html#setName(java.lang.String)">setName</A></CODE> in interface <CODE><A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#setName(java.lang.String)">setName</A></CODE> in class <CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - of the control | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the name is null<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/Control.html#setName(java.lang.String)"><CODE>Control.setName(String)</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getNumberPages()"><!-- --></A><H3> | |
getNumberPages</H3> | |
<PRE> | |
public int <B>getNumberPages</B>()</PRE> | |
<DL> | |
<DD>Return the number of pages to display. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the number of pages to display</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getPageNumber()"><!-- --></A><H3> | |
getPageNumber</H3> | |
<PRE> | |
public int <B>getPageNumber</B>()</PRE> | |
<DL> | |
<DD>Return the currently displayed page number. The page number is zero | |
indexed, i.e. the page number of the first page is 0. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the currently displayed page number</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setPageNumber(int)"><!-- --></A><H3> | |
setPageNumber</H3> | |
<PRE> | |
public void <B>setPageNumber</B>(int pageNumber)</PRE> | |
<DL> | |
<DD>Set the currently displayed page number. The page number is zero | |
indexed, i.e. the page number of the first page is 0. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>pageNumber</CODE> - set the currently displayed page number</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getPageSize()"><!-- --></A><H3> | |
getPageSize</H3> | |
<PRE> | |
public int <B>getPageSize</B>()</PRE> | |
<DL> | |
<DD>Return the maximum page size in rows. A page size of 0 | |
means there is no maximum page size. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the maximum page size in rows</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getPaginator()"><!-- --></A><H3> | |
getPaginator</H3> | |
<PRE> | |
public <A HREF="../../../../org/apache/click/control/Renderable.html" title="interface in org.apache.click.control">Renderable</A> <B>getPaginator</B>()</PRE> | |
<DL> | |
<DD>Return the paginator for rendering the table pagination. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the table paginator</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setPaginator(org.apache.click.control.Renderable)"><!-- --></A><H3> | |
setPaginator</H3> | |
<PRE> | |
public void <B>setPaginator</B>(<A HREF="../../../../org/apache/click/control/Renderable.html" title="interface in org.apache.click.control">Renderable</A> value)</PRE> | |
<DL> | |
<DD>Set the paginator for rendering the table pagination controls. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the table paginator to set</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getPaginatorAttachment()"><!-- --></A><H3> | |
getPaginatorAttachment</H3> | |
<PRE> | |
public int <B>getPaginatorAttachment</B>()</PRE> | |
<DL> | |
<DD>Return the paginator attachment style. Renderable attachment style values: | |
<tt>[ PAGINATOR_ATTACHED | PAGINATOR_DETACHED | PAGINATOR_INLINE ]</tt>. | |
The default paginator attachment type is <tt>PAGINATOR_ATTACHED</tt>. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the paginator attachment style</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setPaginatorAttachment(int)"><!-- --></A><H3> | |
setPaginatorAttachment</H3> | |
<PRE> | |
public void <B>setPaginatorAttachment</B>(int value)</PRE> | |
<DL> | |
<DD>Set Table pagination attachment style. Renderable attachment style values: | |
<tt>[ PAGINATOR_ATTACHED | PAGINATOR_DETACHED | PAGINATOR_INLINE ]</tt>. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the table pagination attachment style</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setPageSize(int)"><!-- --></A><H3> | |
setPageSize</H3> | |
<PRE> | |
public void <B>setPageSize</B>(int pageSize)</PRE> | |
<DL> | |
<DD>Set the maximum page size in rows. A page size of 0 | |
means there is no maximum page size. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>pageSize</CODE> - the maximum page size in rows</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getRenderId()"><!-- --></A><H3> | |
getRenderId</H3> | |
<PRE> | |
public boolean <B>getRenderId</B>()</PRE> | |
<DL> | |
<DD>Returns the column render id attribute status. The default value | |
is false. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the column render id attribute status, default is false</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setRenderId(boolean)"><!-- --></A><H3> | |
setRenderId</H3> | |
<PRE> | |
public void <B>setRenderId</B>(boolean renderId)</PRE> | |
<DL> | |
<DD>Set the column render id attribute status. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>renderId</CODE> - set the column render id attribute status</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getRowList()"><!-- --></A><H3> | |
getRowList</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>getRowList</B>()</PRE> | |
<DL> | |
<DD>Return the list of table rows. Please note the rowList is cleared in | |
table <A HREF="../../../../org/apache/click/control/Table.html#onDestroy()"><CODE>onDestroy()</CODE></A> method at the end of each request. | |
<p/> | |
If the rowList is null, this method delegates to <A HREF="../../../../org/apache/click/control/Table.html#createRowList()"><CODE>createRowList()</CODE></A> | |
to create a new row list. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the list of table rows</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setRowList(java.util.List)"><!-- --></A><H3> | |
setRowList</H3> | |
<PRE> | |
public void <B>setRowList</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A> rowList)</PRE> | |
<DL> | |
<DD>Set the list of table rows. Each row can either be a value object | |
(JavaBean) or an instance of a <tt>Map</tt>. | |
<p/> | |
Although possible to set the table rows directly with this method, best | |
practice is to use a <A HREF="../../../../org/apache/click/control/Table.html#setDataProvider(org.apache.click.dataprovider.DataProvider)"><CODE>setDataProvider(org.apache.click.dataprovider.DataProvider)</CODE></A> | |
instead. | |
<p/> | |
Please note the rowList is cleared in table <A HREF="../../../../org/apache/click/control/Table.html#onDestroy()"><CODE>onDestroy()</CODE></A> method | |
at the end of each request. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>rowList</CODE> - the list of table rows to set</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getShowBanner()"><!-- --></A><H3> | |
getShowBanner</H3> | |
<PRE> | |
public boolean <B>getShowBanner</B>()</PRE> | |
<DL> | |
<DD>Return the show Table banner flag detailing number of rows and current rows | |
displayed. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the show Table banner flag</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setShowBanner(boolean)"><!-- --></A><H3> | |
setShowBanner</H3> | |
<PRE> | |
public void <B>setShowBanner</B>(boolean showBanner)</PRE> | |
<DL> | |
<DD>Set the show Table banner flag detailing number of rows and current rows | |
displayed. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>showBanner</CODE> - the show Table banner flag</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getSortable()"><!-- --></A><H3> | |
getSortable</H3> | |
<PRE> | |
public boolean <B>getSortable</B>()</PRE> | |
<DL> | |
<DD>Return the table default column are sortable status. By default table | |
columns are not sortable. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the table default column are sortable status</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setSortable(boolean)"><!-- --></A><H3> | |
setSortable</H3> | |
<PRE> | |
public void <B>setSortable</B>(boolean sortable)</PRE> | |
<DL> | |
<DD>Set the table default column are sortable status. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>sortable</CODE> - the table default column are sortable status</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isSorted()"><!-- --></A><H3> | |
isSorted</H3> | |
<PRE> | |
public boolean <B>isSorted</B>()</PRE> | |
<DL> | |
<DD>Return the sorted status of the table row list. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the sorted table row list status</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setSorted(boolean)"><!-- --></A><H3> | |
setSorted</H3> | |
<PRE> | |
public void <B>setSorted</B>(boolean value)</PRE> | |
<DL> | |
<DD>Set the sorted status of the table row list. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the sorted status to set</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isSortedAscending()"><!-- --></A><H3> | |
isSortedAscending</H3> | |
<PRE> | |
public boolean <B>isSortedAscending</B>()</PRE> | |
<DL> | |
<DD>Return true if the sort order is ascending. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true if the sort order is ascending</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setSortedAscending(boolean)"><!-- --></A><H3> | |
setSortedAscending</H3> | |
<PRE> | |
public void <B>setSortedAscending</B>(boolean ascending)</PRE> | |
<DL> | |
<DD>Set the ascending sort order status. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>ascending</CODE> - the ascending sort order status</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getSortedColumn()"><!-- --></A><H3> | |
getSortedColumn</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getSortedColumn</B>()</PRE> | |
<DL> | |
<DD>Return the name of the sorted column, or null if not defined. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the name of the sorted column, or null if not defined</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setSortedColumn(java.lang.String)"><!-- --></A><H3> | |
setSortedColumn</H3> | |
<PRE> | |
public void <B>setSortedColumn</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> columnName)</PRE> | |
<DL> | |
<DD>Set the name of the sorted column, or null if not defined. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>columnName</CODE> - the name of the sorted column</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getState()"><!-- --></A><H3> | |
getState</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getState</B>()</PRE> | |
<DL> | |
<DD>Return the Table state. The following state is returned: | |
<ul> | |
<li><A HREF="../../../../org/apache/click/control/Table.html#getPageNumber()"><CODE>getPageNumber()</CODE></A></li> | |
<li><A HREF="../../../../org/apache/click/control/Table.html#isSortedAscending()"><CODE>isSortedAscending()</CODE></A></li> | |
<li><A HREF="../../../../org/apache/click/control/Table.html#getSortedColumn()"><CODE>getSortedColumn()</CODE></A></li> | |
<li><A HREF="../../../../org/apache/click/control/Table.html#getControlLink()"><CODE>controlLink parameters</CODE></A></li> | |
</ul> | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/click/Stateful.html#getState()">getState</A></CODE> in interface <CODE><A HREF="../../../../org/apache/click/Stateful.html" title="interface in org.apache.click">Stateful</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the Table state</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setState(java.lang.Object)"><!-- --></A><H3> | |
setState</H3> | |
<PRE> | |
public void <B>setState</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> state)</PRE> | |
<DL> | |
<DD>Set the Table state. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/click/Stateful.html#setState(java.lang.Object)">setState</A></CODE> in interface <CODE><A HREF="../../../../org/apache/click/Stateful.html" title="interface in org.apache.click">Stateful</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>state</CODE> - the Table state to set</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getWidth()"><!-- --></A><H3> | |
getWidth</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getWidth</B>()</PRE> | |
<DL> | |
<DD>Return the table HTML <td> width attribute. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the table HTML <td> width attribute</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setWidth(java.lang.String)"><!-- --></A><H3> | |
setWidth</H3> | |
<PRE> | |
public void <B>setWidth</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE> | |
<DL> | |
<DD>Set the table HTML <td> width attribute. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the table HTML <td> width attribute</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getRowCount()"><!-- --></A><H3> | |
getRowCount</H3> | |
<PRE> | |
public final int <B>getRowCount</B>()</PRE> | |
<DL> | |
<DD>The total possible number of rows of the table. This value | |
could be much larger than the number of entries in the <A HREF="../../../../org/apache/click/control/Table.html#rowList"><CODE>rowList</CODE></A>, | |
indicating that some rows have not been loaded yet. | |
<p/> | |
This property is automatically set by the table to the appropriate value. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the total possible number of rows of the table</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getFirstRow()"><!-- --></A><H3> | |
getFirstRow</H3> | |
<PRE> | |
public int <B>getFirstRow</B>()</PRE> | |
<DL> | |
<DD>Return the index of the first row to display. Index starts from 0. | |
<p/> | |
<b>Note:</b> <A HREF="../../../../org/apache/click/control/Table.html#setPageSize(int)"><CODE>page size</CODE></A> must be set for this | |
method to correctly calculate the first row, otherwise this method will | |
return 0. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the index of the first row to display</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getLastRow()"><!-- --></A><H3> | |
getLastRow</H3> | |
<PRE> | |
public int <B>getLastRow</B>()</PRE> | |
<DL> | |
<DD>Return the index of the last row to display. Index starts from 0. | |
<p/> | |
<b>Note:</b> the Table <A HREF="../../../../org/apache/click/control/Table.html#setRowList(java.util.List)"><CODE>row list</CODE></A> and | |
<A HREF="../../../../org/apache/click/control/Table.html#setPageSize(int)"><CODE>page size</CODE></A> must be set for this method to | |
correctly calculate the last row, otherwise this method will return 0. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the index of the last row to display</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="onInit()"><!-- --></A><H3> | |
onInit</H3> | |
<PRE> | |
public void <B>onInit</B>()</PRE> | |
<DL> | |
<DD>Initialize the controls contained in the Table. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/click/Control.html#onInit()">onInit</A></CODE> in interface <CODE><A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#onInit()">onInit</A></CODE> in class <CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/Control.html#onInit()"><CODE>Control.onInit()</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="onRender()"><!-- --></A><H3> | |
onRender</H3> | |
<PRE> | |
public void <B>onRender</B>()</PRE> | |
<DL> | |
<DD>This method invokes <A HREF="../../../../org/apache/click/control/Table.html#getRowList()"><CODE>getRowList()</CODE></A> to ensure exceptions thrown | |
while retrieving table rows will be handled by the error page. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/click/Control.html#onRender()">onRender</A></CODE> in interface <CODE><A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#onRender()">onRender</A></CODE> in class <CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/Control.html#onRender()"><CODE>Control.onRender()</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="onProcess()"><!-- --></A><H3> | |
onProcess</H3> | |
<PRE> | |
public boolean <B>onProcess</B>()</PRE> | |
<DL> | |
<DD>Process any Table paging control requests, and process any added Table | |
Controls. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/click/Control.html#onProcess()">onProcess</A></CODE> in interface <CODE><A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#onProcess()">onProcess</A></CODE> in class <CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true to continue Page event processing or false otherwise<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/Control.html#onProcess()"><CODE>Control.onProcess()</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="onDestroy()"><!-- --></A><H3> | |
onDestroy</H3> | |
<PRE> | |
public void <B>onDestroy</B>()</PRE> | |
<DL> | |
<DD>This method will clear the <tt>rowList</tt>, if the property | |
<tt>nullifyRowListOnDestroy</tt> is true, set the sorted flag to false and | |
will invoke the onDestroy() method of any child controls. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/click/Control.html#onDestroy()">onDestroy</A></CODE> in interface <CODE><A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#onDestroy()">onDestroy</A></CODE> in class <CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/Control.html#onDestroy()"><CODE>Control.onDestroy()</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getControlSizeEst()"><!-- --></A><H3> | |
getControlSizeEst</H3> | |
<PRE> | |
public int <B>getControlSizeEst</B>()</PRE> | |
<DL> | |
<DD><B>Description copied from class: <CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#getControlSizeEst()">AbstractControl</A></CODE></B></DD> | |
<DD>Return the estimated rendered control size in characters. | |
<P> | |
<DD><DL> | |
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#getControlSizeEst()">getControlSizeEst</A></CODE> in class <CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the estimated rendered control size in characters<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/control/AbstractControl.html#getControlSizeEst()"><CODE>AbstractControl.getControlSizeEst()</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="render(org.apache.click.util.HtmlStringBuffer)"><!-- --></A><H3> | |
render</H3> | |
<PRE> | |
public void <B>render</B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</PRE> | |
<DL> | |
<DD>Render the HTML representation of the Table. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/click/Control.html#render(org.apache.click.util.HtmlStringBuffer)">render</A></CODE> in interface <CODE><A HREF="../../../../org/apache/click/Control.html" title="interface in org.apache.click">Control</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html#render(org.apache.click.util.HtmlStringBuffer)">render</A></CODE> in class <CODE><A HREF="../../../../org/apache/click/control/AbstractControl.html" title="class in org.apache.click.control">AbstractControl</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the specified buffer to render the control's output to<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/control/AbstractControl.html#toString()"><CODE>AbstractControl.toString()</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="removeState(org.apache.click.Context)"><!-- --></A><H3> | |
removeState</H3> | |
<PRE> | |
public void <B>removeState</B>(<A HREF="../../../../org/apache/click/Context.html" title="class in org.apache.click">Context</A> context)</PRE> | |
<DL> | |
<DD>Remove the Table state from the session for the given request context. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>context</CODE> - the request context<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/control/Table.html#saveState(org.apache.click.Context)"><CODE>saveState(org.apache.click.Context)</CODE></A>, | |
<A HREF="../../../../org/apache/click/control/Table.html#restoreState(org.apache.click.Context)"><CODE>restoreState(org.apache.click.Context)</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="restoreState(org.apache.click.Context)"><!-- --></A><H3> | |
restoreState</H3> | |
<PRE> | |
public void <B>restoreState</B>(<A HREF="../../../../org/apache/click/Context.html" title="class in org.apache.click">Context</A> context)</PRE> | |
<DL> | |
<DD>Restore the Table state from the session for the given request context. | |
<p/> | |
This method delegates to <A HREF="../../../../org/apache/click/control/Table.html#setState(java.lang.Object)"><CODE>setState(java.lang.Object)</CODE></A> to set the | |
table restored state. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>context</CODE> - the request context<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/control/Table.html#saveState(org.apache.click.Context)"><CODE>saveState(org.apache.click.Context)</CODE></A>, | |
<A HREF="../../../../org/apache/click/control/Table.html#removeState(org.apache.click.Context)"><CODE>removeState(org.apache.click.Context)</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="saveState(org.apache.click.Context)"><!-- --></A><H3> | |
saveState</H3> | |
<PRE> | |
public void <B>saveState</B>(<A HREF="../../../../org/apache/click/Context.html" title="class in org.apache.click">Context</A> context)</PRE> | |
<DL> | |
<DD>Save the Table state to the session for the given request context. | |
<p/> | |
* This method delegates to <A HREF="../../../../org/apache/click/control/Table.html#getState()"><CODE>getState()</CODE></A> to retrieve the table state | |
to save. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>context</CODE> - the request context<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/click/control/Table.html#restoreState(org.apache.click.Context)"><CODE>restoreState(org.apache.click.Context)</CODE></A>, | |
<A HREF="../../../../org/apache/click/control/Table.html#removeState(org.apache.click.Context)"><CODE>removeState(org.apache.click.Context)</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="createRowList()"><!-- --></A><H3> | |
createRowList</H3> | |
<PRE> | |
protected <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>> <B>createRowList</B>()</PRE> | |
<DL> | |
<DD>Create a new table row list. If a <A HREF="../../../../org/apache/click/control/Table.html#getDataProvider()"><CODE>dataProvider</CODE></A> | |
is specified the new row list will be populated from the data provider. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>a new table row list</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="renderHeaderRow(org.apache.click.util.HtmlStringBuffer)"><!-- --></A><H3> | |
renderHeaderRow</H3> | |
<PRE> | |
protected void <B>renderHeaderRow</B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</PRE> | |
<DL> | |
<DD>Render the table header row of column names. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the StringBuffer to render the header row in</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="renderBodyRows(org.apache.click.util.HtmlStringBuffer)"><!-- --></A><H3> | |
renderBodyRows</H3> | |
<PRE> | |
protected void <B>renderBodyRows</B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</PRE> | |
<DL> | |
<DD>Render the table body rows for each of the rows in <tt>getRowList</tt>. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the StringBuffer to render the table body rows in</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="addRowAttributes(java.util.Map, java.lang.Object, int)"><!-- --></A><H3> | |
addRowAttributes</H3> | |
<PRE> | |
protected void <B>addRowAttributes</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>,<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>> attributes, | |
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> row, | |
int rowIndex)</PRE> | |
<DL> | |
<DD>Override this method to set HTML attributes for each Table row. | |
<p/> | |
For example: | |
<pre class="prettyprint"> | |
public CompanyPage extends BorderPage { | |
public void onInit() { | |
table = new Table() { | |
public void addRowAttributes(Map attributes, Object row, int rowIndex) { | |
Customer customer = (Customer) row; | |
if (customer.isDisabled()) { | |
// Set the row class to disabled. CSS can then be used | |
// to set disabled rows background to a different color. | |
attributes.put("class", "disabled"); | |
} | |
attributes.put("onclick", "alert('you clicked on row " | |
+ rowIndex + "')"); | |
} | |
}; | |
} | |
} </pre> | |
<b>Please note</b> that in order to enable alternate background colors | |
for rows, Click will automatically add a CSS <tt>class</tt> attribute | |
to each row with a value of either <tt>odd</tt> or <tt>even</tt>. You are | |
free to add other CSS class attributes as illustrated in the example | |
above. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>attributes</CODE> - the row attributes<DD><CODE>row</CODE> - the domain object currently being rendered<DD><CODE>rowIndex</CODE> - the rows index</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="renderFooterRow(org.apache.click.util.HtmlStringBuffer)"><!-- --></A><H3> | |
renderFooterRow</H3> | |
<PRE> | |
protected void <B>renderFooterRow</B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</PRE> | |
<DL> | |
<DD>Render the table header footer row. This method is designed to be | |
overridden by Table subclasses which include a custom footer row. | |
<p/> | |
By default this method does not render a table footer. | |
<p/> | |
An example: | |
<pre class="prettyprint"> | |
private Table table; | |
public void onInit() { | |
table = new Table("table") { | |
public void renderFooterRow(HtmlStringBuffer buffer) { | |
double totalHoldings = getCustomerService().getTotalHoldings(customers); | |
renderTotalHoldingsFooter(buffer); | |
}; | |
} | |
addControl(table); | |
... | |
} | |
... | |
public void renderTotalHoldingsFooter(HtmlStringBuffer buffer,) { | |
double total = 0; | |
for (int i = 0; i < table.getRowList().size(); i++) { | |
Customer customer = (Customer) table.getRowList().get(i); | |
if (customer.getHoldings() != null) { | |
total += customer.getHoldings().doubleValue(); | |
} | |
} | |
String format = "<b>Total Holdings</b>: ${0,number,#,##0.00}"; | |
String totalDisplay = MessageFormat.format(format, new Object[] { new Double(total) }); | |
buffer.append("<foot><tr><td colspan='4' style='text-align:right'>"); | |
buffer.append(totalDisplay); | |
buffer.append("</td></tr></tfoot>"); | |
} | |
</pre> | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the StringBuffer to render the footer row in</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="renderBodyRowColumns(org.apache.click.util.HtmlStringBuffer, int)"><!-- --></A><H3> | |
renderBodyRowColumns</H3> | |
<PRE> | |
protected void <B>renderBodyRowColumns</B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer, | |
int rowIndex)</PRE> | |
<DL> | |
<DD>Render the current table body row cells. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the StringBuffer to render the table row cells in<DD><CODE>rowIndex</CODE> - the 0-based index in tableRows to render</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="renderBodyNoRows(org.apache.click.util.HtmlStringBuffer)"><!-- --></A><H3> | |
renderBodyNoRows</H3> | |
<PRE> | |
protected void <B>renderBodyNoRows</B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</PRE> | |
<DL> | |
<DD>Render the table body content if no rows are in the row list. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the StringBuffer to render the no row message to</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="renderPaginator(org.apache.click.util.HtmlStringBuffer)"><!-- --></A><H3> | |
renderPaginator</H3> | |
<PRE> | |
protected void <B>renderPaginator</B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</PRE> | |
<DL> | |
<DD>Render the table pagination display. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the StringBuffer to render the pagination display to</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="renderTableBanner(org.apache.click.util.HtmlStringBuffer)"><!-- --></A><H3> | |
renderTableBanner</H3> | |
<PRE> | |
protected void <B>renderTableBanner</B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/click/control/Table.html#renderPaginator(org.apache.click.util.HtmlStringBuffer)"><CODE>renderPaginator(HtmlStringBuffer)</CODE></A> instead, this | |
method is provided to support backward compatibility older Click 1.4 | |
customized tables. In these scenarios please override <A HREF="../../../../org/apache/click/control/Table.html#renderPaginator(org.apache.click.util.HtmlStringBuffer)"><CODE>renderPaginator(HtmlStringBuffer)</CODE></A> | |
method to invoke <A HREF="../../../../org/apache/click/control/Table.html#renderTableBanner(org.apache.click.util.HtmlStringBuffer)"><CODE>renderTableBanner(HtmlStringBuffer)</CODE></A> and <A HREF="../../../../org/apache/click/control/Table.html#renderPagingControls(org.apache.click.util.HtmlStringBuffer)"><CODE>renderPagingControls(HtmlStringBuffer)</CODE></A>.</I> | |
<P> | |
<DD>Render the table banner detailing number of rows and number displayed. | |
<p/> | |
See the <tt>/click-controls.properties</tt> for the HTML templates: | |
<tt>table-page-banner</tt> and <tt>table-page-banner-nolinks</tt> | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the StringBuffer to render the paging controls to</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="renderPagingControls(org.apache.click.util.HtmlStringBuffer)"><!-- --></A><H3> | |
renderPagingControls</H3> | |
<PRE> | |
protected void <B>renderPagingControls</B>(<A HREF="../../../../org/apache/click/util/HtmlStringBuffer.html" title="class in org.apache.click.util">HtmlStringBuffer</A> buffer)</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/click/control/Table.html#renderPaginator(org.apache.click.util.HtmlStringBuffer)"><CODE>renderPaginator(HtmlStringBuffer)</CODE></A> instead, this | |
method is provided to support backward compatibility older Click 1.4 | |
customized tables. In these scenarios please override <A HREF="../../../../org/apache/click/control/Table.html#renderPaginator(org.apache.click.util.HtmlStringBuffer)"><CODE>renderPaginator(HtmlStringBuffer)</CODE></A> | |
method to invoke <A HREF="../../../../org/apache/click/control/Table.html#renderTableBanner(org.apache.click.util.HtmlStringBuffer)"><CODE>renderTableBanner(HtmlStringBuffer)</CODE></A> and <A HREF="../../../../org/apache/click/control/Table.html#renderPagingControls(org.apache.click.util.HtmlStringBuffer)"><CODE>renderPagingControls(HtmlStringBuffer)</CODE></A>.</I> | |
<P> | |
<DD>Render the table paging action link controls. | |
<p/> | |
See the <tt>/click-controls.properties</tt> for the HTML templates: | |
<tt>table-page-links</tt> and <tt>table-page-links-nobanner</tt> | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the StringBuffer to render the paging controls to</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="sortRowList()"><!-- --></A><H3> | |
sortRowList</H3> | |
<PRE> | |
protected void <B>sortRowList</B>()</PRE> | |
<DL> | |
<DD>The default row list sorting method, which will sort the row list based | |
on the selected column if the row list is not already sorted. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<!-- ========= END OF CLASS DATA ========= --> | |
<HR> | |
<!-- ======= START OF BOTTOM NAVBAR ====== --> | |
<A NAME="navbar_bottom"><!-- --></A> | |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_bottom_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../org/apache/click/control/Submit.html" title="class in org.apache.click.control"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/click/control/TablePaginator.html" title="class in org.apache.click.control"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../index.html?org/apache/click/control/Table.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="Table.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_bottom"></A> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
<HR> | |
<style type='text/css'>.str{color:#2A00FF;}.kwd{color:#7F0055;font-weight:bold;}.com{color:#3F7F5F;}.typ{color:#000;}.lit{color:#066;}.pun{color:#660;}.pln{color:#000;}.tag{color:#000099;font-weight:bold;}.atn{color:#009900;}.atv{color:#000;}.dec{color:#606;}pre.prettyprint{padding:1em;border:1px solid #888;overflow:auto;}@media print{.str{color:#2A00FF;}.kwd{color:#7F0055;font-weight:bold;}.com{color:#3F7F5F;font-style:italic;}.typ{color:#000;font-weight:bold;}.lit{color:#044;}.pun{color:#440;}.pln{color:#000;}.tag{color:#000099;font-weight:bold;}.atn{color:#009900;}.atv{color:#000;}}</style><script type='text/javascript'>var PR_keywords={};(function(){var CPP_KEYWORDS='abstract bool break case catch char class const '+'const_cast continue default delete deprecated dllexport dllimport do '+'double dynamic_cast else enum explicit extern false float for friend '+'goto if inline int long mutable naked namespace new noinline noreturn '+'nothrow novtable operator private property protected public register '+'reinterpret_cast return selectany short signed sizeof static '+'static_cast struct switch template this thread throw true try typedef '+'typeid typename union unsigned using declaration, directive uuid '+'virtual void volatile while typeof';var CSHARP_KEYWORDS='as base by byte checked decimal delegate descending '+'event finally fixed foreach from group implicit in interface internal '+'into is lock null object override orderby params readonly ref sbyte '+'sealed stackalloc string select uint ulong unchecked unsafe ushort var';var JAVA_KEYWORDS='package synchronized boolean implements import throws '+'instanceof transient extends final strictfp native super';var JSCRIPT_KEYWORDS='debugger export function with NaN Infinity';var PERL_KEYWORDS='require sub unless until use elsif BEGIN END';var PYTHON_KEYWORDS='and assert def del elif except exec global lambda '+'not or pass print raise yield False True None';var RUBY_KEYWORDS='then end begin rescue ensure module when undef next '+'redo retry alias defined';var SH_KEYWORDS='done fi';var KEYWORDS=[CPP_KEYWORDS,CSHARP_KEYWORDS,JAVA_KEYWORDS,JSCRIPT_KEYWORDS,PERL_KEYWORDS,PYTHON_KEYWORDS,RUBY_KEYWORDS,SH_KEYWORDS];for(var k=0;k<KEYWORDS.length;k++){var kw=KEYWORDS[k].split(' ');for(var i=0;i<kw.length;i++){if(kw[i]){PR_keywords[kw[i]]=true;}}}}).call(this);var PR_STRING='str';var PR_KEYWORD='kwd';var PR_COMMENT='com';var PR_TYPE='typ';var PR_LITERAL='lit';var PR_PUNCTUATION='pun';var PR_PLAIN='pln';var PR_TAG='tag';var PR_DECLARATION='dec';var PR_SOURCE='src';var PR_ATTRIB_NAME='atn';var PR_ATTRIB_VALUE='atv';var PR_TAB_WIDTH=8;function PR_isWordChar(ch){return(ch>='a'&&ch<='z')||(ch>='A'&&ch<='Z');}function PR_spliceArrayInto(inserted,container,containerPosition,countReplaced){inserted.unshift(containerPosition,countReplaced||0);try{container.splice.apply(container,inserted);}finally{inserted.splice(0,2);}}var REGEXP_PRECEDER_PATTERN=(function(){var preceders=['!','!=','!==','#','%','%=','&','&&','&&=','&=','(','*','*=','+=',',','-=','->','/','/=',':','::',';','<','<<','<<=','<=','=','==','===','>','>=','>>','>>=','>>>','>>>=','?','@','[','^','^=','^^','^^=','{','|','|=','||','||=','~','break','case','continue','delete','do','else','finally','instanceof','return','throw','try','typeof'];var pattern='(?:'+'(?:(?:^|[^0-9\.])\\.{1,3})|'+'(?:(?:^|[^\\+])\\+)|'+'(?:(?:^|[^\\-])-)';for(var i=0;i<preceders.length;++i){var preceder=preceders[i];if(PR_isWordChar(preceder.charAt(0))){pattern+='|\\b'+preceder;}else{pattern+='|'+preceder.replace(/([^=<>:&])/g,'\\$1');}}pattern+='|^)\\s*$';return new RegExp(pattern);})();var pr_amp=/&/g;var pr_lt=/</g;var pr_gt=/>/g;var pr_quot=/"/g;function PR_attribToHtml(str){return str.replace(pr_amp,'&').replace(pr_lt,'<').replace(pr_gt,'>').replace(pr_quot,'"');}function PR_textToHtml(str){return str.replace(pr_amp,'&').replace(pr_lt,'<').replace(pr_gt,'>');}var pr_ltEnt=/</g;var pr_gtEnt=/>/g;var pr_aposEnt=/'/g;var pr_quotEnt=/"/g;var pr_ampEnt=/&/g;function PR_htmlToText(html){var pos=html.indexOf('&');if(pos<0){return html;}for(--pos;(pos=html.indexOf('&#',pos+1))>=0;){var end=html.indexOf(';',pos);if(end>=0){var num=html.substring(pos+3,end);var radix=10;if(num&&num.charAt(0)=='x'){num=num.substring(1);radix=16;}var codePoint=parseInt(num,radix);if(!isNaN(codePoint)){html=(html.substring(0,pos)+String.fromCharCode(codePoint)+html.substring(end+1));}}}return html.replace(pr_ltEnt,'<').replace(pr_gtEnt,'>').replace(pr_aposEnt,"'").replace(pr_quotEnt,'"').replace(pr_ampEnt,'&');}function PR_isRawContent(node){return'XMP'==node.tagName;}var PR_innerHtmlWorks=null;function PR_getInnerHtml(node){if(null===PR_innerHtmlWorks){var testNode=document.createElement('PRE');testNode.appendChild(document.createTextNode('<!DOCTYPE foo PUBLIC "foo bar">\n<foo />'));PR_innerHtmlWorks=!/</.test(testNode.innerHTML);}if(PR_innerHtmlWorks){var content=node.innerHTML;if(PR_isRawContent(node)){content=PR_textToHtml(content);}return content;}var out=[];for(var child=node.firstChild;child;child=child.nextSibling){PR_normalizedHtml(child,out);}return out.join('');}function PR_normalizedHtml(node,out){switch(node.nodeType){case 1:var name=node.tagName.toLowerCase();out.push('\074',name);for(var i=0;i<node.attributes.length;++i){var attr=node.attributes[i];if(!attr.specified){continue;}out.push(' ');PR_normalizedHtml(attr,out);}out.push('>');for(var child=node.firstChild;child;child=child.nextSibling){PR_normalizedHtml(child,out);}if(node.firstChild||!/^(?:br|link|img)$/.test(name)){out.push('<\/',name,'>');}break;case 2:out.push(node.name.toLowerCase(),'="',PR_attribToHtml(node.value),'"');break;case 3:case 4:out.push(PR_textToHtml(node.nodeValue));break;}}function PR_tabExpander(tabWidth){var SPACES=' ';var charInLine=0;return function(plainText){var out=null;var pos=0;for(var i=0,n=plainText.length;i<n;++i){var ch=plainText.charAt(i);switch(ch){case'\t':if(!out){out=[];}out.push(plainText.substring(pos,i));var nSpaces=tabWidth-(charInLine%tabWidth);charInLine+=nSpaces;for(;nSpaces>=0;nSpaces-=SPACES.length){out.push(SPACES.substring(0,nSpaces));}pos=i+1;break;case'\n':charInLine=0;break;default:++charInLine;}}if(!out){return plainText;}out.push(plainText.substring(pos));return out.join('');};}var pr_chunkPattern=/(?:[^<]+|<!--[\s\S]*?-->|<!\[CDATA\[([\s\S]*?)\]\]>|<\/?[a-zA-Z][^>]*>|<)/g;var pr_commentPrefix=/^<!--/;var pr_cdataPrefix=/^<\[CDATA\[/;var pr_brPrefix=/^<br\b/i;function PR_extractTags(s){var matches=s.match(pr_chunkPattern);var sourceBuf=[];var sourceBufLen=0;var extractedTags=[];if(matches){for(var i=0,n=matches.length;i<n;++i){var match=matches[i];if(match.length>1&&match.charAt(0)==='<'){if(pr_commentPrefix.test(match)){continue;}if(pr_cdataPrefix.test(match)){sourceBuf.push(match.substring(9,match.length-3));sourceBufLen+=match.length-12;}else if(pr_brPrefix.test(match)){sourceBuf.push('\n');sourceBufLen+=1;}else{extractedTags.push(sourceBufLen,match);}}else{var literalText=PR_htmlToText(match);sourceBuf.push(literalText);sourceBufLen+=literalText.length;}}}return{source:sourceBuf.join(''),tags:extractedTags};}function PR_createSimpleLexer(shortcutStylePatterns,fallthroughStylePatterns){var shortcuts={};(function(){var allPatterns=shortcutStylePatterns.concat(fallthroughStylePatterns);for(var i=allPatterns.length;--i>=0;){var patternParts=allPatterns[i];var shortcutChars=patternParts[3];if(shortcutChars){for(var c=shortcutChars.length;--c>=0;){shortcuts[shortcutChars.charAt(c)]=patternParts;}}}})();var nPatterns=fallthroughStylePatterns.length;return function(sourceCode,opt_basePos){opt_basePos=opt_basePos||0;var decorations=[opt_basePos,PR_PLAIN];var lastToken='';var pos=0;var tail=sourceCode;while(tail.length){var style;var token=null;var patternParts=shortcuts[tail.charAt(0)];if(patternParts){var match=tail.match(patternParts[1]);token=match[0];style=patternParts[0];}else{for(var i=0;i<nPatterns;++i){patternParts=fallthroughStylePatterns[i];var contextPattern=patternParts[2];if(contextPattern&&!contextPattern.test(lastToken)){continue;}var match=tail.match(patternParts[1]);if(match){token=match[0];style=patternParts[0];break;}}if(!token){style=PR_PLAIN;token=tail.substring(0,1);}}decorations.push(opt_basePos+pos,style);pos+=token.length;tail=tail.substring(token.length);if(style!==PR_COMMENT&&/\S/.test(token)){lastToken=token;}}return decorations;};}var PR_C_STYLE_STRING_AND_COMMENT_LEXER=PR_createSimpleLexer([[PR_STRING,/^\'(?:[^\\\']|\\[\s\S])*(?:\'|$)/,null,"'"],[PR_STRING,/^"(?:[^\\"]|\\[\s\S])*(?:"|$)/,null,'"'],[PR_STRING,/^\`(?:[^\\\`]|\\[\s\S])*(?:\`|$)/,null,'`']],[[PR_PLAIN,/^(?:[^\'"\`\/\#]+)/,null,' \r\n'],[PR_COMMENT,/^#[^\r\n]*/,null,'#'],[PR_COMMENT,/^\/\/[^\r\n]*/,null],[PR_STRING,/^\/(?:[^\\\*\/]|\\[\s\S])+(?:\/|$)/,REGEXP_PRECEDER_PATTERN],[PR_COMMENT,/^\/\*[\s\S]*?(?:\*\/|$)/,null]]);function PR_splitStringAndCommentTokens(sourceCode){return PR_C_STYLE_STRING_AND_COMMENT_LEXER(sourceCode);}var PR_C_STYLE_LITERAL_IDENTIFIER_PUNC_RECOGNIZER=PR_createSimpleLexer([],[[PR_PLAIN,/^\s+/,null,' \r\n'],[PR_PLAIN,/^[a-z_$@][a-z_$@0-9]*/i,null],[PR_LITERAL,/^0x[a-f0-9]+[a-z]/i,null],[PR_LITERAL,/^(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?[a-z]*/i,null,'123456789'],[PR_PUNCTUATION,/^[^\s\w\.$@]+/,null]]);function PR_splitNonStringNonCommentTokens(source,decorations){for(var i=0;i<decorations.length;i+=2){var style=decorations[i+1];if(style===PR_PLAIN){var start=decorations[i];var end=i+2<decorations.length?decorations[i+2]:source.length;var chunk=source.substring(start,end);var subDecs=PR_C_STYLE_LITERAL_IDENTIFIER_PUNC_RECOGNIZER(chunk,start);for(var j=0,m=subDecs.length;j<m;j+=2){var subStyle=subDecs[j+1];if(subStyle===PR_PLAIN){var subStart=subDecs[j];var subEnd=j+2<m?subDecs[j+2]:chunk.length;var token=source.substring(subStart,subEnd);if(token=='.'){subDecs[j+1]=PR_PUNCTUATION;}else if(token in PR_keywords){subDecs[j+1]=PR_KEYWORD;}else if(/^@?[A-Z][A-Z$]*[a-z][A-Za-z$]*$/.test(token)){subDecs[j+1]=token.charAt(0)=='@'?PR_LITERAL:PR_TYPE;}}}PR_spliceArrayInto(subDecs,decorations,i,2);i+=subDecs.length-2;}}return decorations;}var PR_MARKUP_LEXER=PR_createSimpleLexer([],[[PR_PLAIN,/^[^<]+/,null],[PR_DECLARATION,/^<!\w[^>]*(?:>|$)/,null],[PR_COMMENT,/^<!--[\s\S]*?(?:-->|$)/,null],[PR_SOURCE,/^<\?[\s\S]*?(?:\?>|$)/,null],[PR_SOURCE,/^<%[\s\S]*?(?:%>|$)/,null],[PR_SOURCE,/^<(script|style|xmp)\b[^>]*>[\s\S]*?<\/\1\b[^>]*>/i,null],[PR_TAG,/^<\/?\w[^<>]*>/,null]]);var PR_SOURCE_CHUNK_PARTS=/^(<[^>]*>)([\s\S]*)(<\/[^>]*>)$/;function PR_tokenizeMarkup(source){var decorations=PR_MARKUP_LEXER(source);for(var i=0;i<decorations.length;i+=2){if(decorations[i+1]===PR_SOURCE){var start=decorations[i];var end=i+2<decorations.length?decorations[i+2]:source.length;var sourceChunk=source.substring(start,end);var match=(sourceChunk.match(PR_SOURCE_CHUNK_PARTS));if(match){decorations.splice(i,2,start,PR_TAG,start+match[1].length,PR_SOURCE,start+match[1].length+(match[2]||'').length,PR_TAG);}}}return decorations;}var PR_TAG_LEXER=PR_createSimpleLexer([[PR_ATTRIB_VALUE,/^\'[^\']*(?:\'|$)/,null,"'"],[PR_ATTRIB_VALUE,/^"[^"]*(?:"|$)/,null,'"'],[PR_PUNCTUATION,/^[<>\/=]+/,null,'<>/=']],[[PR_TAG,/^[\w-]+/,/^</],[PR_ATTRIB_VALUE,/^[\w-]+/,/^=/],[PR_ATTRIB_NAME,/^[\w-]+/,null],[PR_PLAIN,/^\s+/,null,' \r\n']]);function PR_splitTagAttributes(source,decorations){for(var i=0;i<decorations.length;i+=2){var style=decorations[i+1];if(style===PR_TAG){var start=decorations[i];var end=i+2<decorations.length?decorations[i+2]:source.length;var chunk=source.substring(start,end);var subDecorations=PR_TAG_LEXER(chunk,start);PR_spliceArrayInto(subDecorations,decorations,i,2);i+=subDecorations.length-2;}}return decorations;}function PR_splitSourceNodes(source,decorations){for(var i=0;i<decorations.length;i+=2){var style=decorations[i+1];if(style==PR_SOURCE){var start=decorations[i];var end=i+2<decorations.length?decorations[i+2]:source.length;var subDecorations=PR_decorateSource(source.substring(start,end));for(var j=0,m=subDecorations.length;j<m;j+=2){subDecorations[j]+=start;}PR_spliceArrayInto(subDecorations,decorations,i,2);i+=subDecorations.length-2;}}return decorations;}function PR_splitSourceAttributes(source,decorations){var nextValueIsSource=false;for(var i=0;i<decorations.length;i+=2){var style=decorations[i+1];if(style===PR_ATTRIB_NAME){var start=decorations[i];var end=i+2<decorations.length?decorations[i+2]:source.length;nextValueIsSource=/^on|^style$/i.test(source.substring(start,end));}else if(style==PR_ATTRIB_VALUE){if(nextValueIsSource){var start=decorations[i];var end=i+2<decorations.length?decorations[i+2]:source.length;var attribValue=source.substring(start,end);var attribLen=attribValue.length;var quoted=(attribLen>=2&&/^["\']/.test(attribValue)&&attribValue.charAt(0)===attribValue.charAt(attribLen-1));var attribSource;var attribSourceStart;var attribSourceEnd;if(quoted){attribSourceStart=start+1;attribSourceEnd=end-1;attribSource=attribValue;}else{attribSourceStart=start+1;attribSourceEnd=end-1;attribSource=attribValue.substring(1,attribValue.length-1);}var attribSourceDecorations=PR_decorateSource(attribSource);for(var j=0,m=attribSourceDecorations.length;j<m;j+=2){attribSourceDecorations[j]+=attribSourceStart;}if(quoted){attribSourceDecorations.push(attribSourceEnd,PR_ATTRIB_VALUE);PR_spliceArrayInto(attribSourceDecorations,decorations,i+2,0);}else{PR_spliceArrayInto(attribSourceDecorations,decorations,i,2);}}nextValueIsSource=false;}}return decorations;}function PR_decorateSource(sourceCode){var decorations=PR_splitStringAndCommentTokens(sourceCode);decorations=PR_splitNonStringNonCommentTokens(sourceCode,decorations);return decorations;}function PR_decorateMarkup(sourceCode){var decorations=PR_tokenizeMarkup(sourceCode);decorations=PR_splitTagAttributes(sourceCode,decorations);decorations=PR_splitSourceNodes(sourceCode,decorations);decorations=PR_splitSourceAttributes(sourceCode,decorations);return decorations;}function PR_recombineTagsAndDecorations(sourceText,extractedTags,decorations){var html=[];var outputIdx=0;var openDecoration=null;var currentDecoration=null;var tagPos=0;var decPos=0;var tabExpander=PR_tabExpander(PR_TAB_WIDTH);function emitTextUpTo(sourceIdx){if(sourceIdx>outputIdx){if(openDecoration&&openDecoration!==currentDecoration){html.push('</span>');openDecoration=null;}if(!openDecoration&¤tDecoration){openDecoration=currentDecoration;html.push('<span class="',openDecoration,'">');}var htmlChunk=PR_textToHtml(tabExpander(sourceText.substring(outputIdx,sourceIdx))).replace(/(\r\n?|\n| ) /g,'$1 ').replace(/\r\n?|\n/g,' <br>');html.push(htmlChunk);outputIdx=sourceIdx;}}while(true){var outputTag;if(tagPos<extractedTags.length){if(decPos<decorations.length){outputTag=extractedTags[tagPos]<=decorations[decPos];}else{outputTag=true;}}else{outputTag=false;}if(outputTag){emitTextUpTo(extractedTags[tagPos]);if(openDecoration){html.push('</span>');openDecoration=null;}html.push(extractedTags[tagPos+1]);tagPos+=2;}else if(decPos<decorations.length){emitTextUpTo(decorations[decPos]);currentDecoration=decorations[decPos+1];decPos+=2;}else{break;}}emitTextUpTo(sourceText.length);if(openDecoration){html.push('</span>');}return html.join('');}function prettyPrintOne(sourceCodeHtml){try{var sourceAndExtractedTags=PR_extractTags(sourceCodeHtml);var source=sourceAndExtractedTags.source;var extractedTags=sourceAndExtractedTags.tags;var isMarkup=/^\s*</.test(source)&&/>\s*$/.test(source);var decorations=isMarkup?PR_decorateMarkup(source):PR_decorateSource(source);return PR_recombineTagsAndDecorations(source,extractedTags,decorations);}catch(e){if('console'in window){console.log(e);console.trace();}return sourceCodeHtml;}}var PR_SHOULD_USE_CONTINUATION=true;function prettyPrint(opt_whenDone){var codeSegments=[document.getElementsByTagName('pre'),document.getElementsByTagName('code'),document.getElementsByTagName('xmp')];var elements=[];for(var i=0;i<codeSegments.length;++i){for(var j=0;j<codeSegments[i].length;++j){elements.push(codeSegments[i][j]);}}codeSegments=null;var k=0;function doWork(){var endTime=(PR_SHOULD_USE_CONTINUATION?new Date().getTime()+250:Infinity);for(;k<elements.length&&new Date().getTime()<endTime;k++){var cs=elements[k];if(cs.className&&cs.className.indexOf('prettyprint')>=0){var nested=false;for(var p=cs.parentNode;p!=null;p=p.parentNode){if((p.tagName=='pre'||p.tagName=='code'||p.tagName=='xmp')&&p.className&&p.className.indexOf('prettyprint')>=0){nested=true;break;}}if(!nested){var content=PR_getInnerHtml(cs);content=content.replace(/(?:\r\n?|\n)$/,'');var newContent=prettyPrintOne(content);if(!PR_isRawContent(cs)){cs.innerHTML=newContent;}else{var pre=document.createElement('PRE');for(var i=0;i<cs.attributes.length;++i){var a=cs.attributes[i];if(a.specified){pre.setAttribute(a.name,a.value);}}pre.innerHTML=newContent;cs.parentNode.replaceChild(pre,cs);}}}}if(k<elements.length){setTimeout(doWork,250);}else if(opt_whenDone){opt_whenDone();}}doWork();}</script><script type='text/javascript'>prettyPrint();</script></BODY> | |
</HTML> |