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

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Sun Dec 14 13:03:09 EST 2008


Author: nbelaevski
Date: 2008-12-14 13:03:09 -0500 (Sun, 14 Dec 2008)
New Revision: 11756

Added:
   trunk/framework/api/src/main/java/org/richfaces/event/TreeAjaxEvent.java
   trunk/framework/api/src/main/java/org/richfaces/event/TreeAjaxEventType.java
Log:
https://jira.jboss.org/jira/browse/RF-4196

Added: trunk/framework/api/src/main/java/org/richfaces/event/TreeAjaxEvent.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/TreeAjaxEvent.java	                        (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/event/TreeAjaxEvent.java	2008-12-14 18:03:09 UTC (rev 11756)
@@ -0,0 +1,55 @@
+/**
+ * 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.component.UIComponent;
+
+import org.ajax4jsf.event.AjaxEvent;
+
+/**
+ * Event send by tree component in case of AJAX of action (node expansion/collapsion or selection). 
+ * Contains data to distinguish between different action types in order to support different re-rendering
+ * behaviors for particular actions.
+ * 
+ * @author Nick Belaevski
+ * @since 3.3.0
+ */
+
+public class TreeAjaxEvent extends AjaxEvent {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -2410803626536767706L;
+
+	private TreeAjaxEventType eventType;
+	
+	public TreeAjaxEvent(UIComponent component, TreeAjaxEventType eventType) {
+		super(component);
+		
+		this.eventType = eventType;
+	}
+
+	public TreeAjaxEventType getEventType() {
+		return eventType;
+	}
+}

Added: trunk/framework/api/src/main/java/org/richfaces/event/TreeAjaxEventType.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/TreeAjaxEventType.java	                        (rev 0)
+++ trunk/framework/api/src/main/java/org/richfaces/event/TreeAjaxEventType.java	2008-12-14 18:03:09 UTC (rev 11756)
@@ -0,0 +1,33 @@
+/**
+ * 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;
+
+/**
+ * Types enumeration for possible tree actions to be used in {@link TreeAjaxEvent}
+ * 
+ * @author Nick Belaevski
+ * @since 3.3.0
+ */
+
+public enum TreeAjaxEventType {
+	EXPANSION, SELECTION
+}




More information about the richfaces-svn-commits mailing list