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> phandler)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 pevent)pressed minus button.voidpressedPlusButton(com.google.gwt.event.dom.client.ClickEvent pevent)pressed plus button.voidsetNumPages(int pnumPages)set number pages, for each page a entry is created.voidsetPageSize(int ppageSize)voidsetValue(org.springframework.data.domain.Pageable pnewValue)voidsetValue(org.springframework.data.domain.Pageable pvalue, boolean pfireEvents)-
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 pnewValue)
- 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 pvalue, boolean pfireEvents)
-
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> phandler)
- Specified by:
addValueChangeHandlerin interfacecom.google.gwt.event.logical.shared.HasValueChangeHandlers<org.springframework.data.domain.Pageable>
-
ensureDomEventHandlers
protected void ensureDomEventHandlers()
-
setNumPages
public void setNumPages(int pnumPages)
set number pages, for each page a entry is created.- Parameters:
pnumPages- number of pages
-
getPageSize
public int getPageSize()
-
setPageSize
public void setPageSize(int ppageSize)
-
pressedMinusButton
@UiHandler("paginationPrev") public void pressedMinusButton(com.google.gwt.event.dom.client.ClickEvent pevent)pressed minus button.- Parameters:
pevent- click event
-
pressedPlusButton
@UiHandler("paginationNext") public void pressedPlusButton(com.google.gwt.event.dom.client.ClickEvent pevent)pressed plus button.- Parameters:
pevent- 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>>
-
-