jxl.read.biff
Class LabelRecord

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.read.biff.CellValue
              |
              +--jxl.read.biff.LabelRecord
All Implemented Interfaces:
Cell, LabelCell

class LabelRecord
extends CellValue
implements LabelCell

A label which is stored in the cell


Inner Class Summary
private static class LabelRecord.Biff7
          Dummy indicators for overloading the constructor
 
Field Summary
static LabelRecord.Biff7 biff7
           
private  int length
          The length of the label in characters
private  java.lang.String string
          The label
 
Fields inherited from class jxl.read.biff.CellValue
column, format, formattingRecords, initialized, row, sheet, xfIndex
 
Fields inherited from class jxl.biff.RecordData
code, record
 
Constructor Summary
LabelRecord(Record t, FormattingRecords fr, SheetImpl si, WorkbookSettings ws)
          Constructs this object from the raw data
LabelRecord(Record t, FormattingRecords fr, SheetImpl si, WorkbookSettings ws, LabelRecord.Biff7 dummy)
          Constructs this object from the raw data
 
Method Summary
 java.lang.String getContents()
          Gets the cell contents as a string
 java.lang.String getString()
          Gets the label
 CellType getType()
          Accessor for the cell type
 
Methods inherited from class jxl.read.biff.CellValue
getCellFormat, getColumn, getRow, getSheet, getXFIndex, isHidden
 
Methods inherited from class jxl.biff.RecordData
getCode, getRecord
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface jxl.Cell
getCellFormat, getColumn, getRow, isHidden
 

Field Detail

length

private int length
The length of the label in characters

string

private java.lang.String string
The label

biff7

public static LabelRecord.Biff7 biff7
Constructor Detail

LabelRecord

public LabelRecord(Record t,
                   FormattingRecords fr,
                   SheetImpl si,
                   WorkbookSettings ws)
Constructs this object from the raw data
Parameters:
t - the raw data
fr - the formatting records
si - the sheet

LabelRecord

public LabelRecord(Record t,
                   FormattingRecords fr,
                   SheetImpl si,
                   WorkbookSettings ws,
                   LabelRecord.Biff7 dummy)
Constructs this object from the raw data
Parameters:
t - the raw data
fr - the formatting records
si - the sheet
dummy - dummy overload to indicate a biff 7 workbook
Method Detail

getString

public java.lang.String getString()
Gets the label
Specified by:
getString in interface LabelCell
Returns:
the label

getContents

public java.lang.String getContents()
Gets the cell contents as a string
Specified by:
getContents in interface Cell
Returns:
the label

getType

public CellType getType()
Accessor for the cell type
Specified by:
getType in interface Cell
Returns:
the cell type