| 1 4 5 6 21 package com.icesoft.faces.component.datapaginator; 22 23 import javax.faces.component.UIComponent; 24 import javax.faces.event.ActionEvent; 25 26 29 public class PaginatorActionEvent extends ActionEvent { 30 private static final long serialVersionUID = -5692343289423906802L; 31 32 private final String mScrollerfacet; 33 34 private final int mPageIndex; 35 36 40 public PaginatorActionEvent(UIComponent component, String scrollerfacet) { 41 super(component); 42 mScrollerfacet = scrollerfacet; 43 mPageIndex = -1; 44 } 45 46 50 public PaginatorActionEvent(UIComponent component, int pageIndex) { 51 super(component); 52 if (pageIndex < 0) { 53 throw new IllegalArgumentException ("wrong pageindex"); 54 } 55 mPageIndex = pageIndex; 56 mScrollerfacet = null; 57 } 58 59 62 public String getScrollerfacet() { 63 return mScrollerfacet; 64 } 65 66 69 public int getPageIndex() { 70 return mPageIndex; 71 } 72 } 73 | Popular Tags |