.addContainerGap())
);
}// </editor-fold>//GEN-END:initComponents
private void changeModelDistrict(final DirectoryLpuItem lpu) throws ClipsException {
DirectoryDistrict dirDistrict = DirectoryLocator.getDirectory(DirectoryDistrict.class);
ROList<DirectoryDistrictItem> filteredItems = dirDistrict.getFilteredItems(lpu);
ROList<DirectoryDistrictItem> items = dirDistrict.getFilteredItems(lpu);
if (!items.contains(clientLocal.getDistrict())) {
clientLocal.setDistrict(dirDistrict.getNullItem());
}
DelegateComboboxModel model = new DelegateComboboxModel<ClientLocal>(cbDistrict, clientLocal, true) {
@Override
public Object getElementAtImp(int index) throws ClipsException {
System.out.println("getElementAtImp");
DirectoryDistrict dirDistrict = DirectoryLocator.getDirectory(DirectoryDistrict.class);
return dirDistrict.getFilteredItems(lpu).get(index);
}
@Override
public int getSizeImp() throws ClipsException {
System.out.println("getSizeImp");
DirectoryDistrict dirDistrict = DirectoryLocator.getDirectory(DirectoryDistrict.class);
return dirDistrict.getFilteredItems(lpu).size();
}
@Override
public Object getSelectedItemImp() throws ClipsException {
System.out.println("getSelectedItemImp");
DirectoryDistrict dirDistrict = DirectoryLocator.getDirectory(DirectoryDistrict.class);
ROList<DirectoryDistrictItem> items = dirDistrict.getFilteredItems(lpu);
return getObject().getDistrict();
}
@Override
public void setSelectedItemImp(Object anItem) throws ClipsException {