public void setValue(Object[] value) { checkWritable(); try { if (hasCollectionFragment()) { ((CollectionFragment) fragment).set(type.normalize(value)); } else { ((SimpleFragment) fragment).put(key, type.normalize(value)); } } catch (IllegalArgumentException e) { throw new IllegalArgumentException("item of list property '" + name + "': " + e.getMessage()); } // mark fragment dirty! }
public void onBookListChanged() { mBarTabManager.switchTab(tab_collection); CollectionFragment frag = (CollectionFragment) tab_collection.getFragment(); if (frag != null) frag.refreshBookList(); }
@Override public void confirmDelete(int id) { CollectionFragment frag = (CollectionFragment) tab_collection.getFragment(); if (frag != null) frag.deleteBook(id); }