Author: akushunin
Date: 2008-02-20 03:11:11 -0500 (Wed, 20 Feb 2008)
New Revision: 6186
Added:
trunk/framework/api/src/main/java/org/richfaces/event/FileUploadListener.java
trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java
Log:
fileUploadListener and UploadEvent were added
Added: trunk/framework/api/src/main/java/org/richfaces/event/FileUploadListener.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/FileUploadListener.java
(rev 0)
+++
trunk/framework/api/src/main/java/org/richfaces/event/FileUploadListener.java 2008-02-20
08:11:11 UTC (rev 6186)
@@ -0,0 +1,29 @@
+/**
+ * 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;
+
+public interface FileUploadListener extends FacesListener {
+
+ public void processUpload(UploadEvent event);
+}
Property changes on:
trunk/framework/api/src/main/java/org/richfaces/event/FileUploadListener.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java
(rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java 2008-02-20
08:11:11 UTC (rev 6186)
@@ -0,0 +1,34 @@
+package org.richfaces.event;
+
+import java.io.InputStream;
+import javax.faces.component.UIComponent;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.FacesListener;
+
+public class UploadEvent extends FacesEvent{
+
+
+ private static final long serialVersionUID = -7645197191376210068L;
+ private InputStream file = null;
+
+ public UploadEvent(UIComponent component, InputStream file) {
+ super(component);
+ this.file = file;
+ }
+
+
+ public boolean isAppropriateListener(FacesListener listener) {
+ return false;
+ }
+
+
+ public void processListener(FacesListener listener) {
+
+ }
+
+
+ public InputStream getFile() {
+ return file;
+ }
+
+}
Property changes on:
trunk/framework/api/src/main/java/org/richfaces/event/UploadEvent.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Show replies by date