[richfaces-svn-commits] JBoss Rich Faces SVN: r2880 - trunk/test-applications/jsp/src/main/java/dataTable.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Tue Sep 11 12:32:20 EDT 2007
Author: ayanul
Date: 2007-09-11 12:32:20 -0400 (Tue, 11 Sep 2007)
New Revision: 2880
Added:
trunk/test-applications/jsp/src/main/java/dataTable/ChildBean.java
trunk/test-applications/jsp/src/main/java/dataTable/Data.java
Log:
update datatable
Added: trunk/test-applications/jsp/src/main/java/dataTable/ChildBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dataTable/ChildBean.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/dataTable/ChildBean.java 2007-09-11 16:32:20 UTC (rev 2880)
@@ -0,0 +1,41 @@
+package dataTable;
+
+/**
+ * @author shura
+ *
+ */
+public class ChildBean {
+
+ private String name;
+
+ private int qty;
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return this.name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the qty
+ */
+ public int getQty() {
+ return this.qty;
+ }
+
+ /**
+ * @param qty the qty to set
+ */
+ public void setQty(int qty) {
+ this.qty = qty;
+ }
+
+}
Added: trunk/test-applications/jsp/src/main/java/dataTable/Data.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dataTable/Data.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/dataTable/Data.java 2007-09-11 16:32:20 UTC (rev 2880)
@@ -0,0 +1,122 @@
+package dataTable;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.event.ValueChangeEvent;
+
+
+public class Data {
+ private List detail = new ArrayList();
+ private String mounth;
+ private String town;
+ private String day;
+ private int total;
+ private int price;
+
+ private boolean checked=true;
+ /**
+ *
+ */
+ public Data() {
+ // TODO Auto-generated constructor stub
+ }
+
+ /**
+ * @return the detail
+ */
+ public List getDetail() {
+ return this.detail;
+ }
+
+ /**
+ * @param detail the detail to set
+ */
+ public void setDetail(List detail) {
+ this.detail = detail;
+ }
+
+ /**
+ * @return the mounth
+ */
+ public String getMounth() {
+ return this.mounth;
+ }
+
+ /**
+ * @param mounth the mounth to set
+ */
+ public void setMounth(String mounth) {
+ this.mounth = mounth;
+ }
+
+ /**
+ * @return the total
+ */
+ public int getTotal() {
+ return this.total;
+ }
+
+ /**
+ * @param total the total to set
+ */
+ public void setTotal(int total) {
+ this.total = total;
+ }
+
+ /**
+ * @return the checked
+ */
+ public boolean isChecked() {
+ System.out.println("Invoke get checked for mounth "+getMounth()+", checked:"+checked);
+ return this.checked;
+ }
+
+ /**
+ * @param checked the checked to set
+ */
+ public void setChecked(boolean checked) {
+ System.out.println("Invoke set checked for mounth "+getMounth()+", checked:"+checked);
+ this.checked = checked;
+ }
+
+ public String check(){
+ checked = !checked;
+ System.out.println("Invoke check action for mounth "+getMounth()+", checked:"+checked);
+ return null;
+ }
+
+ public void checkChanged(ValueChangeEvent event) {
+ System.out.println("Checked changed for mounth "+getMounth());
+ }
+
+ /**
+ * @return the price
+ */
+ public int getPrice() {
+ return price;
+ }
+
+ /**
+ * @param price the price to set
+ */
+ public void setPrice(int price) {
+ this.price = price;
+ }
+
+ public String getTown() {
+ return town;
+ }
+
+ public void setTown(String town) {
+ this.town = town;
+ }
+
+ public String getDay() {
+ return day;
+ }
+
+ public void setDay(String day) {
+ this.day = day;
+ }
+}
More information about the richfaces-svn-commits
mailing list