}
});
table = Tasks.updateTaskTable(
columns,
new TasksProvider(restClient, paginatorRows, getId(), NotificationTaskTO.class),
container,
0);
container.add(table);
window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
private static final long serialVersionUID = 8804221891699487139L;
@Override
public void onClose(final AjaxRequestTarget target) {
target.add(container);
if (operationResult) {
info(getString("operation_succeded"));
target.add(getPage().get("feedback"));
operationResult = false;
}
}
});
window.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
window.setInitialHeight(WIN_HEIGHT);
window.setInitialWidth(WIN_WIDTH);
window.setCookieName("view-task-win");
Form paginatorForm = new Form("PaginatorForm");
final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this, "paginatorRows"),
prefMan.getPaginatorChoices());
rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
private static final long serialVersionUID = -1107858522700306810L;
@Override
protected void onUpdate(final AjaxRequestTarget target) {
prefMan.set(getWebRequest(), (WebResponse) getResponse(),
Constants.PREF_NOTIFICATION_TASKS_PAGINATOR_ROWS, String.valueOf(paginatorRows));
table = Tasks.updateTaskTable(
columns,
new TasksProvider(restClient, paginatorRows, getId(), NotificationTaskTO.class),
container,
table == null ? 0 : table.getCurrentPage());
target.add(container);
}