org.hops.dm.tad
Class pagInfo

java.lang.Object
  extended by org.hops.dm.tad.pagInfo
All Implemented Interfaces:
java.io.Serializable

public class pagInfo
extends java.lang.Object
implements java.io.Serializable

Stores information about the pagination attribute: - how many results - the number of results per page - the current page

Version:
3.0
Author:
Meritxell Gonzalez
See Also:
Serialized Form

Field Summary
 int current
          current result index
 int item
          number of item selected
 pag_state pagaction
          last user selection
 int total
          total of results
 int window
          number of results per page
 
Constructor Summary
pagInfo()
          Creates a new instance of pagInfo
pagInfo(pagInfo _p)
          Creates a new pagInfo of utterance and copy the pagInfo input values
 
Method Summary
 void back()
          go to previous page
 java.lang.Object clone()
          Creates and returns a copy of this object.
 int getPrevious()
          go to the previous page
 int getTo()
          the last item in the page
 boolean hasItem(int i)
           
 boolean hasNext()
          the current page is not the last
 boolean hasPrevious()
          the current page is not the first
 boolean is_item()
          the user selected an item
 boolean is_next()
          the user selected the next page
 boolean is_previous()
          the user selected previous page
 boolean is_quit()
          the user aborts pagination
 boolean is_update()
          the user aborts pagination
 void next()
          go to next page
 void setPrevious(pagInfo _p)
          set the previous page
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

total

public int total
total of results


current

public int current
current result index


window

public int window
number of results per page


pagaction

public pag_state pagaction
last user selection


item

public int item
number of item selected

Constructor Detail

pagInfo

public pagInfo()
Creates a new instance of pagInfo


pagInfo

public pagInfo(pagInfo _p)
Creates a new pagInfo of utterance and copy the pagInfo input values

Method Detail

is_next

public boolean is_next()
the user selected the next page


is_item

public boolean is_item()
the user selected an item


is_previous

public boolean is_previous()
the user selected previous page


is_quit

public boolean is_quit()
the user aborts pagination


is_update

public boolean is_update()
the user aborts pagination


getTo

public int getTo()
the last item in the page


next

public void next()
go to next page


back

public void back()
go to previous page


hasNext

public boolean hasNext()
the current page is not the last


hasPrevious

public boolean hasPrevious()
the current page is not the first


hasItem

public boolean hasItem(int i)

clone

public java.lang.Object clone()
Creates and returns a copy of this object.

Overrides:
clone in class java.lang.Object

getPrevious

public int getPrevious()
go to the previous page


setPrevious

public void setPrevious(pagInfo _p)
set the previous page


toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object