|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hdpagination.config.GlobalConfig
public class GlobalConfig
A javabean containing configuration properties which are used in pagination search
| Constructor Summary | |
|---|---|
GlobalConfig()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDefaultDataScope()
The default scope ('request','session' or 'application') where the search result is to be stored. |
java.lang.String |
getErrorMessageBundle()
The resource bundle file which defines error messages. |
PageLinksPattern |
getPageLinksPattern()
LinksPattern controls the layout or style of "Pagination Control" links (e.g. |
int |
getPageSize()
How many records are displayed in one page |
java.lang.String |
getPageSizeParamName()
The name of request parameter representing page size (number of records per page). |
java.lang.String |
getSortDownImage()
Location of image file which indicates search results are sorted by descending order |
java.lang.String |
getSortUpImage()
Location of image file which indicates search results are sorted by ascending order |
java.lang.String |
getUrlSuffix()
Define the suffix (after '.') of URL that will be dispatched to PaginationAction
instance for process. |
View |
getView()
Get the view who is responsible for rendering page. |
void |
setDefaultDataScope(java.lang.String defaultDataScope)
The default scope ('request','session' or 'application') where the search result is to be stored. |
void |
setErrorMessageBundle(java.lang.String errorMessageBundle)
Set the resource bundle file which defines error messages |
void |
setPageLinksPattern(PageLinksPattern pattern)
Set linksPattern property |
void |
setPageSize(int pageSize)
Set number of records displayed in one page |
void |
setPageSizeParamName(java.lang.String pageSizeParaName)
The name of request parameter representing page size (number of records per page). |
void |
setSortDownImage(java.lang.String sortDownImage)
Set location of image file which indicates search results are sorted by descending order |
void |
setSortUpImage(java.lang.String sortUpImage)
Set location of image file which indicates search results are sorted by ascending order |
void |
setUrlSuffix(java.lang.String urlSuffix)
Set urlSuffix property |
void |
setView(View view)
Set the view who is responsible for rendering page. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalConfig()
| Method Detail |
|---|
public int getPageSize()
public void setPageSize(int pageSize)
pageSize - public java.lang.String getDefaultDataScope()
PaginationAction is not set
this default scope will be used. 'request' is highly recommended to use as the default scope.
public void setDefaultDataScope(java.lang.String defaultDataScope)
PaginationAction is not set
this default scope will be used. 'request' is highly recommended to be used as the default scope.
defaultDataScope - public PageLinksPattern getPageLinksPattern()
public void setPageLinksPattern(PageLinksPattern pattern)
pattern - public java.lang.String getSortUpImage()
public void setSortUpImage(java.lang.String sortUpImage)
sortUpImage - public java.lang.String getSortDownImage()
public void setSortDownImage(java.lang.String sortDownImage)
sortDownImage - public java.lang.String getUrlSuffix()
PaginationAction
instance for process. In another word, all requests with URL containing such suffix are thought
to be a pagination search request.
This property is only used by JSP version. JSF version does not need this.
public void setUrlSuffix(java.lang.String urlSuffix)
This property is only used by JSP version. JSF version does not need this.
urlSuffix - public java.lang.String getErrorMessageBundle()
This property is only used by JSP version. JSF version does not need this.
public void setErrorMessageBundle(java.lang.String errorMessageBundle)
This property is only used by JSP version. JSF version does not need this.
errorMessageBundle - public View getView()
This property is only used by JSP version. JSF version does not need this.
PaginationAction.getView()public void setView(View view)
InternalResourceView is used to render page if no other View instance is set.
This property is only used by JSP version. JSF version does not need this.
view - public java.lang.String getPageSizeParamName()
This property is only used by JSP version. JSF version does not need this.
Globals.PAGE_SIZE_PARAMpublic void setPageSizeParamName(java.lang.String pageSizeParaName)
This property is only used by JSP version. JSF version does not need this.
pageSizeParaName - Globals.PAGE_SIZE_PARAM
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||