예제 #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;
  }
예제 #2
0
  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);
  }