|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.gwtext.client.widgets.Component
com.gwtext.client.widgets.BoxComponent
com.gwtext.client.widgets.Toolbar
com.gwtext.client.widgets.PagingToolbar
public class PagingToolbar
A specialized toolbar that is bound to a Store and provides automatic paging controls.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.gwtext.client.widgets.Component |
|---|
config, id |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
PagingToolbar()
Create a new PagingToolbar. |
|
PagingToolbar(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
PagingToolbar(Store store)
Create a new PagingToolbar. |
|
| Method Summary | |
|---|---|
void |
bind(Store store)
Binds the paging toolbar to the specified Store. |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject config)
|
java.lang.String |
getAfterPageText()
The after page paging text tooltip (defaults to "of %0") |
java.lang.String |
getBeforePageText()
The before page paging text tooltip (defaults to "First Page") |
int |
getCurrentPage()
Return the current page number. |
boolean |
getDisplayInfo()
True to display the displayMsg. |
java.lang.String |
getDisplayMsg()
The paging status message to display (defaults to "Displaying {start} - {end} of {total}"). |
java.lang.String |
getEmptyMsg()
|
ToolbarButton |
getFirstButton()
Return the "First" ToolbarButton on the PagingTaoolbar. |
java.lang.String |
getFirstText()
The first page paging text tooltip (defaults to "First Page") |
ToolbarButton |
getLastButton()
Return the "Last" ToolbarButton on the PagingTaoolbar. |
java.lang.String |
getLastText()
The last page paging text tooltip (defaults to "Last Page") |
ToolbarButton |
getNextButton()
Return the "Next" ToolbarButton on the PagingTaoolbar. |
java.lang.String |
getNextText()
The next page paging text tooltip (defaults to "Next Page") |
int |
getPageSize()
The number of records to display per page (defaults to 20). |
ToolbarButton |
getPreviousButton()
Return the "Previous" ToolbarButton on the PagingTaoolbar. |
java.lang.String |
getPrevText()
The previous page paging text tooltip (defaults to "Previous Page") |
ToolbarButton |
getRefreshButton()
Return the "Refresh" ToolbarButton on the PagingTaoolbar. |
java.lang.String |
getRefreshText()
The refresh page paging text tooltip (defaults to "Refresh") |
Store |
getStore()
Return the Store of the PagingToolbar. |
java.lang.String |
getXType()
Gets the xtype for this component as registered with ComponentMgr. |
void |
setAfterPageText(java.lang.String afterPageText)
The after page paging text tooltip (defaults to "of %0") |
void |
setBeforePageText(java.lang.String beforePageText)
The before page paging text tooltip (defaults to "First Page") |
void |
setDisplayInfo(boolean displayInfo)
True to display the displayMsg (defaults to false). |
void |
setDisplayMsg(java.lang.String displayMsg)
The paging status message to display (defaults to "Displaying {start} - {end} of {total}"). |
void |
setEmptyMsg(java.lang.String emptyMsg)
The message to display when no records are found (defaults to "No data to display"). |
void |
setFirstText(java.lang.String firstText)
The first page paging text tooltip (defaults to "First Page") |
void |
setLastText(java.lang.String lastText)
The last page paging text tooltip (defaults to "Last Page") |
void |
setNextText(java.lang.String nextText)
The next page paging text tooltip (defaults to "Next Page") |
void |
setPageSize(int pageSize)
The number of records to display per page (defaults to 20). |
void |
setPagingParamNames(java.lang.String start,
java.lang.String limit)
Parameter names during data load. |
void |
setPrevText(java.lang.String prevText)
The previous page paging text tooltip (defaults to "Previous Page") |
void |
setRefreshText(java.lang.String refreshText)
The refrest page paging text tooltip (defaults to "Refresh") |
void |
setStore(Store store)
Set the Store for the PagingToolbar. |
void |
unbind(Store store)
Unbinds the paging toolbar from the specified Store. |
void |
updateInfo()
|
| Methods inherited from class com.gwtext.client.widgets.Toolbar |
|---|
addButton, addButton, addElement, addField, addFill, addItem, addSeparator, addSpacer, addText, getConfigPrototype |
| Methods inherited from class com.gwtext.client.widgets.BoxComponent |
|---|
addListener, doOnRender, doOnRender, getAutoHeight, getAutoWidth, getBox, getBox, getHeight, getPosition, getPosition, getSize, getWidth, setAutoHeight, setAutoWidth, setHeight, setHeight, setPagePosition, setPosition, setSize, setSize, setWidth, setWidth, syncSize, updateBox |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, setElement, setPixelSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PagingToolbar()
public PagingToolbar(Store store)
store - the underlying Storepublic PagingToolbar(com.google.gwt.core.client.JavaScriptObject jsObj)
| Method Detail |
|---|
public java.lang.String getXType()
Component
TextField field = new TextField();
field.getXType() returns "textfield"
getXType in class Toolbarprotected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
create in class Toolbarpublic void bind(Store store)
store - the Store to bind topublic void unbind(Store store)
store - the storepublic void updateInfo()
public ToolbarButton getFirstButton()
throws java.lang.IllegalStateException
ComponentListener.onRender(Component) event, or in BoxComponent.doOnRender(com.gwtext.client.core.Function) method.
java.lang.IllegalStateException - when this method is called before the PagingToolbar has been rendered.
public ToolbarButton getPreviousButton()
throws java.lang.IllegalStateException
ComponentListener.onRender(Component) event, or in BoxComponent.doOnRender(com.gwtext.client.core.Function) method.
java.lang.IllegalStateException - when this method is called before the PagingToolbar has been rendered.
public ToolbarButton getNextButton()
throws java.lang.IllegalStateException
ComponentListener.onRender(Component) event, or in BoxComponent.doOnRender(com.gwtext.client.core.Function) method.
java.lang.IllegalStateException - when this method is called before the PagingToolbar has been rendered.
public ToolbarButton getLastButton()
throws java.lang.IllegalStateException
ComponentListener.onRender(Component) event, or in BoxComponent.doOnRender(com.gwtext.client.core.Function) method.
java.lang.IllegalStateException - when this method is called before the PagingToolbar has been rendered.
public ToolbarButton getRefreshButton()
throws java.lang.IllegalStateException
ComponentListener.onRender(Component) event, or in BoxComponent.doOnRender(com.gwtext.client.core.Function) method.
java.lang.IllegalStateException - when this method is called before the PagingToolbar has been rendered.public void setDisplayMsg(java.lang.String displayMsg)
displayMsg - the display messagepublic java.lang.String getDisplayMsg()
public void setEmptyMsg(java.lang.String emptyMsg)
emptyMsg - the empty messagepublic java.lang.String getEmptyMsg()
public void setPageSize(int pageSize)
pageSize - the page sizepublic int getPageSize()
public int getCurrentPage()
public void setDisplayInfo(boolean displayInfo)
throws java.lang.IllegalStateException
displayInfo - the display message
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic boolean getDisplayInfo()
public void setStore(Store store)
store - the storepublic Store getStore()
public void setBeforePageText(java.lang.String beforePageText)
throws java.lang.IllegalStateException
beforePageText - the before page tooltip
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getBeforePageText()
public void setAfterPageText(java.lang.String afterPageText)
throws java.lang.IllegalStateException
afterPageText - the before page tooltip
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getAfterPageText()
public void setFirstText(java.lang.String firstText)
throws java.lang.IllegalStateException
firstText - the first page tooltip
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getFirstText()
public void setPrevText(java.lang.String prevText)
throws java.lang.IllegalStateException
prevText - the first page tooltip
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getPrevText()
public void setNextText(java.lang.String nextText)
throws java.lang.IllegalStateException
nextText - the first page tooltip
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getNextText()
public void setLastText(java.lang.String lastText)
throws java.lang.IllegalStateException
lastText - the first page tooltip
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getLastText()
public void setRefreshText(java.lang.String refreshText)
throws java.lang.IllegalStateException
refreshText - the first page tooltip
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getRefreshText()
public void setPagingParamNames(java.lang.String start,
java.lang.String limit)
start - defaults to "start"limit - defaults to "limit"
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||