List of usage examples for com.google.gwt.cell.client ActionCell.Delegate ActionCell.Delegate
ActionCell.Delegate
From source file:org.jbpm.console.ng.cm.client.casegrid.CasesListGridViewImpl.java
License:Apache License
private Column initActionsColumn() { List<HasCell<CaseSummary, ?>> cells = new LinkedList<HasCell<CaseSummary, ?>>(); cells.add(new CreateTaskActionHasCell(constants.Create_Task(), new ActionCell.Delegate<CaseSummary>() { @Override//from w w w .j a v a2s .c om public void execute(CaseSummary caseDefinition) { quickNewTaskPopup.show(caseDefinition.getCaseId()); } })); cells.add( new CreateProcessActionHasCell(constants.Create_Process(), new ActionCell.Delegate<CaseSummary>() { @Override public void execute(CaseSummary caseDefinition) { quickNewProcessInstancePopup.show(caseDefinition.getCaseId()); } })); cells.add( new CreateSubCaseActionHasCell(constants.Create_SubCase(), new ActionCell.Delegate<CaseSummary>() { @Override public void execute(CaseSummary caseDefinition) { newCasePopup.show(); } })); CompositeCell<CaseSummary> cell = new CompositeCell<CaseSummary>(cells); Column<CaseSummary, CaseSummary> actionsColumn = new Column<CaseSummary, CaseSummary>(cell) { @Override public CaseSummary getValue(CaseSummary object) { return object; } }; return actionsColumn; }