Package org.richfaces.event.scroll

Examples of org.richfaces.event.scroll.ScrollEvent


          int first = 0;
         
          if(!isEmpty){
            rows = Integer.parseInt(values[0]);
            first = Integer.parseInt(values[1]);
            ScrollEvent scrollEvent = new ScrollEvent(grid,rows,first);

            scrollEvent.setAttribute(ScrollableDataTableUtils.CLIENT_ROW_KEY,Integer.valueOf(values[2]));           
           
            if (ajaxContext.isAjaxRequest()) {
              scrollEvent.setAttribute(PARTIAL_UPDATE, Boolean.TRUE);
            }

            scrollEvent.queue();
           
          }
        }
      }
     
View Full Code Here


          int first = 0;
         
          if(!isEmpty){
            rows = Integer.parseInt(values[0]);
            first = Integer.parseInt(values[1]);
            ScrollEvent scrollEvent = new ScrollEvent(grid,rows,first);

            scrollEvent.setAttribute(ScrollableDataTableUtils.CLIENT_ROW_KEY,Integer.valueOf(values[2]));           
           
            if (ajaxContext.isAjaxRequest()) {
              scrollEvent.setAttribute(PARTIAL_UPDATE, Boolean.TRUE);
            }

            scrollEvent.queue();
           
          }
        }
      }
     
View Full Code Here

          int first = 0;
         
          if(!isEmpty){
            rows = Integer.parseInt(values[0]);
            first = Integer.parseInt(values[1]);
            ScrollEvent scrollEvent = new ScrollEvent(grid,rows,first);

            scrollEvent.setAttribute(ScrollableDataTableUtils.CLIENT_ROW_KEY,Integer.valueOf(values[2]));           
           
            if (ajaxContext.isAjaxRequest()) {
              scrollEvent.setAttribute(PARTIAL_UPDATE, Boolean.TRUE);
            }

            scrollEvent.queue();
           
          }
        }
      }
     
View Full Code Here

      triggered = true;
    }
  }
 
  public void testBroadCast() {
    ScrollableGridViewEvent event = new ScrollEvent(table, 20, 30);
    event.setAttribute("attr", "value0");
    table.broadcast(event);
    assertEquals("value0", table.getAttributes().get("attr"));
   
    AjaxEvent ajaxEvent = new AjaxEvent(table);
    String id = AjaxRendererUtils.getAbsoluteId(table);
View Full Code Here

    assertEquals(30, table.getFirst());
   
  }
 
  public void testProcessScrolling() {
    ScrollableGridViewEvent event = new ScrollEvent(table, 20, 440);
    table.processScrolling(event);

    assertTrue(facesContext.getRenderResponse());
    assertEquals(440, table.getFirst());
   
View Full Code Here

          int first = 0;
         
          if(!isEmpty){
            rows = Integer.parseInt(values[0]);
            first = Integer.parseInt(values[1]);
            ScrollEvent scrollEvent = new ScrollEvent(grid,rows,first);

            scrollEvent.setAttribute(ScrollableDataTableUtils.CLIENT_ROW_KEY,Integer.valueOf(values[2]));           
           
            if (ajaxContext.isAjaxRequest()) {
              scrollEvent.setAttribute(PARTIAL_UPDATE, Boolean.TRUE);
            }

            scrollEvent.queue();
           
          }
        }
      }
     
View Full Code Here

          int first = 0;
         
          if(!isEmpty){
            rows = Integer.parseInt(values[0]);
            first = Integer.parseInt(values[1]);
            ScrollEvent scrollEvent = new ScrollEvent(grid,rows,first);

            scrollEvent.setAttribute(ScrollableDataTableUtils.CLIENT_ROW_KEY,Integer.valueOf(values[2]));           
           
            if (ajaxContext.isAjaxRequest()) {
              scrollEvent.setAttribute(PARTIAL_UPDATE, Boolean.TRUE);
            }

            scrollEvent.queue();
           
          }           
      }
     
     
View Full Code Here

          int first = 0;
         
          if(!isEmpty){
            rows = Integer.parseInt(values[0]);
            first = Integer.parseInt(values[1]);
            ScrollEvent scrollEvent = new ScrollEvent(grid,rows,first);

            scrollEvent.setAttribute(ScrollableDataTableUtils.CLIENT_ROW_KEY,Integer.valueOf(values[2]));           
           
            if (ajaxContext.isAjaxRequest()) {
              scrollEvent.setAttribute(PARTIAL_UPDATE, Boolean.TRUE);
            }

            scrollEvent.queue();
           
          }           
      }
     
     
View Full Code Here

TOP

Related Classes of org.richfaces.event.scroll.ScrollEvent

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.