org.apache.click.control
Class TablePaginator

java.lang.Object
  extended by org.apache.click.control.TablePaginator
All Implemented Interfaces:
Serializable, Renderable

public class TablePaginator
extends Object
implements Renderable

Provides the default Table Paginator.

See Also:
Serialized Form

Field Summary
protected  Table table
          The parent table to provide paginator for.
 
Constructor Summary
TablePaginator(Table table)
          Create a Paginator for the given Table.
 
Method Summary
 Table getTable()
          Return the parent Table for this Paginator.
 void render(HtmlStringBuffer buffer)
          Render output, normally HTML markup, to the given buffer.
 void setTable(Table table)
          Set the parent Table for this Paginator.
 String toString()
          Returns the HTML representation of this paginator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

table

protected Table table
The parent table to provide paginator for.

Constructor Detail

TablePaginator

public TablePaginator(Table table)
Create a Paginator for the given Table.

Parameters:
table - the paginator's table
Method Detail

getTable

public Table getTable()
Return the parent Table for this Paginator.

Returns:
the paginator's parent table

setTable

public void setTable(Table table)
Set the parent Table for this Paginator.

Parameters:
table - the paginator's parent table

render

public void render(HtmlStringBuffer buffer)
Description copied from interface: Renderable
Render output, normally HTML markup, to the given buffer.

Specified by:
render in interface Renderable
Parameters:
buffer - the string buffer to render the paginator to
See Also:
Renderable.render(HtmlStringBuffer)

toString

public String toString()
Returns the HTML representation of this paginator.

This method delegates the rendering to the method render(org.apache.click.util.HtmlStringBuffer).

Overrides:
toString in class Object
Returns:
the HTML representation of this paginator
See Also:
Object.toString()