/** @param pPerm */
 public void setRecord(Record pPerm) {
   Perm = pPerm;
   Attribute Attr;
   if (ModeGrp) Attr = Perm.getAttr(PDACL.fGROUPNAME);
   else Attr = Perm.getAttr(PDACL.fUSERNAME);
   UserNameLabel.setText(MainWin.DrvTT(Attr.getUserName()));
   if (Attr.getValue() != null) UserComboBox.setSelectedItem((String) Attr.getValue());
   else UserComboBox.setSelectedItem("");
   UserComboBox.setToolTipText(MainWin.DrvTT(Attr.getDescription()));
   Attr = Perm.getAttr(PDACL.fPERMISION);
   PermisionLabel.setText(MainWin.DrvTT(Attr.getUserName()));
   if (Attr.getValue() != null) {
     int Level = (Integer) Attr.getValue();
     if (Level == PDACL.pCATALOG) PermisionComboBox.setSelectedItem("CATALOG");
     else if (Level == PDACL.pVERSION) PermisionComboBox.setSelectedItem("VERSION");
     else if (Level == PDACL.pUPDATE) PermisionComboBox.setSelectedItem("UPDATE");
     else if (Level == PDACL.pDELETE) PermisionComboBox.setSelectedItem("DELETE");
     else PermisionComboBox.setSelectedItem("READ");
   } else PermisionComboBox.setSelectedItem("READ");
   PermisionComboBox.setToolTipText(MainWin.DrvTT(Attr.getDescription()));
 }
 private void ButtonAceptActionPerformed(
     java.awt.event.ActionEvent evt) // GEN-FIRST:event_ButtonAceptActionPerformed
     { // GEN-HEADEREND:event_ButtonAceptActionPerformed
   try {
     Attribute Attr;
     if (ModeGrp) {
       Attr = Perm.getAttr(PDACL.fGROUPNAME);
     } else {
       Attr = Perm.getAttr(PDACL.fUSERNAME);
     }
     Attr.setValue(UserComboBox.getSelectedItem());
     Attr = Perm.getAttr(PDACL.fPERMISION);
     Attr.setValue(PermisionComboBox.getSelectedIndex() + 1);
     Cancel = false;
     this.dispose();
   } catch (PDException ex) {
     MainWin.Message(MainWin.DrvTT(ex.getLocalizedMessage()));
   }
 } // GEN-LAST:event_ButtonAceptActionPerformed