org.displaytag.pagination
Class NumberedPage

java.lang.Object
  extended by org.displaytag.pagination.NumberedPage

public class NumberedPage
extends java.lang.Object

Object representing a page.

Version:
$Revision: 1081 $ ($Author: fgiust $)
Author:
Fabrizio Giustina

Constructor Summary
NumberedPage(int pageNumber, boolean isSelected)
          Creates a new page with the specified number.
 
Method Summary
 int getNumber()
          Returns the page number.
 boolean getSelected()
          is the page selected?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberedPage

public NumberedPage(int pageNumber,
                    boolean isSelected)
Creates a new page with the specified number.

Parameters:
pageNumber - page number
isSelected - is the page selected?
Method Detail

getNumber

public int getNumber()
Returns the page number.

Returns:
the page number

getSelected

public boolean getSelected()
is the page selected?

Returns:
true if the page is slected

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2002-2007 the Displaytag team. All Rights Reserved.