void (AbstractProperty.AbstractPropertyContainer container) { ListModel model = myList.getModel(); List<Item> list = new ArrayList<>(); for (int i = 0; i < model.getSize(); i++) { list.add((Item)model.getElementAt(i)); } myProperty.set(container, list); }