public class Pagination extends Composite implements HasStyle, IsResponsive, HasId, InsertPanel.ForIsWidget, HasWidgets.ForIsWidget
Modifier and Type | Class and Description |
---|---|
static class |
Pagination.PaginationSize |
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
InsertPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
Pagination() |
Modifier and Type | Method and Description |
---|---|
void |
add(IsWidget w) |
void |
add(Widget w) |
NavLink |
addNextLink()
Insert a NavLink displaying ">" at the most right position of the Pagination widget
|
NavLink |
addPageLink(int page)
Insert a NavLink correctly allocated in the Pagination widget
|
NavLink |
addPreviousLink()
Insert a NavLink displaying "<" at the most left position of the Pagination widget
|
void |
addStyle(Style style)
Adds the provided style to the widget.
|
void |
clear()
Removes all child widgets.
|
String |
getId()
Get ID
|
Widget |
getWidget(int index) |
int |
getWidgetCount() |
int |
getWidgetIndex(IsWidget child) |
int |
getWidgetIndex(Widget child) |
void |
insert(IsWidget w,
int beforeIndex) |
void |
insert(Widget w,
int beforeIndex)
Inserts another widget into this one.
|
Iterator<Widget> |
iterator()
Gets an iterator for the contained widgets.
|
void |
pullRight(boolean pullRight)
Deprecated.
|
boolean |
remove(int index) |
boolean |
remove(IsWidget w) |
boolean |
remove(Widget w)
Removes a child widget.
|
void |
removeStyle(Style style)
Removes the provided style from the widget.
|
void |
setAlignment(String alignment) |
void |
setHideOn(Device device)
Sets the kind of device, this widget is hidden on.
|
void |
setId(String id)
Set ID
|
void |
setPullRight(boolean pullRight)
Pulls the widget to the right side.
|
void |
setShowOn(Device device)
Sets the kind of device, this widget is shown on.
|
void |
setSize(Pagination.PaginationSize size) |
void |
setStyle(Style style)
Replaces the widet's style with the provided one.
|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
public Pagination()
public void setAlignment(String alignment)
public void setSize(Pagination.PaginationSize size)
public void add(IsWidget w)
add
in interface HasWidgets.ForIsWidget
add
in interface InsertPanel.ForIsWidget
public boolean remove(IsWidget w)
remove
in interface HasWidgets.ForIsWidget
public void insert(IsWidget w, int beforeIndex)
insert
in interface InsertPanel.ForIsWidget
public int getWidgetIndex(IsWidget child)
getWidgetIndex
in interface IndexedPanel.ForIsWidget
public Widget getWidget(int index)
getWidget
in interface IndexedPanel
public int getWidgetCount()
getWidgetCount
in interface IndexedPanel
public int getWidgetIndex(Widget child)
getWidgetIndex
in interface IndexedPanel
public boolean remove(int index)
remove
in interface IndexedPanel
public void setHideOn(Device device)
The widget is not hidden on any other device.
Only works if responsive design is turned on!
setHideOn
in interface IsResponsive
Configurator.hasResponsiveDesign()
,
IsResponsive.setShowOn(Device)
public void setShowOn(Device device)
The widget is not shown on any other device.
Only works if responsive design is turned on!
setShowOn
in interface IsResponsive
Configurator.hasResponsiveDesign()
,
IsResponsive.setHideOn(Device)
public void removeStyle(Style style)
removeStyle
in interface HasStyle
style
- the style to be removed from the Widget.@Deprecated public void pullRight(boolean pullRight)
pullRight
- true
if the widget should be aligned right.public void setPullRight(boolean pullRight)
pullRight
- true
if the widget should be aligned right.public void add(Widget w)
add
in interface HasWidgets
add
in interface InsertPanel
public void clear()
clear
in interface HasWidgets
public Iterator<Widget> iterator()
Iterator.remove()
.iterator
in interface HasWidgets
iterator
in interface Iterable<Widget>
public boolean remove(Widget w)
remove
in interface HasWidgets
w
- the widget to be removedtrue
if the widget was presentpublic void insert(Widget w, int beforeIndex)
insert
in interface InsertPanel
w
- the widget to be insertedbeforeIndex
- the index of the position before which it should be setpublic NavLink addPageLink(int page)
page
- the number of the page displayed by the NavLinkpublic NavLink addPreviousLink()
public NavLink addNextLink()
Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.