private void refreshItemListAgregator() {
agregItems = Agregator.getItems();
//Синхронизация итемов
for (int i = 0; i < agregItems.size(); i++) {
AgregatorItem agregatorItem = agregItems.get(i);
boolean founded = false;
for (int j = 0; j < modelAgreg.getSize(); j++) {
AgregatorItem agregatorItem1 = (AgregatorItem) modelAgreg.getElementAt(j);
if (agregatorItem1 == agregatorItem) {
founded = true;
}
}
if (!founded) {
modelAgreg.addElement(agregatorItem);
}
}
for (int i = modelAgreg.getSize() - 1; i >= 0; i--) {
AgregatorItem agregatorItem1 = (AgregatorItem) modelAgreg.get(i);
boolean founded = false;
for (int j = 0; j < agregItems.size(); j++) {
AgregatorItem agregatorItem = agregItems.get(j);
if (agregatorItem == agregatorItem1) {
founded = true;
}
}
if (!founded) {