Ejemplo n.º 1
0
 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!
 }
Ejemplo n.º 2
0
 public void onBookListChanged() {
   mBarTabManager.switchTab(tab_collection);
   CollectionFragment frag = (CollectionFragment) tab_collection.getFragment();
   if (frag != null) frag.refreshBookList();
 }
Ejemplo n.º 3
0
 @Override
 public void confirmDelete(int id) {
   CollectionFragment frag = (CollectionFragment) tab_collection.getFragment();
   if (frag != null) frag.deleteBook(id);
 }