Package org.richfaces.event.sort

Examples of org.richfaces.event.sort.SortEvent


        UIComponent column = grid.findComponent(sortColumn);
       
        if(ColumnUtil.isSortable(column)){
     
          sorted = true;
          SortEvent sortEvent = new SortEvent(grid,sortColumn, grid.getRows(), sortDataIndex);
         
          sortEvent.setProposedOrder(so);
         
          sortEvent.setAttribute(ScrollableDataTableUtils.CLIENT_ROW_KEY,sortStartRow);
         
          if (ajaxContext.isAjaxRequest()) {
            sortEvent.setAttribute(PARTIAL_UPDATE, Boolean.TRUE);
            sortEvent.setAttribute(UPDATE_HEADER, Boolean.TRUE);
          }
         
         
          sortEvent.queue();
       
      }
     
     
      if(parameters.containsKey(clientId + ":scroll") && !sorted){
View Full Code Here


    getFacesContext().renderResponse();
  }
 
  public void processSortingChange(FacesEvent event){
   
    SortEvent e = (SortEvent)event;
   
    getSortListener().processSort(e);
 
    setFirst(e.getFirst());
    reqRowsCount = e.getRows();
   
   
    resetDataModel();
   
    getFacesContext().renderResponse();
View Full Code Here

    getFacesContext().renderResponse();
  }
 
  public void processSortingChange(FacesEvent event){
   
    SortEvent e = (SortEvent)event;
   
    getSortListener().processSort(e);
 
    setFirst(e.getFirst());
    reqRowsCount = e.getRows();
   
   
    resetDataModel();
   
    getFacesContext().renderResponse();
View Full Code Here

        UIComponent column = grid.findComponent(sortColumn);
       
        if(ColumnUtil.isSortable(column)){
     
          sorted = true;
          SortEvent sortEvent = new SortEvent(grid,sortColumn, grid.getRows(), sortDataIndex);
         
          sortEvent.setProposedOrder(so);
         
          sortEvent.setAttribute(ScrollableDataTableUtils.CLIENT_ROW_KEY,sortStartRow);
         
          if (ajaxContext.isAjaxRequest()) {
            sortEvent.setAttribute(PARTIAL_UPDATE, Boolean.TRUE);
            sortEvent.setAttribute(UPDATE_HEADER, Boolean.TRUE);
          }
         
         
          sortEvent.queue();
       
      }
     
     
      if(parameters.containsKey(clientId + ":scroll") && !sorted){
View Full Code Here

        UIComponent column = grid.findComponent(sortColumn);
       
        if(ColumnUtil.isSortable(column)){
     
          sorted = true;
          SortEvent sortEvent = new SortEvent(grid,sortColumn, grid.getRows(), sortDataIndex);
         
          sortEvent.setProposedOrder(so);
         
          sortEvent.setAttribute(ScrollableDataTableUtils.CLIENT_ROW_KEY,sortStartRow);
         
          if (ajaxContext.isAjaxRequest()) {
            sortEvent.setAttribute(PARTIAL_UPDATE, Boolean.TRUE);
            sortEvent.setAttribute(UPDATE_HEADER, Boolean.TRUE);
          }
         
         
          sortEvent.queue();
       
      }
     
     
      if(parameters.containsKey(clientId + ":scroll") && !sorted){
View Full Code Here

    getFacesContext().renderResponse();
  }
 
  public void processSortingChange(FacesEvent event){
   
    SortEvent e = (SortEvent)event;
   
    getSortListener().processSort(e);
 
    setFirst(e.getFirst());
    reqRowsCount = e.getRows();
   
   
    resetDataModel();
   
    getFacesContext().renderResponse();
View Full Code Here

    table.broadcast(ajaxEvent);
    assertTrue(ajaxContext.getAjaxAreasToRender().contains(id));
   
    SortListener1 sortListener = new SortListener1();
    table.setSortListener(sortListener);
    table.broadcast(new SortEvent(table, "0", 20, 30));
    assertTrue(sortListener.triggered);
   
  }
View Full Code Here

  public void testProcessSortingChange() {
    SortListener1 sortListener1 = new SortListener1();
   
    table.setSortListener(sortListener1);
   
    SortEvent sortEvent = new SortEvent(table, "0", 20, 30);
   
    table.processSortingChange(sortEvent);
   
    assertTrue(sortListener1.triggered);
   
View Full Code Here

    getFacesContext().renderResponse();
  }
 
  public void processSortingChange(FacesEvent event){
   
    SortEvent e = (SortEvent)event;
   
    getSortListener().processSort(e);
 
    setFirst(e.getFirst());
    reqRowsCount = e.getRows();
   
   
    resetDataModel();
   
    getFacesContext().renderResponse();
View Full Code Here

        UIComponent column = grid.findComponent(sortColumn);
       
        if(ColumnUtil.isSortable(column)){
     
          sorted = true;
          SortEvent sortEvent = new SortEvent(grid,sortColumn, grid.getRows(), sortDataIndex);
         
          sortEvent.setProposedOrder(so);
         
          sortEvent.setAttribute(ScrollableDataTableUtils.CLIENT_ROW_KEY,sortStartRow);
         
          if (ajaxContext.isAjaxRequest()) {
            sortEvent.setAttribute(PARTIAL_UPDATE, Boolean.TRUE);
            sortEvent.setAttribute(UPDATE_HEADER, Boolean.TRUE);
          }
         
         
          sortEvent.queue();
       
      }
     
     
      if(parameters.containsKey(clientId + ":scroll") && !sorted){
View Full Code Here

TOP

Related Classes of org.richfaces.event.sort.SortEvent

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.