51 lines
1.1 KiB
Java
51 lines
1.1 KiB
Java
package jxl.read.biff;
|
|
|
|
import common.Logger;
|
|
import jxl.biff.IntegerHelper;
|
|
import jxl.biff.RecordData;
|
|
|
|
class Window2Record extends RecordData {
|
|
private static Logger logger = Logger.getLogger(Window2Record.class);
|
|
|
|
private boolean selected;
|
|
|
|
private boolean showGridLines;
|
|
|
|
private boolean displayZeroValues;
|
|
|
|
private boolean frozenPanes;
|
|
|
|
private boolean frozenNotSplit;
|
|
|
|
public Window2Record(Record t) {
|
|
super(t);
|
|
byte[] data = t.getData();
|
|
int options = IntegerHelper.getInt(data[0], data[1]);
|
|
this.selected = ((options & 0x200) != 0);
|
|
this.showGridLines = ((options & 0x2) != 0);
|
|
this.frozenPanes = ((options & 0x8) != 0);
|
|
this.displayZeroValues = ((options & 0x10) != 0);
|
|
this.frozenNotSplit = ((options & 0x100) != 0);
|
|
}
|
|
|
|
public boolean isSelected() {
|
|
return this.selected;
|
|
}
|
|
|
|
public boolean getShowGridLines() {
|
|
return this.showGridLines;
|
|
}
|
|
|
|
public boolean getDisplayZeroValues() {
|
|
return this.displayZeroValues;
|
|
}
|
|
|
|
public boolean getFrozen() {
|
|
return this.frozenPanes;
|
|
}
|
|
|
|
public boolean getFrozenNotSplit() {
|
|
return this.frozenNotSplit;
|
|
}
|
|
}
|