コード例 #1
0
  private void setAllBoxWith(int width) {

    /* CentreExamen field group */
    CDT.setBoxWidth(width);
    laboratoireReference.setBoxWidth(width);

    /* Examen field group */
    casTb.setBoxWidth(width);
    raisonDepistage.setBoxWidth(width);
    resultat.setBoxWidth(width);
    observations.setBoxWidth(width);
  }
コード例 #2
0
  private void setAllLabelWith(String width) {

    /* CentreExamen field group */
    CDT.setLabelWidth(width);
    laboratoireReference.setLabelWidth(width);

    /* Examen field group */
    casTb.setLabelWidth(width);
    date.setLabelWidth(width);
    raisonDepistage.setLabelWidth(width);
    resultat.setLabelWidth(width);
    observations.setLabelWidth(width);
  }
コード例 #3
0
  /**
   * Sets the edition mode
   *
   * @param isEdited true to enable the edition of the form
   */
  public void setEdited(boolean isEdited) {

    if (isEdited) setFieldEditAccess();
    else setFieldReadAccess();

    /* CentreExamen section widgets */
    CDT.setEdited(isEdited);
    laboratoireReference.setEdited(isEdited);

    /* Examen section widgets */
    casTb.setEdited(isEdited);
    date.setEdited(isEdited);
    raisonDepistage.setEdited(isEdited);
    resultat.setEdited(isEdited);
    observations.setEdited(isEdited);
  }
コード例 #4
0
  /** Sets the properties of the fields */
  private void properties() {

    /* CentreExamen section widgets */
    centreExamenSection.setGroupTitle(NLS.constants().examenMicroscopie_group_centreExamen());
    CDT.setLabel(NLS.constants().examenMicroscopie_field_cDT());
    laboratoireReference.setLabel(NLS.constants().examenMicroscopie_field_laboratoireReference());

    /* Examen section widgets */
    examenSection.setGroupTitle(NLS.constants().examenMicroscopie_group_examen());
    casTb.setLabel(NLS.constants().examenMicroscopie_field_casTb());
    date.setLabel(NLS.constants().examenMicroscopie_field_date());
    raisonDepistage.setLabel(NLS.constants().examenMicroscopie_field_raisonDepistage());
    raisonDepistage.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RAISONDEPISTAGE_DIAGNOSTIC,
        NLS.constants().examenMicroscopie_raisonDepistage_diagnostic_option());
    raisonDepistage.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RAISONDEPISTAGE_SUIVI,
        NLS.constants().examenMicroscopie_raisonDepistage_suivi_option());
    resultat.setLabel(NLS.constants().examenMicroscopie_field_resultat());
    resultat.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RESULTAT_NEGATIF,
        NLS.constants().examenMicroscopie_resultat_negatif_option());
    resultat.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RESULTAT_RARE,
        NLS.constants().examenMicroscopie_resultat_rare_option());
    resultat.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RESULTAT_UNPLUS,
        NLS.constants().examenMicroscopie_resultat_unPlus_option());
    resultat.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RESULTAT_DEUXPLUS,
        NLS.constants().examenMicroscopie_resultat_deuxPlus_option());
    resultat.addItem(
        EpicamEnumConstants.EXAMENMICROSCOPIE_RESULTAT_TROISPLUS,
        NLS.constants().examenMicroscopie_resultat_troisPlus_option());
    observations.setLabel(NLS.constants().examenMicroscopie_field_observations());
  }