| Method from org.apache.cocoon.poi.hssf.record.WSBoolRecord Detail: |
protected void fillFields(byte[] data,
short size,
int offset) {
field_1_wsbool =
data[ 1 + offset ]; // backwards because theoretically this is one short field
field_2_wsbool =
data[ 0 + offset ]; // but it was easier to implement it this way to avoid confusion
}
|
public boolean getAlternateExpression() {
return alternateexpression.isSet(field_2_wsbool);
}
whether alternate expression evaluation is on |
public boolean getAlternateFormula() {
return alternateformula.isSet(field_2_wsbool);
}
whether alternative formula entry is on |
public boolean getAutobreaks() {
return autobreaks.isSet(field_1_wsbool);
}
show automatic page breaks or not |
public boolean getDialog() {
return dialog.isSet(field_1_wsbool);
}
get whether sheet is a dialog sheet or not |
public boolean getDisplayGuts() {
return displayguts.isSet(field_2_wsbool);
}
get whether to display the guts or not |
public boolean getFitToPage() {
return fittopage.isSet(field_2_wsbool);
}
|
public boolean getRowSumsBelow() {
return rowsumsbelow.isSet(field_1_wsbool);
}
get if row summaries appear below detail in the outline |
public boolean getRowSumsRight() {
return rowsumsright.isSet(field_1_wsbool);
}
get if col summaries appear right of the detail in the outline |
public short getSid() {
return this.sid;
}
|
public byte getWSBool1() {
return field_1_wsbool;
}
get first byte (see bit getters) |
public byte getWSBool2() {
return field_2_wsbool;
}
get the second byte (see bit getters) |
public byte[] serialize() {
byte[] retval = new byte[ 6 ];
LittleEndian.putShort(retval, 0, sid);
LittleEndian.putShort(retval, 2, ( short ) 0x2);
retval[ 5 ] = getWSBool1();
retval[ 4 ] = getWSBool2();
return retval;
}
|
public void setAlternateExpression(boolean altexp) {
alternateexpression.setByteBoolean(field_2_wsbool, altexp);
}
whether alternate expression evaluation is on |
public void setAlternateFormula(boolean formula) {
alternateformula.setByteBoolean(field_2_wsbool, formula);
}
whether alternative formula entry is on |
public void setAutobreaks(boolean ab) {
autobreaks.setByteBoolean(field_1_wsbool, ab);
}
show automatic page breaks or not |
public void setDialog(boolean isDialog) {
dialog.setByteBoolean(field_1_wsbool, isDialog);
}
set whether sheet is a dialog sheet or not |
public void setDisplayGuts(boolean guts) {
displayguts.setByteBoolean(field_2_wsbool, guts);
}
set whether to display the guts or not |
public void setFitToPage(boolean fit2page) {
fittopage.setByteBoolean(field_2_wsbool, fit2page);
}
|
public void setRowSumsBelow(boolean below) {
rowsumsbelow.setByteBoolean(field_1_wsbool, below);
}
set if row summaries appear below detail in the outline |
public void setRowSumsRight(boolean right) {
rowsumsright.setByteBoolean(field_1_wsbool, right);
}
set if col summaries appear right of the detail in the outline |
public void setWSBool1(byte bool1) {
field_1_wsbool = bool1;
}
set first byte (see bit setters) |
public void setWSBool2(byte bool2) {
field_2_wsbool = bool2;
}
set the second byte (see bit setters) |
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("[WSBOOL]\n");
buffer.append(" .wsbool1 = ")
.append(Integer.toHexString(getWSBool1())).append("\n");
buffer.append(" .autobreaks = ").append(getAutobreaks())
.append("\n");
buffer.append(" .dialog = ").append(getDialog())
.append("\n");
buffer.append(" .rowsumsbelw= ").append(getRowSumsBelow())
.append("\n");
buffer.append(" .rowsumsrigt= ").append(getRowSumsRight())
.append("\n");
buffer.append(" .wsbool2 = ")
.append(Integer.toHexString(getWSBool2())).append("\n");
buffer.append(" .fittopage = ").append(getFitToPage())
.append("\n");
buffer.append(" .displayguts= ").append(getDisplayGuts())
.append("\n");
buffer.append(" .alternateex= ")
.append(getAlternateExpression()).append("\n");
buffer.append(" .alternatefo= ").append(getAlternateFormula())
.append("\n");
buffer.append("[/WSBOOL]\n");
return buffer.toString();
}
|
protected void validateSid(short id) {
if (id != sid)
{
throw new RecordFormatException("NOT A WSBoolRECORD");
}
}
|