return predecessor != null ? predecessor.getTitle() : "";
};
});
panel.add(asStringLabel);
final String taskSelectProperty = "predecessorId:" + ganttObject.getId();
final IconLinkPanel selectSubmitLink = new IconLinkPanel("select", IconType.TASK, new SubmitLink(IconLinkPanel.LINK_ID) {
@Override
public void onSubmit()
{
final TaskTreePage taskTreePage = new TaskTreePage(GanttChartEditTreeTablePanel.this, taskSelectProperty);
if (predecessorTask != null) {
taskTreePage.setHighlightedRowId(predecessorTask.getId()); // Preselect node for highlighting.
} else if (task != null) {
taskTreePage.setHighlightedRowId(task.getId()); // Preselect node for highlighting.
}
setResponsePage(taskTreePage);
}
}.setDefaultFormProcessing(false));
selectSubmitLink.setTooltip(new ResourceModel("tooltip.selectTask"));
panel.add(selectSubmitLink);
final ImageSubmitLinkPanel unselectSubmitLink = new ImageSubmitLinkPanel("unselect", form, WebConstants.IMAGE_TASK_UNSELECT,
getString("tooltip.unselectTask")) {
@Override
public void onSubmit()