コード例 #1
0
  /** Configures the visibility of the fields in edit mode depending on the user privileges */
  private void setFieldEditAccess() {

    /* CentreExamen section widgets visibility */
    if (!AccessManager.canEditExamenMicroscopieCentreExamen())
      centreExamenSection.setVisible(false);

    /* Examen section widgets visibility */
    if (!AccessManager.canEditExamenMicroscopieExamen()) examenSection.setVisible(false);
  }
コード例 #2
0
  /** Configures the visibility of the fields in edit mode depending on the user privileges */
  private void setFieldEditAccess() {

    /* Description section widgets visibility */
    if (!AccessManager.canEditCasIndexDescription()) descriptionSection.setVisible(false);
  }