org.gwtbootstrap3.client.ui
Class Pagination

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by org.gwtbootstrap3.client.ui.base.ComplexWidget
                      extended by org.gwtbootstrap3.client.ui.html.UnorderedList
                          extended by org.gwtbootstrap3.client.ui.Pagination
All Implemented Interfaces:
HasAttachHandlers, HasHandlers, EventListener, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, IsWidget, Iterable<Widget>, HasId, HasInlineStyle, HasPaginationSize, HasPull, HasResponsiveness

public class Pagination
extends UnorderedList
implements HasResponsiveness, HasPaginationSize

Support for Bootstrap pagination (http://getbootstrap.com/components/#pagination)

Author:
Joshua Godi

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
IndexedPanel.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
Pagination()
           
Pagination(PaginationSize paginationSize)
           
 
Method Summary
 AnchorListItem addNextLink()
           
 AnchorListItem addPreviousLink()
           
 PaginationSize getPaginationSize()
           
 void rebuild(SimplePager pager)
          This will help to rebuild the Pagination based on the data inside the SimplePager passed in.
 void setPaginationSize(PaginationSize paginationSize)
           
 
Methods inherited from class org.gwtbootstrap3.client.ui.html.UnorderedList
isInline, isUnstyled, setInline, setUnstyled
 
Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget
add, getId, getPull, insert, setColor, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setVisibleOn
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.gwtbootstrap3.client.ui.base.HasResponsiveness
setHiddenOn, setVisibleOn
 

Constructor Detail

Pagination

public Pagination()

Pagination

public Pagination(PaginationSize paginationSize)
Method Detail

setPaginationSize

public void setPaginationSize(PaginationSize paginationSize)
Specified by:
setPaginationSize in interface HasPaginationSize

getPaginationSize

public PaginationSize getPaginationSize()
Specified by:
getPaginationSize in interface HasPaginationSize

addPreviousLink

public AnchorListItem addPreviousLink()

addNextLink

public AnchorListItem addNextLink()

rebuild

public void rebuild(SimplePager pager)
This will help to rebuild the Pagination based on the data inside the SimplePager passed in.

Make sure to all this after adding/remove data from any of the grid to ensure that this stays current with the SimplePager.

ex. dataProvider.getList().addAll(newData); pagination.rebuild(mySimplePager);

Parameters:
pager - the SimplePager of the CellTable/DataGrid


Copyright © 2015. All rights reserved.