|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.control.view.PageCursorPanel
public class PageCursorPanel
Provides support for binding a page cursor associated with a query result to an HtmlPanelGroup.
The cursor requires message resource keys. All resource keys used are prefixed with the supplied resourceKeyPrefix property (the default value is "general.pageCursor.").
The following resource keys are used by the cursor:
nomatch results first previous next last
Examples:
catalog.general.pageCursor.nomatch = No matching records were located.
catalog.general.pageCursor.results = Results {0}-{1} of {2} record(s)
catalog.general.pageCursor.first = First
catalog.general.pageCursor.previous = <
catalog.general.pageCursor.next = >
catalog.general.pageCursor.last = Last
The "results" resource key is record (not page based) and
takes the following 3 arguments:
The starting record for the current page, the ending record for the
current page and the total number of records.
Constructor Summary | |
---|---|
PageCursorPanel()
Default constructor. |
Method Summary | |
---|---|
void |
build()
Builds the components of the top and bottom HtmlPanelGroup based upon the content of the PageCursor. |
boolean |
checkActionEvent(ActionEvent event,
boolean resetPageIfNot)
Checks an action event to determine if this is a page cursor navigation event. |
String |
getActionListenerExpression()
Gets the expression used to bind generated command links to the controller. |
HtmlPanelGroup |
getBottomHtmlPanelGroup()
Gets the bound HtmlPanelGroup for the bottom portion of the page. |
String |
getChangeListenerExpression()
|
String |
getCommandAttributeName()
Gets the name of the attribute used to indicate the command that should be executed. |
String |
getCommandAttributeValue()
Gets value of the command attribute indicating that a page cursor navigation event has occurred. |
String |
getCurrentStyleClass()
Gets the style class associated with the current page. |
String |
getCursorPageAttributeName()
Gets the name of the attribute used to indicate the cursor page. |
PageCursor |
getPageCursor()
Gets the underlying page cursor. |
String |
getResourceKeyPrefix()
Gets the resource key prefix to be used when generating UI components. |
String |
getResultStyleClass()
Gets the style class associated with the result text. |
HtmlPanelGroup |
getTopHtmlPanelGroup()
Gets the bound HtmlPanelGroup for the top portion of the page. |
void |
onChange(ValueChangeEvent event)
Calles when record per page has changed. |
void |
setActionListenerExpression(String expression)
Sets the expression used to bind generated command links to the controller. |
void |
setBottomHtmlPanelGroup(HtmlPanelGroup htmlPanelGroup)
Sets the bound HtmlPanelGroup for the bottom portion of the page. |
void |
setChangeListenerExpression(String expression)
|
void |
setCommandAttributeName(String name)
Sets the name of the attribute used to indicate the command that should be executed. |
void |
setCommandAttributeValue(String value)
Sets value of the command attribute indicating that a page cursor navigation event has occurred. |
void |
setCurrenStyleClass(String styleClass)
Sets the style class associated with the current page. |
void |
setCursorPageAttributeName(String name)
Sets the name of the attribute used to indicate the cursor page. |
void |
setPageCursor(PageCursor cursor)
Sets the underlying page cursor. |
void |
setResourceKeyPrefix(String resourceKeyPrefix)
Sets the resource key prefix to be used when generating UI components. |
void |
setResultStyleClass(String styleClass)
Sets the style class associated with the result text. |
void |
setTopHtmlPanelGroup(HtmlPanelGroup htmlPanelGroup)
Sets the bound HtmlPanelGroup for the top portion of the page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageCursorPanel()
Method Detail |
---|
public String getActionListenerExpression()
public void setActionListenerExpression(String expression)
expression
- the action listener binding expressionpublic String getChangeListenerExpression()
public void setChangeListenerExpression(String expression)
public HtmlPanelGroup getBottomHtmlPanelGroup()
public void setBottomHtmlPanelGroup(HtmlPanelGroup htmlPanelGroup)
htmlPanelGroup
- the bound HtmlPanelGrouppublic String getCommandAttributeName()
public void setCommandAttributeName(String name)
name
- the command attribute namepublic String getCommandAttributeValue()
public void setCommandAttributeValue(String value)
value
- the command attribute value for a page cursor navigation eventpublic String getCurrentStyleClass()
public void setCurrenStyleClass(String styleClass)
styleClass
- the current page style classpublic String getCursorPageAttributeName()
public void setCursorPageAttributeName(String name)
name
- the cursor page attribute namepublic PageCursor getPageCursor()
public void setPageCursor(PageCursor cursor)
cursor
- the page cursorpublic String getResourceKeyPrefix()
public void setResourceKeyPrefix(String resourceKeyPrefix)
resourceKeyPrefix
- the resource key prefixpublic String getResultStyleClass()
public void setResultStyleClass(String styleClass)
styleClass
- the result text style classpublic HtmlPanelGroup getTopHtmlPanelGroup()
public void setTopHtmlPanelGroup(HtmlPanelGroup htmlPanelGroup)
htmlPanelGroup
- the bound HtmlPanelGrouppublic void build()
public void onChange(ValueChangeEvent event)
event
- eventpublic boolean checkActionEvent(ActionEvent event, boolean resetPageIfNot)
event
- the associated JSF action eventresetPageIfNot
- if true, reset the current page to 1 if this was not
a page cursor navigation event
true
page cursor event detected
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |