added some columns
This commit is contained in:
parent
459775991b
commit
d763e39a89
src/main/java/se/su/dsv/scipro
@ -59,9 +59,12 @@ public class CheckListTemplateDataPanel extends Panel {
|
|||||||
};
|
};
|
||||||
add(numberDropDown);
|
add(numberDropDown);
|
||||||
|
|
||||||
IColumn[] columns = new IColumn[2];
|
IColumn[] columns = new IColumn[4];
|
||||||
columns[0] = new PropertyColumn<CheckListTemplate>(Model.of("Name"), "name", "name");
|
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 = new DataTable<CheckListTemplate>("datatable", columns, checklistTemplateProvider = new ChecklistTemplateProvider(), 10);
|
||||||
table.setOutputMarkupId(true);
|
table.setOutputMarkupId(true);
|
||||||
|
@ -83,6 +83,10 @@ public class ChecklistCategory extends DomainObject{
|
|||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString(){
|
||||||
|
return categoryName;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user