2
0
Fork 0

[svn r283] added date and boolean editors to swing

This commit is contained in:
willemc 2007-09-21 02:42:04 +02:00
parent 9218ea6c8e
commit 78a5744a2a
10 changed files with 204 additions and 5 deletions

View file

@ -26,6 +26,8 @@
package com.idcanet.vasc;
import java.util.Date;
import com.idcanet.vasc.core.VascTable;
import com.idcanet.vasc.core.column.VascAnnotationTableColumn;
import com.idcanet.vasc.core.column.VascTableColumn;
@ -108,6 +110,14 @@ public class TestTable {
column = new VascAnnotationTableColumn("description");
table.addTableColumns(column);
column = new VascAnnotationTableColumn("active");
column.setDefaultValue(true);
table.addTableColumns(column);
column = new VascAnnotationTableColumn("date");
column.setDefaultValue(new Date());
table.addTableColumns(column);
column = new VascAnnotationTableColumn("testModel");
VascList list = new VascList();
list.setVascSelectItemModel(data);

View file

@ -53,6 +53,7 @@ public class TestModel {
private String name = null;
private String description = null;
private Float price = null;
private Boolean active = null;
private Date date = null;
private TestModel testModel = null;
@ -131,4 +132,21 @@ public class TestModel {
public void setTestModel(TestModel testModel) {
this.testModel = testModel;
}
/**
* @return the active
*/
public Boolean getActive() {
return active;
}
/**
* @param active the active to set
*/
public void setActive(Boolean active) {
this.active = active;
}
}