Author: abelevich
Date: 2010-12-03 09:03:01 -0500 (Fri, 03 Dec 2010)
New Revision: 20346
Added:
trunk/examples/dnd-demo/
trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.java
Removed:
trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.java
Log:
move from sandbox
Copied: trunk/examples/dnd-demo (from rev 20328, sandbox/trunk/examples/dnd-demo)
Deleted: trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.java
===================================================================
--- sandbox/trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.java 2010-12-03
09:36:22 UTC (rev 20328)
+++ trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.java 2010-12-03 14:03:01 UTC
(rev 20346)
@@ -1,63 +0,0 @@
-package org.demo;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.faces.bean.ManagedBean;
-import javax.faces.bean.SessionScoped;
-
-import org.richfaces.event.DropEvent;
-
-@ManagedBean
-@SessionScoped
-public class DataBean {
-
- private List<String> dropValues = new ArrayList<String>();
-
- private String dragValue1 = "dragValue 1";
-
- private String dragValue2 = "dragValue 3";
-
- private String dragValue3 = "dragValue 3";
-
-
- public List<String> getDropValues(){
- return dropValues;
- }
-
- public String getDragValue1() {
- return dragValue1;
- }
-
- public void setDragValue1(String dragValue1) {
- this.dragValue1 = dragValue1;
- }
-
- public String getDragValue2() {
- return dragValue2;
- }
-
- public void setDragValue2(String dragValue2) {
- this.dragValue2 = dragValue2;
- }
-
- public String getDragValue3() {
- return dragValue3;
- }
-
- public void setDragValue3(String dragValue3) {
- this.dragValue3 = dragValue3;
- }
-
- public void setDropValues(List<String> dropValues){
- this.dropValues = dropValues;
- }
-
- public void processEvent(DropEvent event) {
- String value = (String)event.getDragValue();
- dropValues.add(value);
- System.out.println("DataBean.processEvent()");
- }
-
-
-}
Copied: trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.java (from rev 20337,
sandbox/trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.java)
===================================================================
--- trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.java
(rev 0)
+++ trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.java 2010-12-03 14:03:01 UTC
(rev 20346)
@@ -0,0 +1,63 @@
+package org.demo;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+
+import org.richfaces.event.DropEvent;
+
+@ManagedBean
+@SessionScoped
+public class DataBean {
+
+ private List<String> dropValues = new ArrayList<String>();
+
+ private String dragValue1 = "dragValue 1";
+
+ private String dragValue2 = "dragValue 3";
+
+ private String dragValue3 = "dragValue 3";
+
+
+ public List<String> getDropValues(){
+ return dropValues;
+ }
+
+ public String getDragValue1() {
+ return dragValue1;
+ }
+
+ public void setDragValue1(String dragValue1) {
+ this.dragValue1 = dragValue1;
+ }
+
+ public String getDragValue2() {
+ return dragValue2;
+ }
+
+ public void setDragValue2(String dragValue2) {
+ this.dragValue2 = dragValue2;
+ }
+
+ public String getDragValue3() {
+ return dragValue3;
+ }
+
+ public void setDragValue3(String dragValue3) {
+ this.dragValue3 = dragValue3;
+ }
+
+ public void setDropValues(List<String> dropValues){
+ this.dropValues = dropValues;
+ }
+
+ public void processEvent(DropEvent event) {
+ String value = (String)event.getDragSource().getDragValue();
+ dropValues.add(value);
+ System.out.println("DataBean.processEvent()");
+ }
+
+
+}
Show replies by date