@Override public EstateSearchWrapper getEstateSearchWrapper() { EstateSearchWrapper wrapper = new EstateSearchWrapper(); wrapper.setStatusSearchTypeId(BaseListBoxUtils.getSelectedValueAsInteger(estateStatusLB)); Integer oId = BaseListBoxUtils.getSelectedValueAsInteger(officesLB); if (oId != null && oId > 0) wrapper.setOfficeId(oId); Integer bId = BaseListBoxUtils.getSelectedValueAsInteger(brokersLB); if (bId != null && bId > 0) wrapper.setBrokerId(bId); return wrapper; }
@Override public void setBrokersData(ArrayList<ListBoxDTO> data) { BaseListBoxUtils.setItemsToLB(brokersLB, data); }
@Override public void setBrokersNA() { BaseListBoxUtils.setItemsNAToLB(brokersLB); }
@Override public void setOfficesNA() { BaseListBoxUtils.setItemsNAToLB(officesLB); }
@Override public void setOfficesData(ArrayList<ListBoxDTO> data) { BaseListBoxUtils.setItemsToLB(officesLB, data); }
@Override public void setEstateSearchWrapper(EstateSearchWrapper wrapper) { if (wrapper.getStatusSearchTypeId() != null) BaseListBoxUtils.setSelectedItemByValue(estateStatusLB, "" + wrapper.getStatusSearchTypeId()); }