/** * Gets the name at the specified index * * @param index the index into the name table * @return the name of the cell * @exception NameRangeException */ public String getName(int index) throws NameRangeException { // Assert.verify(index >= 0 && index < nameTable.size()); if (index < 0 || index >= nameTable.size()) { throw new NameRangeException(); } return ((NameRecord) nameTable.get(index)).getName(); }
/** * Gets the name at the specified index * * @param index the index into the name table * @return the name of the cell * @exception NameRangeException */ public String getName(int index) throws NameRangeException { // Assert.verify(index >= 0 && index < nameTable.size()); if (index < 0 || index >= nameTable.size()) { throw new NameRangeException(); } return ((NameRecord) nameTable.get(index)).getName(); }
/** * Constructor - used when copying sheets * * @param index the index into the name table */ public NameRecord(jxl.read.biff.NameRecord sr, int ind) { super(Type.NAME); data = sr.getData(); name = sr.getName(); sheetRef = sr.getSheetRef(); index = ind; modified = false; // Copy the ranges jxl.read.biff.NameRecord.NameRange[] r = sr.getRanges(); ranges = new NameRange[r.length]; for (int i = 0 ; i < ranges.length ; i++) { ranges[i] = new NameRange(r[i]); } }
/** * Constructor - used when copying sheets * * @param index the index into the name table */ public NameRecord(jxl.read.biff.NameRecord sr, int ind) { super(Type.NAME); data = sr.getData(); name = sr.getName(); sheetRef = sr.getSheetRef(); index = ind; modified = false; // Copy the ranges jxl.read.biff.NameRecord.NameRange[] r = sr.getRanges(); ranges = new NameRange[r.length]; for (int i = 0 ; i < ranges.length ; i++) { ranges[i] = new NameRange(r[i]); } }
String name = nameRecords[i].getName(); if (Arrays.binarySearch(names, name) < 0)
String name = nameRecords[i].getName(); if (Arrays.binarySearch(names, name) < 0)
namedRecords.put(nr.getName(), nr);
namedRecords.put(nr.getName(), nr);