/**
   * This method initializes cIdentificationText1
   *
   * @return org.compiere.swing.CTextField
   */
  private CTextField getCIdentificationText() {
    if (cIdentificationText == null) {
      cIdentificationText = new CTextField();
      cIdentificationText.setText(getBPartner().getCustomerIdentification());
      cIdentificationText.setCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR));
      cIdentificationText.setMandatory(isMandatoryData());
      cIdentificationText.addKeyListener(
          new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent e) {
              char keyChar = e.getKeyChar();
              String idText = cIdentificationText.getText();

              if (idText != null && idText.length() >= CUSTOMER_ID_MAX_LENGTH) {
                e.consume();
              }

              if (!Character.isDigit(keyChar)) {
                e.consume();
              }
            }
          });
      FocusUtils.addFocusHighlight(cIdentificationText);
    }
    return cIdentificationText;
  }
 /**
  * This method initializes cAddressText1
  *
  * @return org.compiere.swing.CTextField
  */
 private CTextField getCAddressText() {
   if (cAddressText == null) {
     cAddressText = new CTextField();
     cAddressText.setText(getBPartner().getCustomerAddress());
     cAddressText.setCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR));
     cAddressText.setMandatory(isMandatoryData());
     FocusUtils.addFocusHighlight(cAddressText);
   }
   return cAddressText;
 }
 /**
  * This method initializes cCancelButton
  *
  * @return org.compiere.swing.CButton
  */
 private CButton getCCancelButton() {
   if (cCancelButton == null) {
     cCancelButton = new CButton();
     cCancelButton.setIcon(getPoS().getImageIcon("Cancel16.gif"));
     cCancelButton.setPreferredSize(new java.awt.Dimension(BUTTON_WIDTH, 26));
     cCancelButton.addActionListener(
         new java.awt.event.ActionListener() {
           public void actionPerformed(java.awt.event.ActionEvent e) {
             commandCancel();
           }
         });
     KeyUtils.setCancelButtonKeys(cCancelButton);
     KeyUtils.setButtonText(cCancelButton, MSG_CANCEL);
     FocusUtils.addFocusHighlight(cCancelButton);
   }
   return cCancelButton;
 }
 /**
  * This method initializes cClearButton
  *
  * @return org.compiere.swing.CButton
  */
 private CButton getCClearButton() {
   if (cClearButton == null) {
     cClearButton = new CButton();
     cClearButton.setIcon(getPoS().getImageIcon("Reset16.gif"));
     cClearButton.addActionListener(
         new java.awt.event.ActionListener() {
           public void actionPerformed(java.awt.event.ActionEvent e) {
             commandClear();
           }
         });
     cClearButton.setPreferredSize(new java.awt.Dimension(BUTTON_WIDTH, 26));
     KeyUtils.setButtonKey(cClearButton, true, KeyEvent.VK_F5);
     KeyUtils.setDefaultKey(cClearButton);
     KeyUtils.setButtonText(cClearButton, MSG_CLEAR);
     FocusUtils.addFocusHighlight(cClearButton);
   }
   return cClearButton;
 }