|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.read.biff.DateRecord
A date which is stored in the cell
Field Summary | |
private CellFormat |
cellFormat
The raw cell format |
private int |
column
The column number of this cell record |
private java.util.Date |
date
The date represented within this cell |
private static java.text.SimpleDateFormat |
dateFormat
|
private java.text.DateFormat |
format
The format to use when displaying this cell's contents as a string |
private FormattingRecords |
formattingRecords
A handle to the formatting records |
private static java.util.TimeZone |
gmtZone
|
private boolean |
initialized
A flag to indicate whether this objects formatting things have been initialized |
private static long |
msInADay
|
private static int |
nonLeapDay
|
private int |
row
The row number of this cell record |
private SheetImpl |
sheet
A handle to the sheet |
private boolean |
time
Indicates whether this is a full date, or merely a time |
private static java.text.SimpleDateFormat |
timeFormat
|
private static int |
utcOffsetDays
|
private static int |
utcOffsetDays1904
|
private int |
xfIndex
The index to the XF Record |
Constructor Summary | |
DateRecord(NumberCell num,
int xfi,
FormattingRecords fr,
boolean nf,
SheetImpl si)
Constructs this object from the raw data |
Method Summary | |
CellFormat |
getCellFormat()
Gets the CellFormat object for this cell. |
int |
getColumn()
Interface method which returns the column number of this cell |
java.lang.String |
getContents()
Gets the cell contents as a string. |
java.util.Date |
getDate()
Gets the date |
java.text.DateFormat |
getDateFormat()
Gets the DateFormat used to format the cell. |
int |
getRow()
Interface method which returns the row number of this cell |
protected SheetImpl |
getSheet()
Accessor for the sheet |
CellType |
getType()
Accessor for the cell type |
boolean |
isHidden()
Determines whether or not this cell has been hidden |
boolean |
isTime()
Indicates whether the date value contained in this cell refers to a date, or merely a time |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Date date
private int row
private int column
private boolean time
private java.text.DateFormat format
private CellFormat cellFormat
private int xfIndex
private FormattingRecords formattingRecords
private SheetImpl sheet
private boolean initialized
private static final java.text.SimpleDateFormat dateFormat
private static final java.text.SimpleDateFormat timeFormat
private static final int nonLeapDay
private static final java.util.TimeZone gmtZone
private static final int utcOffsetDays
private static final int utcOffsetDays1904
private static final long msInADay
Constructor Detail |
public DateRecord(NumberCell num, int xfi, FormattingRecords fr, boolean nf, SheetImpl si)
num
- the numerical representation of thisxfi
- the java equivalent of the excel date formatfr
- the formatting recordsnf
- flag indicating whether we are using the 1904 date systemsi
- the sheetMethod Detail |
public final int getRow()
getRow
in interface Cell
public final int getColumn()
getColumn
in interface Cell
public java.util.Date getDate()
getDate
in interface DateCell
public java.lang.String getContents()
getContents
in interface Cell
public CellType getType()
getType
in interface Cell
public boolean isTime()
isTime
in interface DateCell
public java.text.DateFormat getDateFormat()
getDateFormat
in interface DateCell
public CellFormat getCellFormat()
getCellFormat
in interface Cell
public boolean isHidden()
isHidden
in interface Cell
protected final SheetImpl getSheet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |