Author: nbelaevski
Date: 2008-03-11 14:44:22 -0400 (Tue, 11 Mar 2008)
New Revision: 6724
Modified:
trunk/framework/api/src/main/java/org/richfaces/event/DataScrollerEvent.java
Log:
http://jira.jboss.com/jira/browse/RF-1133
Modified: trunk/framework/api/src/main/java/org/richfaces/event/DataScrollerEvent.java
===================================================================
---
trunk/framework/api/src/main/java/org/richfaces/event/DataScrollerEvent.java 2008-03-11
18:34:59 UTC (rev 6723)
+++
trunk/framework/api/src/main/java/org/richfaces/event/DataScrollerEvent.java 2008-03-11
18:44:22 UTC (rev 6724)
@@ -31,11 +31,12 @@
public class DataScrollerEvent extends ActionEvent {
/**
- *
- */
- private static final long serialVersionUID = 2657353903701932561L;
- private String oldScrolVal;
+ *
+ */
+ private static final long serialVersionUID = 2657353903701932561L;
+ private String oldScrolVal;
private String newScrolVal;
+ private int page;
/**
* Creates a new ScrollerEvent.
@@ -44,10 +45,11 @@
* @param thisOldScrolVal the previously showing item identifier
* @param thisNewScrolVal the currently showing item identifier
*/
- public DataScrollerEvent(UIComponent component, String thisOldScrolVal, String
thisNewScrolVal) {
+ public DataScrollerEvent(UIComponent component, String thisOldScrolVal, String
thisNewScrolVal, int page) {
super(component);
oldScrolVal = thisOldScrolVal;
newScrolVal = thisNewScrolVal;
+ this.page = page;
}
public String getOldScrolVal() {
@@ -58,6 +60,14 @@
return newScrolVal;
}
+ /**
+ * @since 3.2
+ * @return new page or <code>-1</code> if not applicable
+ */
+ public int getPage() {
+ return page;
+ }
+
public boolean isAppropriateListener(FacesListener listener){
return super.isAppropriateListener(listener) || (listener instanceof
DataScrollerListener);
}