Search in sources :

Example 1 with ClaimTaskClickListener

use of org.activiti.explorer.ui.task.listener.ClaimTaskClickListener in project Activiti by Activiti.

the class TaskDetailPanel method initClaimButton.

protected void initClaimButton(HorizontalLayout layout) {
    if (!isCurrentUserAssignee() && canUserClaimTask()) {
        claimButton = new Button(i18nManager.getMessage(Messages.TASK_CLAIM));
        claimButton.addListener(new ClaimTaskClickListener(task.getId(), taskService));
        layout.addComponent(claimButton);
        layout.setComponentAlignment(claimButton, Alignment.MIDDLE_LEFT);
    }
}
Also used : Button(com.vaadin.ui.Button) ClaimTaskClickListener(org.activiti.explorer.ui.task.listener.ClaimTaskClickListener)

Aggregations

Button (com.vaadin.ui.Button)1 ClaimTaskClickListener (org.activiti.explorer.ui.task.listener.ClaimTaskClickListener)1