1 19 20 package jxl.read.biff; 21 22 import jxl.LabelCell; 23 import jxl.CellType; 24 import jxl.biff.IntegerHelper; 25 import jxl.biff.FormattingRecords; 26 27 30 class LabelSSTRecord extends CellValue implements LabelCell 31 { 32 35 private int index; 36 39 private String string; 40 41 50 public LabelSSTRecord(Record t, SSTRecord stringTable, FormattingRecords fr, 51 SheetImpl si) 52 { 53 super(t, fr, si); 54 byte[] data = getRecord().getData(); 55 index = IntegerHelper.getInt(data[6], data[7], data[8], data[9]); 56 string = stringTable.getString(index); 57 } 58 59 64 public String getString() 65 { 66 return string; 67 } 68 69 74 public String getContents() 75 { 76 return string; 77 } 78 79 84 public CellType getType() 85 { 86 return CellType.LABEL; 87 } 88 } 89 | Popular Tags |