[richfaces-svn-commits] JBoss Rich Faces SVN: r2560 - trunk/framework/api/src/main/java/org/richfaces/event.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Aug 29 07:37:16 EDT 2007


Author: akushunin
Date: 2007-08-29 07:37:16 -0400 (Wed, 29 Aug 2007)
New Revision: 2560

Added:
   trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java
   trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeListener.java
Log:
added CurrentDateChangeEvent

Added: trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java	                        (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java	2007-08-29 11:37:16 UTC (rev 2560)
@@ -0,0 +1,45 @@
+package org.richfaces.event;
+
+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 static final long serialVersionUID = -8169207286087810907L;
+	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: trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeEvent.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeListener.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeListener.java	                        (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeListener.java	2007-08-29 11:37:16 UTC (rev 2560)
@@ -0,0 +1,36 @@
+/**
+ * License Agreement.
+ *
+ *  JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007  Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
+ */
+
+package org.richfaces.event;
+
+import javax.faces.event.FacesListener;
+
+/**
+ * @author Alexej Kushunin - akushunin at exadel.com
+ * created 28.08.2007
+ * 
+ * Base calendar events interface
+ */
+public interface CurrentDateChangeListener extends FacesListener {
+
+    public void processCurrentDateChange(CurrentDateChangeEvent event);
+
+}
\ No newline at end of file


Property changes on: trunk/framework/api/src/main/java/org/richfaces/event/CurrentDateChangeListener.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native




More information about the richfaces-svn-commits mailing list