Author: akushunin
Date: 2007-07-19 05:42:45 -0400 (Thu, 19 Jul 2007)
New Revision: 1692
Added:
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateChangeEvent.java
Log:
CurrentDateChangeEvent
Added:
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateChangeEvent.java
===================================================================
---
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateChangeEvent.java
(rev 0)
+++
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateChangeEvent.java 2007-07-19
09:42:45 UTC (rev 1692)
@@ -0,0 +1,41 @@
+package org.richfaces.renderkit;
+
+import java.util.Date;
+
+import javax.faces.component.UIComponent;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.FacesListener;
+
+public class CurrentDateChangeEvent extends FacesEvent {
+
+ private Date currentDate = null;
+ private String currentDateString = null;
+
+ public CurrentDateChangeEvent(UIComponent component, Date curentDate) {
+ super(component);
+ this.currentDate = curentDate;
+
+ }
+ public CurrentDateChangeEvent(UIComponent component, String curentDateString) {
+ super(component);
+ this.currentDateString = curentDateString;
+ }
+
+ public boolean isAppropriateListener(FacesListener listener) {
+ return false;
+ }
+
+ public void processListener(FacesListener listener) {
+ // TODO Auto-generated method stub
+ throw new UnsupportedOperationException();
+ }
+
+ public Date getCurrentDate() {
+ return currentDate;
+ }
+
+ public String getCurrentDateString() {
+ return currentDateString;
+ }
+
+}
Property changes on:
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateChangeEvent.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Show replies by date