1 19 20 package jxl.write; 21 22 import java.util.Date ; 23 24 import jxl.DateCell; 25 import jxl.write.biff.DateRecord; 26 import jxl.format.CellFormat; 27 28 41 public class DateTime extends DateRecord implements WritableCell, DateCell 42 { 43 46 public static final GMTDate GMT = new GMTDate(); 47 48 55 public DateTime(int c, int r, Date d) 56 { 57 super(c, r, d); 58 } 59 60 69 public DateTime(int c, int r, Date d, GMTDate a) 70 { 71 super(c, r, d, a); 72 } 73 74 82 public DateTime(int c, int r, Date d, CellFormat st) 83 { 84 super(c, r, d, st); 85 } 86 87 97 public DateTime(int c, int r, Date d, CellFormat st, GMTDate a) 98 { 99 super(c, r, d, st, a); 100 } 101 102 114 public DateTime(int c, int r, Date d, CellFormat st, boolean tim) 115 { 116 super(c, r, d, st, tim); 117 } 118 119 125 public DateTime(DateCell dc) 126 { 127 super(dc); 128 } 129 130 137 protected DateTime(int col, int row, DateTime dt) 138 { 139 super(col, row, dt); 140 } 141 142 143 148 public void setDate(Date d) 149 { 150 super.setDate(d); 151 } 152 153 159 public void setDate(Date d, GMTDate a) 160 { 161 super.setDate(d, a); 162 } 163 164 171 public WritableCell copyTo(int col, int row) 172 { 173 return new DateTime(col, row, this); 174 } 175 } 176 177 178 | Popular Tags |