示例#1
0
  /** Disable the visual components in order to they are not functional in the AL process */
  public void setDisabledComponents() {

    comboBox.setEnabled(false);
    menubar.setEnabled(false);
    slider.setEnabled(false);
    menubar.getMenu(0).setEnabled(false);
  }
示例#2
0
  /** Enable the visual components */
  public void enabledMetrics() {
    comboBox.setEnabled(true);
    menubar.setEnabled(true);
    menubar.getMenu(0).setEnabled(true);

    slider.setValue(1);
    slider.setMaximum(
        (evaluationsCollection.get(0).size() > 1) ? (evaluationsCollection.get(0).size() - 1) : 1);
    slider.setEnabled(true);
  }