121122123124125126127128129130131
if (categories == null) { categories = new ArrayListModel(); this.categories = categories; } categories.clear(); categories.addAll(Arrays.asList(cats)); // Select the category setCategory(cat);
146147148149150151152153154155156
if (categories == null) { categories = new ArrayListModel(); this.categories[index] = categories; } categories.clear(); categories.addAll(Arrays.asList(cats)); // Select the category setCategories(index, cat);