|
|||||||||
| 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.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.Container<Component>
com.extjs.gxt.ui.client.widget.toolbar.ToolBar
com.extjs.gxt.ui.client.widget.toolbar.PagingToolBar
public class PagingToolBar
A specialized toolbar that is bound to a ListLoader and provides
automatic paging controls.
| Nested Class Summary | |
|---|---|
class |
PagingToolBar.PagingToolBarImages
PagingToolBar images. |
class |
PagingToolBar.PagingToolBarMessages
PagingToolBar messages. |
| 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.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
PagingToolBar(int pageSize)
Creates a new paging tool bar with the given page size. |
|
| Method Summary | |
|---|---|
void |
bind(PagingLoader<?> loader)
Binds the toolbar to the loader. |
void |
clear()
Clears the current toolbar text. |
void |
first()
Moves to the first page. |
int |
getActivePage()
Returns the active page. |
PagingToolBar.PagingToolBarImages |
getImages()
|
PagingToolBar.PagingToolBarMessages |
getMessages()
Returns the tool bar's messages. |
int |
getPageSize()
Returns the current page size. |
int |
getTotalPages()
Returns the total number of pages. |
boolean |
isReuseConfig()
Returns true if the previous load config is reused. |
boolean |
isShowToolTips()
Returns true if tooltip are enabled. |
void |
last()
Moves to the last page. |
void |
next()
Moves to the last page. |
void |
previous()
Moves the the previous page. |
void |
refresh()
Refreshes the data using the current configuration. |
void |
setActivePage(int page)
Sets the active page (1 to page count inclusive). |
void |
setImages(PagingToolBar.PagingToolBarImages images)
|
void |
setMessages(PagingToolBar.PagingToolBarMessages messages)
Sets the tool bar's messages. |
void |
setPageSize(int pageSize)
Sets the current page size. |
void |
setReuseConfig(boolean reuseConfig)
True to reuse the previous load config (defaults to true). |
void |
setShowToolTips(boolean showToolTips)
Sets if the button tool tips should be displayed (defaults to true, pre-render). |
| Methods inherited from class com.extjs.gxt.ui.client.widget.toolbar.ToolBar |
|---|
add, getAlignment, getMinButtonWidth, getSpacing, insert, isEnableOverflow, layout, remove, setAlignment, setEnableOverflow, setMinButtonWidth, setSpacing |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Container |
|---|
disable, enable, findItem, getItem, getItemByItemId, getItemCount, getItems, getLayoutTarget, getWidget, indexOf, iterator, removeAll, scrollIntoView |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PagingToolBar(int pageSize)
pageSize - the page size| Method Detail |
|---|
public void bind(PagingLoader<?> loader)
loader - the loaderpublic void clear()
public void first()
public int getActivePage()
public PagingToolBar.PagingToolBarImages getImages()
public PagingToolBar.PagingToolBarMessages getMessages()
public int getPageSize()
public int getTotalPages()
public boolean isReuseConfig()
public boolean isShowToolTips()
public void last()
public void next()
public void previous()
public void refresh()
public void setActivePage(int page)
page - the pagepublic void setImages(PagingToolBar.PagingToolBarImages images)
public void setMessages(PagingToolBar.PagingToolBarMessages messages)
messages - the messagespublic void setPageSize(int pageSize)
pageSize - the new page sizepublic void setReuseConfig(boolean reuseConfig)
reuseConfig - true to reuse the load configpublic void setShowToolTips(boolean showToolTips)
showToolTips - true to show tool tips
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||