Package org.zkoss.zul.event

Examples of org.zkoss.zul.event.PagingEvent


   */
  public final class OnPagingEventListener implements EventListener {
    @Override
    public void onEvent(Event event) throws Exception {

      final PagingEvent pe = (PagingEvent) event;
      final int pageNo = pe.getActivePage();
      final int start = pageNo * getPageSize();

      // refresh the list
      refreshModel(start);
    }
View Full Code Here


   */
  public final class OnPagingEventListener implements EventListener {
    @Override
    public void onEvent(Event event) throws Exception {

      PagingEvent pe = (PagingEvent) event;
      int pageNo = pe.getActivePage();
      int start = pageNo * getPageSize();

      // refresh the list
      refreshModel(start);
    }
View Full Code Here

      final Listitem li = getListbox().getSelectedItem();
      if (li != null) {
        li.setSelected(false);
      }

      final PagingEvent pe = (PagingEvent) event;
      final int pageNo = pe.getActivePage();
      final int start = pageNo * getPageSize();

      // refresh the list
      refreshModel(start);
    }
View Full Code Here

   */
  public final class OnPagingEventListener implements EventListener {
    @Override
    public void onEvent(Event event) throws Exception {

      final PagingEvent pe = (PagingEvent) event;
      final int pageNo = pe.getActivePage();
      final int start = pageNo * getPageSize();

      // refresh the list
      refreshModel(start);
    }
View Full Code Here

   */
  public final class OnPagingEventListener implements EventListener {
    @Override
    public void onEvent(Event event) throws Exception {

      PagingEvent pe = (PagingEvent) event;
      int pageNo = pe.getActivePage();
      int start = pageNo * getPageSize();

      String searchText = BranchExtendedSearchListBox.this._textbox.getValue();
      // refresh the list
      refreshModel(searchText, start);
View Full Code Here

    }else if(i>=_pageCount){
      i = _pageCount -1;
    }
    if(_totalSize>0 && _activePage!=i){
      _activePage = i;
      firePagingEvent(new PagingEvent(ZulEvents.ON_PAGING,this,_activePage));
    }
    updateUI();
  }
View Full Code Here

  }
 
  public void setActivePage0(int pg) throws WrongValueException {
    _activePage = pg;
    updateUI();
    Events.postEvent(new PagingEvent("onPagingImpl", this, _activePage));
  }
View Full Code Here

 
  public void setPageSize0(int size) throws WrongValueException {
    _pageSize = size;
    _pageCount = (int)(_totalSize/_pageSize) + ((_totalSize%_pageSize==0)?0:1);
    updateUI();
    Events.postEvent(new PagingEvent("onPagingImpl", this, _activePage));
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.event.PagingEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.