final ReferenceEditorConfiguration conf = new ReferenceEditorConfiguration();
ManageMenuPanel panel = findParent(ManageMenuPanel.class);
conf.setWorkspaceName(panel.getModelObject().getId());
columns.add(new SubmitCancelColumn("submitCancel1", new ResourceModel("edit")));
columns.add(new EditablePropertyTreeColumn(new ResourceModel("title"), "entry.title") {
@Override
protected boolean isClickToEdit() {
return false;
}
}.setInitialSize(300));
columns.add(new EditablePropertyColumn(new ResourceModel("cssClass"), "entry.cssClass") {
@Override
protected boolean isClickToEdit() {
return false;
}
}.setInitialSize(200));
columns.add(new SwitcherColumn("referenceEditor", new ResourceModel("referenceLabelCode"), conf).setInitialSize(400));
columns.add(new SubmitCancelColumn("submitCancel2", new ResourceModel("edit")));
return columns;
}