Fields Summary |
---|
public static final short | sid |
private byte | field_1_wsbool |
private byte | field_2_wsbool |
private static final BitField | autobreaks |
private static final BitField | dialog |
private static final BitField | applystyles |
private static final BitField | rowsumsbelow |
private static final BitField | rowsumsright |
private static final BitField | fittopage |
private static final BitField | displayguts |
private static final BitField | alternateexpression |
private static final BitField | alternateformula |
Methods Summary |
---|
public java.lang.Object | clone()
WSBoolRecord rec = new WSBoolRecord();
rec.field_1_wsbool = field_1_wsbool;
rec.field_2_wsbool = field_2_wsbool;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
byte data[] = in.readRemainder();
field_1_wsbool =
data[ 1 ]; // backwards because theoretically this is one short field
field_2_wsbool =
data[ 0 ]; // but it was easier to implement it this way to avoid confusion
|
public boolean | getAlternateExpression()whether alternate expression evaluation is on
return alternateexpression.isSet(field_2_wsbool);
|
public boolean | getAlternateFormula()whether alternative formula entry is on
return alternateformula.isSet(field_2_wsbool);
|
public boolean | getAutobreaks()show automatic page breaks or not
return autobreaks.isSet(field_1_wsbool);
|
public boolean | getDialog()get whether sheet is a dialog sheet or not
return dialog.isSet(field_1_wsbool);
|
public boolean | getDisplayGuts()get whether to display the guts or not
return displayguts.isSet(field_2_wsbool);
|
public boolean | getFitToPage()fit to page option is on
return fittopage.isSet(field_2_wsbool);
|
public int | getRecordSize()
return 6;
|
public boolean | getRowSumsBelow()get if row summaries appear below detail in the outline
return rowsumsbelow.isSet(field_1_wsbool);
|
public boolean | getRowSumsRight()get if col summaries appear right of the detail in the outline
return rowsumsright.isSet(field_1_wsbool);
|
public short | getSid()
return sid;
|
public byte | getWSBool1()get first byte (see bit getters)
return field_1_wsbool;
|
public byte | getWSBool2()get the second byte (see bit getters)
return field_2_wsbool;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);
data[ 5 + offset ] = getWSBool1();
data[ 4 + offset ] = getWSBool2();
return getRecordSize();
|
public void | setAlternateExpression(boolean altexp)whether alternate expression evaluation is on
field_2_wsbool = alternateexpression.setByteBoolean(field_2_wsbool,
altexp);
|
public void | setAlternateFormula(boolean formula)whether alternative formula entry is on
field_2_wsbool = alternateformula.setByteBoolean(field_2_wsbool,
formula);
|
public void | setAutobreaks(boolean ab)show automatic page breaks or not
field_1_wsbool = autobreaks.setByteBoolean(field_1_wsbool, ab);
|
public void | setDialog(boolean isDialog)set whether sheet is a dialog sheet or not
field_1_wsbool = dialog.setByteBoolean(field_1_wsbool, isDialog);
|
public void | setDisplayGuts(boolean guts)set whether to display the guts or not
field_2_wsbool = displayguts.setByteBoolean(field_2_wsbool, guts);
|
public void | setFitToPage(boolean fit2page)fit to page option is on
field_2_wsbool = fittopage.setByteBoolean(field_2_wsbool, fit2page);
|
public void | setRowSumsBelow(boolean below)set if row summaries appear below detail in the outline
field_1_wsbool = rowsumsbelow.setByteBoolean(field_1_wsbool, below);
|
public void | setRowSumsRight(boolean right)set if col summaries appear right of the detail in the outline
field_1_wsbool = rowsumsright.setByteBoolean(field_1_wsbool, right);
|
public void | setWSBool1(byte bool1)set first byte (see bit setters)
field_1_wsbool = bool1;
|
public void | setWSBool2(byte bool2)set the second byte (see bit setters)
field_2_wsbool = bool2;
|
public java.lang.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");
}
|