Exemple #1
0
  private Address getAddressFromForm() {
    Address address = new Address();

    address.setCity(CreareClp.oras);
    address.setStreet(CreareClp.strada);
    address.setSector(UtilsGeneral.getNumeJudet(CreareClp.codJudet));

    return address;
  }
  private void setAdresaLivrare(Address address) {

    textOras.setText(address.getCity());

    String strStrada = address.getStreet().trim();

    if (address.getNumber() != null && address.getNumber().length() > 0)
      strStrada += " nr. " + address.getNumber();

    textStrada.setText(strStrada);
  }