@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 onUpdateHeader(BlockHeaderWidget header) { Task task = getObject(); header.setDragHandle(task.getReference()); Image statusImage = null; if (task.isClosed()) { statusImage = Img.bundle.tskClosed().createImage(); statusImage.setTitle("Closed."); } else if (task.isBlocked()) { statusImage = Img.bundle.tskBlocked().createImage(); statusImage.setTitle("Blocked by " + task.getImpediment().getReferenceAndLabel() + "."); } else if (task.isOwnerSet()) { statusImage = Img.bundle.tskClaimed().createImage(); statusImage.setTitle("Claimed by " + task.getOwner().getName() + "."); } statusIcon.setWidget(statusImage); if (requirementLabel != null) { Requirement req = task.getRequirement(); requirementLabel.setText(req.getReference() + " " + req.getLabel()); } if (ownerLabel != null) ownerLabel.setText(task.isOwnerSet() ? task.getOwner().getName() : null); header.setCenter(task.getLabel()); }
@Override protected void onUpdateHeader(BlockHeaderWidget header) { Requirement requirement = getObject(); header.setDragHandle(requirement.getReference()); Image statusImage = null; if (requirement.isRejected()) { statusImage = Img.bundle.reqRejected().createImage(); statusImage.setTitle("Rejected."); } else if (requirement.isClosed()) { statusImage = Img.bundle.reqClosed().createImage(); statusImage.setTitle("Accepted."); } else if (requirement.isTasksClosed()) { statusImage = Img.bundle.reqTasksClosed().createImage(); statusImage.setTitle("All tasks done."); } statusIcon.setWidget(statusImage); }
@Override protected void onUpdateHeader(BlockHeaderWidget header) { Risk risk = getObject(); header.setDragHandle(risk.getReference()); }
@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)); }