Example #1
0
 @Override
 public void notifyChange(String[] variables) {
   final RefBook refBook = getOrCreateRefBook();
   final Set<Ref> all = new HashSet<Ref>();
   final Set<Ref> last = new HashSet<Ref>();
   for (String name : variables) {
     final Set<Ref>[] refs = refBook.getBothDependents(name);
     if (refs != null) {
       last.addAll(refs[0]);
       all.addAll(refs[1]);
     }
   }
   BookHelper.reevaluateAndNotify(this, last, all);
 }
Example #2
0
 @Override
 public void setSheetName(int index, String name) {
   final String oldsheetname = getSheetName(index);
   super.setSheetName(index, name);
   if (_refBook != null) {
     _refBook.setSheetName(oldsheetname, name);
   }
 }
Example #3
0
 // --Workbook--//
 @Override
 public void removeSheetAt(int index) {
   if (_refBook != null) {
     final String sheetname = getSheetName(index);
     _refBook.removeRefSheet(sheetname);
   }
   super.removeSheetAt(index);
 }