| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.biff.WritableRecordData
              |
              +--jxl.write.biff.CellValue
                    |
                    +--jxl.write.biff.DateRecord
A date stored in the database
| Inner Class Summary | |
protected static class | 
DateRecord.GMTDate
Class definition for a dummy variable  | 
| Field Summary | |
private  java.util.Date | 
date
The java representation of the date  | 
(package private) static WritableCellFormat | 
defaultDateFormat
This is package protected so that the worksheet might detect whether or not to override it with the column cell format  | 
private static long | 
msInADay
 | 
private static int | 
nonLeapDay
 | 
private  boolean | 
time
Indicates whether this is a full date, or just a time only  | 
private static int | 
utcOffsetDays
 | 
private  double | 
value
The excel value of the date  | 
| Fields inherited from class jxl.write.biff.CellValue | 
column, format, formattingRecords, referenced, row, sheet | 
| Fields inherited from class jxl.biff.RecordData | 
code, record | 
| Constructor Summary | |
protected  | 
DateRecord(DateCell dc)
Constructor invoked when copying a readable spreadsheet  | 
protected  | 
DateRecord(int c,
           int r,
           java.util.Date d)
Constructor invoked by the user API  | 
protected  | 
DateRecord(int c,
           int r,
           java.util.Date d,
           CellFormat st)
Constructor invoked from the user API  | 
protected  | 
DateRecord(int c,
           int r,
           java.util.Date d,
           CellFormat st,
           boolean tim)
Constructor invoked from the API  | 
protected  | 
DateRecord(int c,
           int r,
           java.util.Date d,
           CellFormat st,
           DateRecord.GMTDate a)
Constructor invoked from the user API  | 
protected  | 
DateRecord(int c,
           int r,
           java.util.Date d,
           DateRecord.GMTDate a)
Constructor invoked by the user API  | 
| Method Summary | |
private  void | 
calculateValue(boolean adjust)
Calculates the 1900 based numerical value based upon the utc value held in the date object  | 
 java.lang.String | 
getContents()
Quick and dirty function to return the contents of this cell as a string.  | 
 byte[] | 
getData()
Gets the binary data for writing  | 
 java.util.Date | 
getDate()
Gets the date contained in this cell  | 
 java.text.DateFormat | 
getDateFormat()
Gets the DateFormat used to format the cell.  | 
 CellType | 
getType()
Returns the content type of this cell  | 
 boolean | 
isTime()
Indicates whether the date value contained in this cell refers to a date, or merely a time.  | 
protected  void | 
setDate(java.util.Date d)
Sets the date in this cell  | 
protected  void | 
setDate(java.util.Date d,
        DateRecord.GMTDate a)
Sets the date in this cell, taking the timezone into account  | 
| Methods inherited from class jxl.write.biff.CellValue | 
decrementColumn, decrementRow, getCellFormat, getColumn, getRow, getXFIndex, incrementColumn, incrementRow, isHidden, isReferenced, setCellDetails, setCellFormat | 
| Methods inherited from class jxl.biff.WritableRecordData | 
getBytes | 
| Methods inherited from class jxl.biff.RecordData | 
getCode, getRecord | 
| Methods inherited from class java.lang.Object | 
 | 
| Field Detail | 
private double value
private java.util.Date date
private boolean time
private static final int utcOffsetDays
private static final long msInADay
static final WritableCellFormat defaultDateFormat
private static final int nonLeapDay
| Constructor Detail | 
protected DateRecord(int c,
                     int r,
                     java.util.Date d)
c - the columnr - the rowd - the date
protected DateRecord(int c,
                     int r,
                     java.util.Date d,
                     DateRecord.GMTDate a)
c - the columnr - the rowd - the datea - adjust timezone
protected DateRecord(int c,
                     int r,
                     java.util.Date d,
                     CellFormat st)
c - the columnr - the rowst - the format for the dated - the date
protected DateRecord(int c,
                     int r,
                     java.util.Date d,
                     CellFormat st,
                     DateRecord.GMTDate a)
c - the columnr - the rowst - the format for the dated - the datea - adjust for the timezone
protected DateRecord(int c,
                     int r,
                     java.util.Date d,
                     CellFormat st,
                     boolean tim)
c - the columnr - the rowst - the date formattim - time indicatord - the dateprotected DateRecord(DateCell dc)
dc - the date to copy| Method Detail | 
private void calculateValue(boolean adjust)
adjust - TRUE if we want to incorporate timezone information
 into the raw UTC date eg. when copying from a spreadsheetpublic CellType getType()
public byte[] getData()
getData in class CellValuepublic java.lang.String getContents()
protected void setDate(java.util.Date d)
d - the date
protected void setDate(java.util.Date d,
                       DateRecord.GMTDate a)
d - the datea - adjust for timezonepublic java.util.Date getDate()
public boolean isTime()
public java.text.DateFormat getDateFormat()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||