@Override protected void onInitializationHeader(BlockHeaderWidget header) { Risk risk = getObject(); header.addText(risk.getPriorityLabelModel(), "100px", true, false); header.addText(risk.getLabelModel()); header.appendCell(new EmoticonsWidget(risk), null, true); header.addMenuAction(new ActivateChangeHistoryAction(risk)); header.addMenuAction(new DeleteRiskAction(risk)); }
@Override protected void onInitializationHeader(BlockHeaderWidget header) { Task task = getObject(); statusIcon = header.insertPrefixIcon(); if (container.isShowRequirement()) requirementLabel = header.appendCenterSuffix(null); if (container.isShowOwner()) ownerLabel = header.appendCenterSuffix(null); header.appendCell(new EmoticonsWidget(task), null, true, true, null); header.addMenuAction(new ClaimTaskAction(task)); header.addMenuAction(new CloseTaskAction(task)); header.addMenuAction(new ReopenTaskAction(task)); header.addMenuAction(new UnclaimTaskAction(task)); header.addMenuAction(new CreateTaskImpedimentAction(task)); header.addMenuAction(new DeleteTaskAction(task)); }
@Override protected void onInitializationHeader(BlockHeaderWidget header) { Requirement requirement = getObject(); decidableOnInitialization = requirement.isDecidable(); statusIcon = header.addIconWrapper(); header.addText(requirement.getLabelModel()); header.addText(requirement.getThemesAsStringModel(), true, false); header.addText(requirement.getTaskStatusLabelModel(), true); header.appendCell(new EmoticonsWidget(requirement), null, true); header.addMenuAction(new RejectRequirementAction(requirement)); header.addMenuAction(new FixRequirementAction(requirement)); header.addMenuAction(new CloseRequirementAction(requirement)); header.addMenuAction(new ReopenRequirementAction(requirement)); header.addMenuAction(new RemoveRequirementFromSprintAction(requirement)); header.addMenuAction(new ActivateChangeHistoryAction(requirement)); header.addMenuAction(new CreateTaskAction(requirement)); }