first commit
This commit is contained in:
22
hrmsEjb/jxl/biff/BuiltInStyle.java
Normal file
22
hrmsEjb/jxl/biff/BuiltInStyle.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package jxl.biff;
|
||||
|
||||
class BuiltInStyle extends WritableRecordData {
|
||||
private int xfIndex;
|
||||
|
||||
private int styleNumber;
|
||||
|
||||
public BuiltInStyle(int xfind, int sn) {
|
||||
super(Type.STYLE);
|
||||
this.xfIndex = xfind;
|
||||
this.styleNumber = sn;
|
||||
}
|
||||
|
||||
public byte[] getData() {
|
||||
byte[] data = new byte[4];
|
||||
IntegerHelper.getTwoBytes(this.xfIndex, data, 0);
|
||||
data[1] = (byte)(data[1] | 0x80);
|
||||
data[2] = (byte)this.styleNumber;
|
||||
data[3] = -1;
|
||||
return data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user