@Override
 protected JComponent getDefaultFocus() {
   if (jItems.isEnabled()) {
     return jItems;
   } else {
     return jCountMinimum;
   }
 }
示例#2
0
 @Override
 void validateFields() throws SvmValidationException {
   if (comboBoxAnrede != null && comboBoxAnrede.isEnabled()) {
     LOGGER.trace("Validate field Anrede");
     setModelAnrede();
   }
   if (txtNachname.isEnabled()) {
     LOGGER.trace("Validate field Nachname");
     setModelNachname(true);
   }
   if (txtVorname.isEnabled()) {
     LOGGER.trace("Validate field Vorname");
     setModelVorname(true);
   }
   if (txtStrasseHausnummer.isEnabled()) {
     LOGGER.trace("Validate field StrasseHausnummer");
     setModelStrasseHausnummer(true);
   }
   if (txtPlz.isEnabled()) {
     LOGGER.trace("Validate field Plz");
     setModelPlz(true);
   }
   if (txtOrt.isEnabled()) {
     LOGGER.trace("Validate field Ort");
     setModelOrt(true);
   }
   if (txtFestnetz.isEnabled()) {
     LOGGER.trace("Validate field Festnetz");
     setModelFestnetz(true);
   }
   if (txtNatel.isEnabled()) {
     LOGGER.trace("Validate field Natel");
     setModelNatel(true);
   }
   if (txtEmail.isEnabled()) {
     LOGGER.trace("Validate field Email");
     setModelEmail(true);
   }
   if (txtGeburtsdatum != null && txtGeburtsdatum.isEnabled()) {
     LOGGER.trace("Validate field Geburtsdatum");
     setModelGeburtsdatum(true);
   }
 }