com.extjs.gxt.ui.client.widget
クラス PagingToolBar

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.extjs.gxt.ui.client.widget.Component
              extended by com.extjs.gxt.ui.client.widget.PagingToolBar
すべての実装インターフェース:
Listener, Observable, com.google.gwt.user.client.EventListener

public class PagingToolBar
extends Component
implements Listener

A specialized toolbar that is bound to a ListLoader and provides automatic paging controls.


入れ子クラス 概要
 class PagingToolBar.PagingToolBarMessages
           
 
クラス com.google.gwt.user.client.ui.UIObject から継承された 入れ子クラス/インターフェース
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field 概要
 
クラス com.google.gwt.user.client.ui.UIObject から継承されたフィールド(Fields)
DEBUG_ID_PREFIX
 
コンストラクタ 概要
PagingToolBar(int pageSize)
          Creates a new paging tool bar with the given page size.
 
メソッド 概要
 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.
 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 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.
 
クラス com.extjs.gxt.ui.client.widget.Component から継承されたメソッド
addListener, 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, 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, toString
 
クラス com.google.gwt.user.client.ui.Widget から継承されたメソッド
getParent, isAttached
 
クラス com.google.gwt.user.client.ui.UIObject から継承されたメソッド
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタ 詳細

PagingToolBar

public PagingToolBar(int pageSize)
Creates a new paging tool bar with the given page size.

パラメーター:
pageSize - the page size
メソッド 詳細

bind

public void bind(PagingLoader loader)
Binds the toolbar to the loader.

パラメーター:
loader - the loader

clear

public void clear()
Clears the current toolbar text.


first

public void first()
Moves to the first page.


getActivePage

public int getActivePage()
Returns the active page.

戻り値:
the active page

getMessages

public PagingToolBar.PagingToolBarMessages getMessages()
Returns the tool bar's messages.

戻り値:
the messages

getPageSize

public int getPageSize()
Returns the current page size.

戻り値:
the page size

getTotalPages

public int getTotalPages()
Returns the total number of pages.

戻り値:
the

handleEvent

public void handleEvent(BaseEvent be)
Description copied from interface: Listener
Sent when an event that the listener has registered for occurs.

Specified by:
handleEvent in interface Listener
パラメーター:
be - the event which occurred

last

public void last()
Moves to the last page.


next

public void next()
Moves to the last page.


previous

public void previous()
Moves the the previos page.


refresh

public void refresh()
Refreshes the data using the current configuration.


setActivePage

public void setActivePage(int page)
Sets the active page (1 to page count inclusive).

パラメーター:
page - the page

setMessages

public void setMessages(PagingToolBar.PagingToolBarMessages messages)
Sets the tool bar's messages.

パラメーター:
messages - the messages

setPageSize

public void setPageSize(int pageSize)
Sets the current page size. This method does not effect the data currently being displayed. The new page size will not be used until the next load request.

パラメーター:
pageSize - the new page size