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:
parent
d0aac89dc3
commit
7d35b35ac5
@ -43,8 +43,11 @@ public class CheckListTemplateDataPanel extends Panel {
|
|||||||
|
|
||||||
IColumn[] columns = new IColumn[2];
|
IColumn[] columns = new IColumn[2];
|
||||||
|
|
||||||
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", "creator");
|
// 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
|
// the methods below work too
|
||||||
// columns[0] = new PropertyColumn(new Model("Name"), "name", "name");
|
// columns[0] = new PropertyColumn(new Model("Name"), "name", "name");
|
||||||
@ -58,7 +61,7 @@ public class CheckListTemplateDataPanel extends Panel {
|
|||||||
// none of these work
|
// none of these work
|
||||||
// table.add(new HeadersToolbar(table));
|
// table.add(new HeadersToolbar(table));
|
||||||
// table.add(new HeadersToolbar(table, null));
|
// table.add(new HeadersToolbar(table, null));
|
||||||
// table.addTopToolbar(new HeadersToolbar(table, null));
|
table.addTopToolbar(new HeadersToolbar(table, null));
|
||||||
add(table);
|
add(table);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user