added some columns

This commit is contained in:
fred-fri 2012-05-04 12:19:19 +09:00
parent 459775991b
commit d763e39a89
2 changed files with 10 additions and 3 deletions
src/main/java/se/su/dsv/scipro

@ -59,9 +59,12 @@ public class CheckListTemplateDataPanel extends Panel {
};
add(numberDropDown);
IColumn[] columns = new IColumn[2];
IColumn[] columns = new IColumn[4];
columns[0] = new PropertyColumn<CheckListTemplate>(Model.of("Name"), "name", "name");
columns[1] = new PropertyColumn<CheckListTemplate>(Model.of("Creator"), "creator");
columns[1] = new PropertyColumn<CheckListTemplate>(Model.of("Creator"), "creator", "creator");
columns[2] = new PropertyColumn<CheckListTemplate>(Model.of("Categories"), "categories", "categories");
columns[3] = new PropertyColumn<CheckListTemplate>(Model.of("Created"), "dateCreated", "dateCreated");
table = new DataTable<CheckListTemplate>("datatable", columns, checklistTemplateProvider = new ChecklistTemplateProvider(), 10);
table.setOutputMarkupId(true);

@ -83,6 +83,10 @@ public class ChecklistCategory extends DomainObject{
return false;
return true;
}
@Override
public String toString(){
return categoryName;
}
}