private static final long serialVersionUID = 1L;
@Override
public void onClick(final AjaxRequestTarget target) {
final GradebookPage gradebookPage = (GradebookPage) getPage();
final GbModalWindow window = gradebookPage.getDeleteItemWindow();
<BUG>final DeleteItemPanel panel = new DeleteItemPanel(window.getContentId(), getModel(), window);
window.setComponentToReturnFocusTo(getParentCellFor(this));</BUG>
window.setContent(panel);
window.showUnloadConfirmation(false);
window.show(target);

private static final long serialVersionUID = 1L;
@Override
public void onClick(final AjaxRequestTarget target) {
final GradebookPage gradebookPage = (GradebookPage) getPage();
final GbModalWindow window = gradebookPage.getAddOrEditGradeItemWindow();
window.setTitle(getString("heading.editgradeitem"));
window.setComponentToReturnFocusTo(getParentCellFor(this));
window.setContent(new AddOrEditGradeItemPanel(window.getContentId(), window, getModel()));
window.showUnloadConfirmation(false);
window.show(target);
