@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); }
@Override public void setSheetName(int index, String name) { final String oldsheetname = getSheetName(index); super.setSheetName(index, name); if (_refBook != null) { _refBook.setSheetName(oldsheetname, name); } }
// --Workbook--// @Override public void removeSheetAt(int index) { if (_refBook != null) { final String sheetname = getSheetName(index); _refBook.removeRefSheet(sheetname); } super.removeSheetAt(index); }