Class 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
    • Constructor Detail

      • PageNumberWithArrowsWidget

        public PageNumberWithArrowsWidget()
        constructor.
    • Method Detail

      • setValue

        public final void setValue​(org.springframework.data.domain.Pageable newValue)
        Specified by:
        setValue in interface HasValue<org.springframework.data.domain.Pageable>
        Specified by:
        setValue in interface com.google.gwt.user.client.TakesValue<org.springframework.data.domain.Pageable>
        Specified by:
        setValue in interface org.gwtproject.editor.client.TakesValue<org.springframework.data.domain.Pageable>
      • setValue

        public final void setValue​(org.springframework.data.domain.Pageable value,
                                   boolean fireEvents)
        Specified by:
        setValue in interface HasValue<org.springframework.data.domain.Pageable>
      • getValue

        public org.springframework.data.domain.Pageable getValue()
        Specified by:
        getValue in interface HasValue<org.springframework.data.domain.Pageable>
        Specified by:
        getValue in interface com.google.gwt.user.client.TakesValue<org.springframework.data.domain.Pageable>
        Specified by:
        getValue in interface org.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:
        addValueChangeHandler in interface com.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:
        asEditor in interface org.gwtproject.editor.client.IsEditor<de.knightsoftnet.validators.client.editor.ValueBoxEditor<org.springframework.data.domain.Pageable>>