public class CmsResultsBackwardsScrollHandler
extends java.lang.Object
implements com.google.gwt.event.dom.client.ScrollHandler
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
m_enabled
Flag used to temporarily disable the scroll handler.
|
protected int |
m_firstShownPage
The index of the first shown page.
|
protected int |
m_pageSize
The number of results per page.
|
protected java.util.List<CmsResultItemBean> |
m_resultBeans
The list of search result beans.
|
protected CmsResultsTab |
m_resultsTab
The search results tab.
|
protected CmsGallerySearchBean |
m_searchBean
The search bean.
|
static int |
SCROLL_THRESHOLD
The scroll threshold in pixels.
|
构造器和说明 |
---|
CmsResultsBackwardsScrollHandler(CmsResultsTab resultsTab)
Creates a new handler instance for a given results tab.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
hasMore()
Checks whether more items can be loaded at the front of the list.
|
protected void |
loadPage(int pageNum)
Loads a page with a given index.
|
protected void |
loadPreviousPage()
Loads the page before the first shown page.
|
void |
onScroll(com.google.gwt.event.dom.client.ScrollEvent event) |
void |
updateSearchBean(CmsGallerySearchBean searchBean)
Updates the handler with a new search bean.
|
public static final int SCROLL_THRESHOLD
protected boolean m_enabled
protected int m_firstShownPage
protected int m_pageSize
protected java.util.List<CmsResultItemBean> m_resultBeans
protected CmsResultsTab m_resultsTab
protected CmsGallerySearchBean m_searchBean
public CmsResultsBackwardsScrollHandler(CmsResultsTab resultsTab)
resultsTab
- the results tab for which to create the handlerpublic boolean hasMore()
public void onScroll(com.google.gwt.event.dom.client.ScrollEvent event)
onScroll
在接口中 com.google.gwt.event.dom.client.ScrollHandler
ScrollHandler.onScroll(com.google.gwt.event.dom.client.ScrollEvent)
public void updateSearchBean(CmsGallerySearchBean searchBean)
searchBean
- the search beanprotected void loadPage(int pageNum)
pageNum
- the index of the page to loadprotected void loadPreviousPage()