⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 panerecord.java

📁 实现JAVA界面的代码GWT
💻 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:   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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -