public class DateTime extends jxl.write.biff.DateRecord implements WritableCell, DateCell
限定符和类型 | 字段和说明 |
---|---|
static jxl.write.biff.DateRecord.GMTDate |
GMT
Instance variable for dummy variable overload
|
构造器和说明 |
---|
DateTime(DateCell dc)
A constructor called by the worksheet when creating a writable version
of a spreadsheet that has been read in
|
DateTime(int c,
int r,
java.util.Date d)
Constructor.
|
DateTime(int c,
int r,
java.util.Date d,
CellFormat st)
Constructor which takes the format for this cell
|
DateTime(int c,
int r,
java.util.Date d,
CellFormat st,
boolean tim)
Constructor which takes the format for the cell and an indicator
as to whether this cell is a full date time or purely just a time
eg. if the spreadsheet is to contain the world record for 100m, then the
value would be 9.83s, which would be indicated as just a time
|
DateTime(int c,
int r,
java.util.Date d,
CellFormat st,
jxl.write.biff.DateRecord.GMTDate a)
Constructor, which adjusts the specified date to take timezone
considerations into account
|
DateTime(int c,
int r,
java.util.Date d,
jxl.write.biff.DateRecord.GMTDate a)
Constructor, which adjusts the specified date to take timezone
considerations into account.
|
限定符和类型 | 方法和说明 |
---|---|
WritableCell |
copyTo(int col,
int row)
Implementation of the deep copy function
|
void |
setDate(java.util.Date d)
Sets the date for this cell
|
void |
setDate(java.util.Date d,
jxl.write.biff.DateRecord.GMTDate a)
Sets the date for this cell, performing the necessary timezone adjustments
|
addCellFeatures, getCellFeatures, getCellFormat, getColumn, getRow, getSheet, getWritableCellFeatures, isHidden, removeCellFeatures, removeComment, removeDataValidation, setCellFeatures, setCellFormat
getWritableCellFeatures, setCellFeatures, setCellFormat
getDate, getDateFormat, isTime
getCellFeatures, getCellFormat, getColumn, getContents, getRow, getType, isHidden
public static final jxl.write.biff.DateRecord.GMTDate GMT
public DateTime(int c, int r, java.util.Date d)
c
- the columnr
- the rowd
- the datepublic DateTime(int c, int r, java.util.Date d, jxl.write.biff.DateRecord.GMTDate a)
c
- the columnr
- the rowd
- the datea
- dummy overloadpublic DateTime(int c, int r, java.util.Date d, CellFormat st)
c
- the columnr
- the rowst
- the formatd
- the datepublic DateTime(int c, int r, java.util.Date d, CellFormat st, jxl.write.biff.DateRecord.GMTDate a)
c
- the columnr
- the rowd
- the datest
- the cell formata
- the cummy overloadpublic DateTime(int c, int r, java.util.Date d, CellFormat st, boolean tim)
c
- the columnr
- the rowst
- the styletim
- flag indicating that this represents a timed
- the datepublic DateTime(DateCell dc)
dc
- the date to copypublic void setDate(java.util.Date d)
setDate
在类中 jxl.write.biff.DateRecord
d
- the datepublic void setDate(java.util.Date d, jxl.write.biff.DateRecord.GMTDate a)
setDate
在类中 jxl.write.biff.DateRecord
d
- the datea
- the dummy overloadpublic WritableCell copyTo(int col, int row)
copyTo
在接口中 WritableCell
col
- the column which the new cell will occupyrow
- the row which the new cell will occupy