public class PagingToolBar extends ToolBar
| Modifier and Type | Class and Description |
|---|---|
static interface |
PagingToolBar.PagingToolBarAppearance |
static interface |
PagingToolBar.PagingToolBarMessages |
ToolBar.ToolBarAppearanceHBoxLayoutContainer.HBoxLayoutAlignBoxLayoutContainer.BoxLayoutContainerAppearance, BoxLayoutContainer.BoxLayoutData, BoxLayoutContainer.BoxLayoutPackUIObject.DebugIdImpl, UIObject.DebugIdImplEnabledInsertPanel.ForIsWidgetHasWidgets.ForIsWidgetDEBUG_ID_PREFIX| Constructor and Description |
|---|
PagingToolBar(int pageSize) |
PagingToolBar(ToolBar.ToolBarAppearance toolBarAppearance,
PagingToolBar.PagingToolBarAppearance appearance,
int pageSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(PagingLoader<PagingLoadConfig,?> loader) |
void |
clear()
Clears the current toolbar text.
|
void |
first()
Moves to the first page.
|
int |
getActivePage()
Returns the active page.
|
PagingToolBar.PagingToolBarAppearance |
getAppearance() |
PagingToolBar.PagingToolBarMessages |
getMessages() |
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 |
setMessages(PagingToolBar.PagingToolBarMessages messages) |
void |
setPageSize(int pageSize) |
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).
|
getMinButtonWidth, getSpacing, setMinButtonWidth, setSpacinggetHBoxLayoutAlign, isEnableOverflow, setEnableOverflow, setHBoxLayoutAlignadd, getPack, getPadding, getScrollOffset, insert, isAdjustForFlexRemainder, setAdjustForFlexRemainder, setPack, setPadding, setScrollOffsetinsert, insertforceLayout, isLayoutRunning, isOrWasLayoutRunning, onResizeadd, add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, findWidget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, removeaddBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getElement, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getStateId, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, onBrowserEvent, removeHandler, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmaskaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEventsequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddaddgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndex, removepublic PagingToolBar(int pageSize)
public PagingToolBar(ToolBar.ToolBarAppearance toolBarAppearance, PagingToolBar.PagingToolBarAppearance appearance, int pageSize)
public void bind(PagingLoader<PagingLoadConfig,?> loader)
public void clear()
clear in interface HasWidgetsclear in class Containerpublic void first()
public int getActivePage()
public PagingToolBar.PagingToolBarAppearance getAppearance()
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 setMessages(PagingToolBar.PagingToolBarMessages messages)
public void setPageSize(int pageSize)
public void setReuseConfig(boolean reuseConfig)
reuseConfig - true to reuse the load configpublic void setShowToolTips(boolean showToolTips)
showToolTips - true to show tool tipsCopyright © 2012. All Rights Reserved.