📄 booleanrecord.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: BooleanRecord.java
package jxl.write.biff;
import jxl.BooleanCell;
import jxl.CellType;
import jxl.biff.Type;
import jxl.format.CellFormat;
// Referenced classes of package jxl.write.biff:
// CellValue
public abstract class BooleanRecord extends CellValue
{
private boolean value;
protected BooleanRecord(int c, int r, boolean val)
{
super(Type.BOOLERR, c, r);
value = val;
}
protected BooleanRecord(int c, int r, boolean val, CellFormat st)
{
super(Type.BOOLERR, c, r, st);
value = val;
}
protected BooleanRecord(BooleanCell nc)
{
super(Type.BOOLERR, nc);
value = nc.getValue();
}
protected BooleanRecord(int c, int r, BooleanRecord br)
{
super(Type.BOOLERR, c, r, br);
value = br.value;
}
public boolean getValue()
{
return value;
}
public String getContents()
{
return (new Boolean(value)).toString();
}
public CellType getType()
{
return CellType.BOOLEAN;
}
protected void setValue(boolean val)
{
value = val;
}
public byte[] getData()
{
byte celldata[] = super.getData();
byte data[] = new byte[celldata.length + 2];
System.arraycopy(celldata, 0, data, 0, celldata.length);
if(value)
data[celldata.length] = 1;
return data;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -