added headerstoolbar. third argument when creating propertycolumns seems to be some kind of sort object, need to figure that out

This commit is contained in:
fred-fri 2012-05-03 10:35:37 +09:00
parent d0aac89dc3
commit 7d35b35ac5

@ -43,8 +43,11 @@ public class CheckListTemplateDataPanel extends Panel {
IColumn[] columns = new IColumn[2];
columns[0] = new PropertyColumn<CheckListTemplate>(Model.of("Name"), "name", "name");
columns[1] = new PropertyColumn<CheckListTemplate>(Model.of("Creator"), "creator", "creator");
// columns[0] = new PropertyColumn<CheckListTemplate>(Model.of("Name"), "name", "name");
// columns[1] = new PropertyColumn<CheckListTemplate>(Model.of("Creator"), "creator", "creator");
columns[0] = new PropertyColumn<CheckListTemplate>(Model.of("Name"), "name");
columns[1] = new PropertyColumn<CheckListTemplate>(Model.of("Creator"), "creator");
// the methods below work too
// columns[0] = new PropertyColumn(new Model("Name"), "name", "name");
@ -58,7 +61,7 @@ public class CheckListTemplateDataPanel extends Panel {
// none of these work
// table.add(new HeadersToolbar(table));
// table.add(new HeadersToolbar(table, null));
// table.addTopToolbar(new HeadersToolbar(table, null));
table.addTopToolbar(new HeadersToolbar(table, null));
add(table);
}