/** storeUIFieldsToCitation - transfer the UI field values to the citation record */
  private void storeUIFieldsToCitation() {
    String accidentStatus = field_accident.getChecked() ? "true" : "false";
    String radarStatus = field_radar.getChecked() ? "true" : "false";
    String jailStatus = field_jail_booking.getChecked() ? "true" : "false";
    String pacedStatus = field_paced.getChecked() ? "true" : "false";
    String schoolStatus = field_school_zone.getChecked() ? "true" : "false";
    String alcoholStatus = field_alcohol.getChecked() ? "true" : "false";

    c.Violation.setElement(CViolation.ACCIDENT, accidentStatus);
    c.Violation.setElement(CViolation.RADAR, radarStatus);
    c.Violation.setElement(CViolation.JAIL_BOOKING, jailStatus);
    c.Violation.setElement(CViolation.PACED, pacedStatus);
    c.Violation.setElement(CViolation.SCHOOL_ZONE, schoolStatus);
    c.Violation.setElement(CViolation.ALCOHOL, alcoholStatus);

    c.Violation.setElement(CViolation.VBFI, field_vbfi.getText());
    c.Violation.setElement(CViolation.SPEED_LIMIT, field_speed_limit.toString());
    c.Violation.setElement(CViolation.ALLEGED_SPEED, field_alleged_speed.getText());
  }
  /**
   * restoreUIFieldsFromCitation - populate the UI fields from those currently stored in the
   * citation record
   */
  private void restoreUIFieldsFromCitation() {
    boolean accidentStatus = c.Violation.getElement(CViolation.ACCIDENT).equals("true");
    boolean radarStatus = c.Violation.getElement(CViolation.RADAR).equals("true");
    boolean jailStatus = c.Violation.getElement(CViolation.JAIL_BOOKING).equals("true");
    boolean pacedStatus = c.Violation.getElement(CViolation.PACED).equals("true");
    boolean alcoholStatus = c.Violation.getElement(CViolation.ALCOHOL).equals("true");

    field_accident.setChecked(accidentStatus);
    field_radar.setChecked(radarStatus);
    field_jail_booking.setChecked(jailStatus);
    field_paced.setChecked(pacedStatus);
    field_alcohol.setChecked(alcoholStatus);

    field_vbfi.setText(c.Violation.getElement(CViolation.VBFI));
    field_speed_limit.setSelectedIndex(c.Violation.getElement(CViolation.SPEED_LIMIT));
    field_alleged_speed.setText(c.Violation.getElement(CViolation.ALLEGED_SPEED));
  }