|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DictionaryBeanBase org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase org.kuali.rice.krad.uif.component.ComponentBase org.kuali.rice.krad.uif.widget.WidgetBase org.kuali.rice.krad.uif.widget.Pager
public class Pager
The Pager widget is used to display a list of links horizontally in a page selection user interface. The user can select a page to jump to, go to prev/next page, or go to the first or last page. This widget needs to know the numberOfPages total, and the currentPage the user is on currently, so this widget must be fed this information from the code.
StackedLayoutManager
,
Serialized FormField Summary | |
---|---|
protected int |
pagesEnd
|
protected int |
pagesStart
|
Fields inherited from class org.kuali.rice.krad.uif.component.ComponentBase |
---|
templateOptions |
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
componentCode, namespaceCode |
Fields inherited from interface org.kuali.rice.krad.uif.component.Ordered |
---|
INITIAL_ORDER_VALUE |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
Pager()
|
Method Summary | |
---|---|
int |
getCurrentPage()
The current page being shown by this pager widget (this must be set when the page is changed) |
String |
getLinkScript()
The script to execute when a link is clicked (should probably use the "this" var in most cases, to determine page number selected - see retrieveStackedPage(linkElement, collectionId) js function) |
int |
getMaxNumberedLinksShown()
The maximum number of NUMBERED links shown at once for pages, if number of pages that exist exceed this value, the pager omits some pages before and/or after the current page (which are revealed during while navigating using a carousel effect) |
int |
getNumberOfPages()
Number of pages TOTAL that make up the component being paged (this must be set by the framework based on some list size) |
int |
getPagesEnd()
The last page number to render; this is set by the framework |
int |
getPagesStart()
The first page number to render; this is set by the framework |
boolean |
isRenderFirstLast()
Returns true if this pager widget is rendering the "First" and "Last" links |
boolean |
isRenderPrevNext()
Returns true if this pager widget is rendering the "Prev" and "Next" links |
void |
performFinalize(Object model,
LifecycleElement parent)
performFinalize calculates the pagesStart and pagesEnd properties (using numberOfPages, currentPage, and maxNumberedLinksShown - these must be set) which determines pages shown by the widget |
void |
setCurrentPage(int currentPage)
Set the current page |
void |
setLinkScript(String linkScript)
Set the link js script |
void |
setMaxNumberedLinksShown(int maxNumberedLinksShown)
Set the maximum number of NUMBERED links shown |
void |
setNumberOfPages(int numberOfPages)
Set the TOTAL number of pages |
void |
setRenderFirstLast(boolean renderFirstLast)
Set renderFirstLast |
void |
setRenderPrevNext(boolean renderPrevNext)
Set renderPrevNext |
Methods inherited from class org.kuali.rice.krad.uif.widget.WidgetBase |
---|
getComponentTypeName |
Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode, unwrap |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode |
Methods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement |
---|
checkMutable, getContext, getId, getPhasePathMapping, getViewPath, getViewStatus, initializePendingTasks, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performApplyModel, performInitialization, pushAllToContext, pushObjectToContext, setContext, setId, setPhasePathMapping, setRender, setViewPath, setViewStatus, skipLifecycle |
Methods inherited from interface org.kuali.rice.krad.datadictionary.Copyable |
---|
clone, copy, preventModification, unwrap |
Field Detail |
---|
protected int pagesStart
protected int pagesEnd
Constructor Detail |
---|
public Pager()
Method Detail |
---|
public void performFinalize(Object model, LifecycleElement parent)
performFinalize
in interface LifecycleElement
performFinalize
in class ComponentBase
model
- the current modelparent
- parent containerpublic String getLinkScript()
public void setLinkScript(String linkScript)
linkScript
- the link js scriptpublic int getMaxNumberedLinksShown()
public void setMaxNumberedLinksShown(int maxNumberedLinksShown)
maxNumberedLinksShown
- public int getNumberOfPages()
public void setNumberOfPages(int numberOfPages)
numberOfPages
- public int getCurrentPage()
public void setCurrentPage(int currentPage)
currentPage
- public boolean isRenderFirstLast()
public void setRenderFirstLast(boolean renderFirstLast)
renderFirstLast
- public boolean isRenderPrevNext()
public void setRenderPrevNext(boolean renderPrevNext)
renderPrevNext
- public int getPagesStart()
public int getPagesEnd()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |