/**
* -----------------------------------------------------------------------------------------------
* File: IPagedWidget.java
*
* Copyright (c) 2007 by Keymind Computing as.
* All rights reserved.
*
* This file is subject to the terms and conditions of the Apache Licence 2.0.
* See the file LICENCE in the main directory of the Keywatch distribution for more details.
*
* Revision History:
* $URL: http://keywatch.googlecode.com/svn/trunk/src/server/gwtgui/src/keymind/keywatch/gui/client/desktop/IPagedWidget.java $
* $Date: 2009-04-16 06:23:28 -0700 (Thu, 16 Apr 2009) $, $Rev: $
* -----------------------------------------------------------------------------------------------
*/
package keymind.keywatch.gui.client.desktop;
/**
* Should be implemented by views where paging is supported.
* An external pager can then navigate through these interfaces
*/
public interface IPagedWidget
{
/**
* Gets the current page number
* @return current page
*/
int currentPage();
/**
* Navigates to a given page (if possible)
* @param page
*/
void gotoPage(int page);
/**
* Navigates to first page
*/
void firstPage();
/**
* Navigates to next page from current (if possible)
*/
void nextPage();
/**
* Navigates to prev page if possible
*/
void prevPage();
/**
* add a listener to the pagechange of this View.
* @param listener
*/
void addPageListener(IPageListener listener);
}
|