@Override public void callback( List<ProcessSummary> processSummaries ) { for ( ProcessSummary sum : processSummaries ) { if ( dropDowns.get( sum.getDeploymentId() ) == null ) { dropDowns.put( sum.getDeploymentId(), new ArrayList<String>() ); } dropDowns.get( sum.getDeploymentId() ).add( sum.getProcessDefId() ); } processDeploymentIdListBox.clear(); processDeploymentIdListBox.addItem( "--------" ); processDeploymentIdListBox.setSelectedIndex( 0 ); for ( String deploymentId : dropDowns.keySet() ) { processDeploymentIdListBox.addItem( deploymentId ); } } } ).getAll( currentFilter );
private Column initActionsColumn() { // actions (icons) List<HasCell<ProcessSummary, ?>> cells = new LinkedList<HasCell<ProcessSummary, ?>>(); cells.add( new ButtonActionCell<ProcessSummary>( constants.Start(), new Delegate<ProcessSummary>() { @Override public void execute( ProcessSummary process ) { presenter.openGenericForm( process.getProcessDefId(), process.getDeploymentId(), process.getProcessDefName() ); } } ) ); CompositeCell<ProcessSummary> cell = new CompositeCell<ProcessSummary>( cells ); Column<ProcessSummary, ProcessSummary> actionsColumn = new Column<ProcessSummary, ProcessSummary>( cell ) { @Override public ProcessSummary getValue( ProcessSummary object ) { return object; } }; actionsColumn.setDataStoreName( COL_ID_ACTIONS ); return actionsColumn; }
processDefSelected.fire( new ProcessDefSelectionEvent( selectedItem.getProcessDefId(), selectedItem.getDeploymentId() ) ); } else if ( status == PlaceStatus.OPEN && !close ) { processDefSelected.fire( new ProcessDefSelectionEvent( selectedItem.getProcessDefId(), selectedItem.getDeploymentId() ) ); } else if ( status == PlaceStatus.OPEN && close ) { placeManager.closePlace( placeIdentifier );