1 19 20 package jxl.write.biff; 21 22 import jxl.biff.Type; 23 import jxl.biff.IntegerHelper; 24 import jxl.biff.WritableRecordData; 25 26 29 class DefaultColumnWidth extends WritableRecordData 30 { 31 34 private int width; 35 38 private byte[] data; 39 40 45 public DefaultColumnWidth(int w) 46 { 47 super(Type.DEFCOLWIDTH); 48 width = w; 49 data = new byte[2]; 50 IntegerHelper.getTwoBytes(width, data, 0); 51 } 52 53 58 protected byte[] getData() 59 { 60 return data; 61 } 62 } 63 | Popular Tags |