/** * 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)); }
public void setText(String text) { editField.setText(text); }