Example #1
0
  /**
   * DOCUMENT ME!
   *
   * @param evt DOCUMENT ME!
   */
  private void chkSperreActionPerformed(
      final java.awt.event.ActionEvent evt) { // GEN-FIRST:event_chkSperreActionPerformed
    mainApp.refreshLeftTitleBarColor();

    final boolean sperre = chkSperre.isSelected();
    if (sperre) {
      final String answer =
          JOptionPane.showInputDialog(
              mainApp.getRootPane(),
              "Bitte eine Bemerkung zur Sperre angeben.",
              txtSperreBemerkung.getText());
      if (answer == null) {
        chkSperre.setSelected(false);
      }
      txtSperreBemerkung.setText(answer);
    } else {
      txtSperreBemerkung.setText(null);
    }
  } // GEN-LAST:event_chkSperreActionPerformed
Example #2
0
  @Override
  public void setCidsBean(final CidsBean cidsBean) {
    if (cidsBean == null) {
      txtErfassungsdatum.setText("");
      txtKassenzeichen.setText("");
      txtBemerkung.setText("");
      txtSperreBemerkung.setText("");
      chkSperre.setSelected(false);
    }

    aggVal.clear();
    aggVal.add(bindingValidator);

    bindingGroup.unbind();
    kassenzeichenBean = cidsBean;
    bindingGroup.bind();

    attachBeanValidators();

    aggVal.add(getValidatorKassenzeichenNummer(kassenzeichenBean));
  }
Example #3
0
 @Override
 public void historyChanged() {
   if ((historyModel != null) && (historyModel.getCurrentElement() != null)) {
     if (LOG.isDebugEnabled()) {
       LOG.debug("historyChanged:" + historyModel.getCurrentElement().toString());
     }
     if ((historyModel.getCurrentElement() != null)
         && (!(historyModel.getCurrentElement().equals(txtSearch.getText())))) {
       txtSearch.setText(historyModel.getCurrentElement().toString());
       gotoKassenzeichen(txtSearch.getText(), false);
     }
   }
 }