super.init();
gridBuilder.newSplitPanel(GridSize.COL66);
{
// Assignee
final FieldsetPanel fs = gridBuilder.newFieldset(getString("plugins.todo.assignee"));
final UserSelectPanel assigneeSelectPanel = new UserSelectPanel(fs.newChildId(), new Model<PFUserDO>() {
@Override
public PFUserDO getObject()
{
return userGroupCache.getUser(getSearchFilter().getAssigneeId());
}
@Override
public void setObject(final PFUserDO object)
{
if (object == null) {
getSearchFilter().setAssigneeId(null);
} else {
getSearchFilter().setAssigneeId(object.getId());
}
}
}, parentPage, "assigneeId");
fs.add(assigneeSelectPanel);
assigneeSelectPanel.setDefaultFormProcessing(false);
assigneeSelectPanel.init().withAutoSubmit(true);
}
gridBuilder.newSplitPanel(GridSize.COL33);
{
// Reporter
final FieldsetPanel fs = gridBuilder.newFieldset(getString("plugins.todo.reporter"));
final UserSelectPanel reporterSelectPanel = new UserSelectPanel(fs.newChildId(), new Model<PFUserDO>() {
@Override
public PFUserDO getObject()
{
return userGroupCache.getUser(getSearchFilter().getReporterId());
}
@Override
public void setObject(final PFUserDO object)
{
if (object == null) {
getSearchFilter().setReporterId(null);
} else {
getSearchFilter().setReporterId(object.getId());
}
}
}, parentPage, "reporterId");
fs.add(reporterSelectPanel);
reporterSelectPanel.setDefaultFormProcessing(false);
reporterSelectPanel.init().withAutoSubmit(true);
}
{
gridBuilder.newSplitPanel(GridSize.COL100);
final FieldsetPanel fs = gridBuilder.newFieldset(getString("task")).suppressLabelForWarning();
final TaskSelectPanel taskSelectPanel = new TaskSelectPanel(fs, new Model<TaskDO>() {