5354555657585960616263
private final Driver driver; @Inject CarView(Binder uiBinder, Driver driver) { manufacturer = new ValueListBox<>(new ManufacturerRenderer()); this.driver = driver; initWidget(uiBinder.createAndBindUi(this)); driver.initialize(this);
25262728293031323334
public String render(CarDto carDto) { if (carDto == null) { return ""; } ManufacturerRenderer manufacturerRenderer = new ManufacturerRenderer(); String manufacturer = manufacturerRenderer.render(carDto.getManufacturer()); return manufacturer + " " + carDto.getModel(); }
5152535455565758596061
private final Driver driver; @Inject CarMobileView(Binder uiBinder, Driver driver) { manufacturer = new ValueListBox<>(new ManufacturerRenderer()); this.driver = driver; initWidget(uiBinder.createAndBindUi(this)); driver.initialize(this);