Class PageNumberWithArrowsWidget
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- de.knightsoftnet.mtwidgets.client.ui.widget.PageNumberWithArrowsWidget
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.logical.shared.HasValueChangeHandlers<org.springframework.data.domain.Pageable>,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.TakesValue<org.springframework.data.domain.Pageable>,HasValue<org.springframework.data.domain.Pageable>,HasVisibility,IsRenderable,IsWidget,org.gwtproject.editor.client.Editor<org.springframework.data.domain.Pageable>,org.gwtproject.editor.client.IsEditor<de.knightsoftnet.validators.client.editor.ValueBoxEditor<org.springframework.data.domain.Pageable>>,org.gwtproject.editor.client.TakesValue<org.springframework.data.domain.Pageable>
public class PageNumberWithArrowsWidget extends Composite implements org.gwtproject.editor.client.Editor<org.springframework.data.domain.Pageable>, org.gwtproject.editor.client.IsEditor<de.knightsoftnet.validators.client.editor.ValueBoxEditor<org.springframework.data.domain.Pageable>>, HasValue<org.springframework.data.domain.Pageable>, org.gwtproject.editor.client.TakesValue<org.springframework.data.domain.Pageable>
Input widget for page numbers used for pagination.- Author:
- Manfred Tremmel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
-
-
Field Summary
-
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
-
Constructor Summary
Constructors Constructor Description PageNumberWithArrowsWidget()constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.event.shared.HandlerRegistrationaddValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<org.springframework.data.domain.Pageable> handler)de.knightsoftnet.validators.client.editor.ValueBoxEditor<org.springframework.data.domain.Pageable>asEditor()protected voidensureDomEventHandlers()intgetPageSize()org.springframework.data.domain.PageablegetValue()voidpressedMinusButton(com.google.gwt.event.dom.client.ClickEvent event)pressed minus button.voidpressedPlusButton(com.google.gwt.event.dom.client.ClickEvent event)pressed plus button.voidsetNumPages(int numPages)set number pages, for each page a entry is created.voidsetPageSize(int pageSize)voidsetValue(org.springframework.data.domain.Pageable newValue)voidsetValue(org.springframework.data.domain.Pageable value, boolean fireEvents)-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Method Detail
-
setValue
public final void setValue(org.springframework.data.domain.Pageable newValue)
- Specified by:
setValuein interfaceHasValue<org.springframework.data.domain.Pageable>- Specified by:
setValuein interfacecom.google.gwt.user.client.TakesValue<org.springframework.data.domain.Pageable>- Specified by:
setValuein interfaceorg.gwtproject.editor.client.TakesValue<org.springframework.data.domain.Pageable>
-
setValue
public final void setValue(org.springframework.data.domain.Pageable value, boolean fireEvents)
-
getValue
public org.springframework.data.domain.Pageable getValue()
- Specified by:
getValuein interfaceHasValue<org.springframework.data.domain.Pageable>- Specified by:
getValuein interfacecom.google.gwt.user.client.TakesValue<org.springframework.data.domain.Pageable>- Specified by:
getValuein interfaceorg.gwtproject.editor.client.TakesValue<org.springframework.data.domain.Pageable>
-
addValueChangeHandler
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<org.springframework.data.domain.Pageable> handler)
- Specified by:
addValueChangeHandlerin interfacecom.google.gwt.event.logical.shared.HasValueChangeHandlers<org.springframework.data.domain.Pageable>
-
ensureDomEventHandlers
protected void ensureDomEventHandlers()
-
setNumPages
public void setNumPages(int numPages)
set number pages, for each page a entry is created.- Parameters:
numPages- number of pages
-
getPageSize
public int getPageSize()
-
setPageSize
public void setPageSize(int pageSize)
-
pressedMinusButton
@UiHandler("paginationPrev") public void pressedMinusButton(com.google.gwt.event.dom.client.ClickEvent event)pressed minus button.- Parameters:
event- click event
-
pressedPlusButton
@UiHandler("paginationNext") public void pressedPlusButton(com.google.gwt.event.dom.client.ClickEvent event)pressed plus button.- Parameters:
event- click event
-
asEditor
public de.knightsoftnet.validators.client.editor.ValueBoxEditor<org.springframework.data.domain.Pageable> asEditor()
- Specified by:
asEditorin interfaceorg.gwtproject.editor.client.IsEditor<de.knightsoftnet.validators.client.editor.ValueBoxEditor<org.springframework.data.domain.Pageable>>
-
-