panerecord.java
来自「实现JAVA界面的代码GWT」· Java 代码 · 共 49 行
JAVA
49 行
// 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: PaneRecord.java
package jxl.write.biff;
import jxl.biff.*;
class PaneRecord extends WritableRecordData
{
private int rowsVisible;
private int columnsVisible;
private static final int topLeftPane = 3;
private static final int bottomLeftPane = 2;
private static final int topRightPane = 1;
private static final int bottomRightPane = 0;
public PaneRecord(int cols, int rows)
{
super(Type.PANE);
rowsVisible = rows;
columnsVisible = cols;
}
public byte[] getData()
{
byte data[] = new byte[10];
IntegerHelper.getTwoBytes(columnsVisible, data, 0);
IntegerHelper.getTwoBytes(rowsVisible, data, 2);
if(rowsVisible > 0)
IntegerHelper.getTwoBytes(rowsVisible, data, 4);
if(columnsVisible > 0)
IntegerHelper.getTwoBytes(columnsVisible, data, 6);
int activePane = 3;
if(rowsVisible > 0 && columnsVisible == 0)
activePane = 2;
else
if(rowsVisible == 0 && columnsVisible > 0)
activePane = 1;
else
if(rowsVisible > 0 && columnsVisible > 0)
activePane = 0;
IntegerHelper.getTwoBytes(activePane, data, 8);
return data;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?