/** {@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);
 }
Exemplo n.º 2
0
 /**
  * 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);
 }
Exemplo n.º 3
0
 /** {@inheritDoc} */
 public void setInfo(ControlPanelInfo info) {
   super.setInfo(info);
   treePane.setInfo(info);
   entryPane.setInfo(info);
   info.addIndexModifiedListener(this);
 }