first commit
This commit is contained in:
22
hrmsEjb/jxl/write/biff/DefaultColumnWidth.java
Normal file
22
hrmsEjb/jxl/write/biff/DefaultColumnWidth.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package jxl.write.biff;
|
||||
|
||||
import jxl.biff.IntegerHelper;
|
||||
import jxl.biff.Type;
|
||||
import jxl.biff.WritableRecordData;
|
||||
|
||||
class DefaultColumnWidth extends WritableRecordData {
|
||||
private int width;
|
||||
|
||||
private byte[] data;
|
||||
|
||||
public DefaultColumnWidth(int w) {
|
||||
super(Type.DEFCOLWIDTH);
|
||||
this.width = w;
|
||||
this.data = new byte[2];
|
||||
IntegerHelper.getTwoBytes(this.width, this.data, 0);
|
||||
}
|
||||
|
||||
protected byte[] getData() {
|
||||
return this.data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user