@Override
 protected void entityChanged() {
   Urgency f = (Urgency) curEntity.getEntity();
   oldName = String.valueOf(f.getTerm());
   urg.setText(String.valueOf(f.getTerm()));
   factor.setText(String.valueOf(f.getFactor()));
 }
 @Override
 protected Transmittable createEntity() throws ValidationException {
   try {
     return new Urgency(Integer.valueOf(urg.getText()), Float.valueOf(factor.getText()));
   } catch (NumberFormatException ex) {
     throw new ValidationException("Все поля должны быть числами");
   }
 }
 @Override
 protected void setDefault() {
   oldName = null;
   urg.setText("1");
   factor.setText("0");
 }