org.gwtwidgets.client.ui.pagination
Class Column

java.lang.Object
  extended by org.gwtwidgets.client.ui.pagination.Column

public class Column
extends java.lang.Object

Column to be added as a header to the table. If a property is provided, the column will be sortable. The property can be any you will use to sort the results when results from a new page are retrieved.

Author:
Joe Toth (joetoth@gmail.com)

Constructor Summary
Column(java.lang.String title)
          Use this constructor if you do not want the column to be sortable.
Column(java.lang.String title, java.lang.String parameter)
          Use this constructor if you want the column to be sortable.
 
Method Summary
 java.lang.String getParameter()
           
 java.lang.String getTitle()
           
 boolean isSortable()
           
 void setParameter(java.lang.String parameter)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Column

public Column(java.lang.String title)
Use this constructor if you do not want the column to be sortable.

Parameters:
title -

Column

public Column(java.lang.String title,
              java.lang.String parameter)
Use this constructor if you want the column to be sortable.

Parameters:
title - Column Header
parameter - The underlying parameter is used to represent this column in JDBC / EJB / Hibernate / etc. It can also be used to store and send any extra data needed to perform the sort.
Method Detail

getParameter

public java.lang.String getParameter()

setParameter

public void setParameter(java.lang.String parameter)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

isSortable

public boolean isSortable()


Copyright © 2009. All Rights Reserved.