}
// TODO chnagwed to ListPagedWrapper
// +++++++++++++++++++++++ DropDown ListBox ++++++++++++++++++++++ //
// set listModel and itemRenderer for the Branch dropdown listbox
kunBranche.setModel(new ListModelList(getBrancheService().getAllBranches()));
kunBranche.setItemRenderer(new CustomerBrancheListModelItemRenderer());
// +++++++++++++++++++++++ DropDown ListBox ++++++++++++++++++++++ //
// set listModel and itemRenderer for the search operator type listboxes
sortOperator_kunNr.setModel(new ListModelList(new SearchOperators().getAllOperators(), true));
sortOperator_kunNr.setItemRenderer(new SearchOperatorListModelItemRenderer());
sortOperator_kunMatchcode.setModel(new ListModelList(new SearchOperators().getAllOperators()));
sortOperator_kunMatchcode.setItemRenderer(new SearchOperatorListModelItemRenderer());
sortOperator_kunName1.setModel(new ListModelList(new SearchOperators().getAllOperators()));
sortOperator_kunName1.setItemRenderer(new SearchOperatorListModelItemRenderer());
sortOperator_kunName2.setModel(new ListModelList(new SearchOperators().getAllOperators()));
sortOperator_kunName2.setItemRenderer(new SearchOperatorListModelItemRenderer());
sortOperator_kunOrt.setModel(new ListModelList(new SearchOperators().getAllOperators()));
sortOperator_kunOrt.setItemRenderer(new SearchOperatorListModelItemRenderer());
sortOperator_kunBranch.setModel(new ListModelList(new SearchOperators().getAllOperators()));
sortOperator_kunBranch.setItemRenderer(new SearchOperatorListModelItemRenderer());
// ++++ Restore the search mask input definition ++++ //
// if exists a searchObject than show formerly inputs of filter values
if (args.containsKey("searchObject")) {
final HibernateSearchObject<Customer> searchObj = (HibernateSearchObject<Customer>) args.get("searchObject");
// get the filters from the searchObject
final List<Filter> ft = searchObj.getFilters();
for (final Filter filter : ft) {
// restore founded properties
if (filter.getProperty().equals("kunNr")) {
restoreOperator(sortOperator_kunNr, filter);
kunNr.setValue(filter.getValue().toString());
} else if (filter.getProperty().equals("kunMatchcode")) {
restoreOperator(sortOperator_kunMatchcode, filter);
kunMatchcode.setValue(filter.getValue().toString());
} else if (filter.getProperty().equals("kunName1")) {
restoreOperator(sortOperator_kunName1, filter);
kunName1.setValue(filter.getValue().toString());
} else if (filter.getProperty().equals("kunName2")) {
restoreOperator(sortOperator_kunName2, filter);
kunName2.setValue(filter.getValue().toString());
} else if (filter.getProperty().equals("kunOrt")) {
restoreOperator(sortOperator_kunOrt, filter);
kunOrt.setValue(filter.getValue().toString());
} else if (filter.getProperty().equals("branche")) {
restoreOperator(sortOperator_kunBranch, filter);
ListModelList lml = (ListModelList) this.kunBranche.getModel();
// get and select the customers branch
Branche branche = (Branche) filter.getValue();
kunBranche.setSelectedIndex(lml.indexOf(branche));
}
}
}
showCustomerSeekDialog();