|
|||||||||
| 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.
| Field Summary |
|---|
| Fields inherited from class com.gwtext.client.widgets.Component |
|---|
config, id |
| 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") |
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()
|
java.lang.String |
getFirstText()
The first page paging text tooltip (defaults to "First Page") |
java.lang.String |
getLastText()
The last page paging text tooltip (defaults to "Last Page") |
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). |
java.lang.String |
getPrevText()
The previous page paging text tooltip (defaults to "Previous Page") |
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 |
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. |
| 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, 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, setElement |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, removeStyleName, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkEvents, toString, 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 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 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||