private void completePanel() {
    if (criterion != null) {
      jtfCode.setText(criterion.getCode());
      jtfCode.setEditable(false);
      jtfLibelle.setText(criterion.getLibelle());

      jcbSortOrder.setSelectedIndex((criterion.getSortOrder() > 0) ? 0 : 1);

      jcbPlacementCriterion.setSelected(criterion.isPlacement());
      jcbClassementCriterion.setSelected(criterion.isClassement());

      jcbSortOrder.setEnabled(!parent.getWorkConfiguration().isOfficialProfile());
      jcbPlacementCriterion.setEnabled(!parent.getWorkConfiguration().isOfficialProfile());
      jcbClassementCriterion.setEnabled(!parent.getWorkConfiguration().isOfficialProfile());
    }
  }
  /** @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) */
  public void actionPerformed(ActionEvent e) {
    if (e.getSource() == jbValider) {
      if (criterion == null) {
        criterion = new Criterion(jtfCode.getText());

        parent
            .getWorkConfiguration()
            .getCriteriaPopulation()
            .put(criterion, new ArrayList<CriterionElement>());
        parent.getWorkConfiguration().getListCriteria().add(criterion);
      }
      criterion.setSortOrder(
          (jcbSortOrder.getSelectedIndex() == 1) ? Criterion.SORT_DESC : Criterion.SORT_ASC);
      criterion.setLibelle(jtfLibelle.getText());
      criterion.setPlacement(jcbPlacementCriterion.isSelected());
      criterion.setClassement(jcbClassementCriterion.isSelected());

      setVisible(false);
    } else if (e.getSource() == jbAnnuler) {
      setVisible(false);
    }
  }