|
|||||||||
| 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.PagingToolBar
public class PagingToolBar
A specialized toolbar that is bound to a ListLoader and provides
automatic paging controls.
![]() |
![]() |
![]() |
![]() |
| Nested Class Summary | |
|---|---|
class |
PagingToolBar.PagingToolBarMessages
|
| 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 |
add(ToolItem item)
Adds an item to the end of the tool bar (pre-render). |
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.PagingToolBarMessages |
getMessages()
Returns the tool bar's messages. |
int |
getPageSize()
Returns the current page size. |
int |
getTotalPages()
Returns the total number of pages. |
void |
handleEvent(BaseEvent be)
Sent when an event that the listener has registered for occurs. |
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 previos page. |
void |
refresh()
Refreshes the data using the current configuration. |
void |
remove(ToolItem item)
Removes the item from the toolbar (pre-render). |
void |
setActivePage(int page)
Sets the active page (1 to page count inclusive). |
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.Component |
|---|
addListener, addPlugin, addStyleName, addWidgetListener, disable, disableEvents, disableTextSelection, el, enable, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, getBaseStyle, getBorders, getData, getData, getElement, getId, getItemId, getModel, getState, getToolTip, hide, hideToolTip, isDisabledEvents, isEnabled, isRendered, isVisible, onBrowserEvent, onComponentEvent, recalculate, removeAllListeners, removeFromParent, removeListener, removeStyleName, removeWidgetListener, render, render, saveState, setBorders, setData, setData, setElement, setEnabled, setEnableState, setHeight, setId, setIntStyleAttribute, setItemId, setPixelSize, setSize, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, setWidth, show, sinkEvents, toString |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
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 add(ToolItem item)
AdapterToolItem to adapt and
component to be used in the tool bar.
item - the item to addpublic void bind(PagingLoader loader)
loader - the loaderpublic void clear()
public void first()
public int getActivePage()
public PagingToolBar.PagingToolBarMessages getMessages()
public int getPageSize()
public int getTotalPages()
public void handleEvent(BaseEvent be)
Listener
handleEvent in interface Listenerbe - the event which occurredpublic boolean isReuseConfig()
public boolean isShowToolTips()
public void last()
public void next()
public void previous()
public void refresh()
public void remove(ToolItem item)
item - the item to removepublic void setActivePage(int page)
page - the pagepublic 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 | ||||||||