/** {@inheritDoc} */ public void setInfo(ControlPanelInfo info) { super.setInfo(info); ListCellRenderer indexCellRenderer = new IndexCellRenderer(addRemove.getAvailableList(), info); addRemove.getAvailableList().setCellRenderer(indexCellRenderer); addRemove.getSelectedList().setCellRenderer(indexCellRenderer); info.addIndexModifiedListener(this); }
/** * Constructor of the task. * * @param info the control panel information. * @param dlg the progress dialog where the task progress will be displayed. * @param tasks the tasks to be canceled. */ public CancelTaskTask(ControlPanelInfo info, ProgressDialog dlg, List<TaskEntry> tasks) { super(info, dlg); backendSet = new HashSet<String>(); for (BackendDescriptor backend : info.getServerDescriptor().getBackends()) { backendSet.add(backend.getBackendID()); } this.tasks = new ArrayList<TaskEntry>(tasks); }
/** {@inheritDoc} */ public void setInfo(ControlPanelInfo info) { super.setInfo(info); treePane.setInfo(info); entryPane.setInfo(info); info.addIndexModifiedListener(this); }