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

📄 selectionrecord.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:   SelectionRecord.java

package jxl.write.biff;

import jxl.biff.*;

class SelectionRecord extends WritableRecordData
{
    private static class PaneType
    {

        int val;

        PaneType(int v)
        {
            val = v;
        }
    }


    private PaneType pane;
    private int column;
    private int row;
    public static final PaneType lowerRight = new PaneType(0);
    public static final PaneType upperRight = new PaneType(1);
    public static final PaneType lowerLeft = new PaneType(2);
    public static final PaneType upperLeft = new PaneType(3);

    public SelectionRecord(PaneType pt, int col, int r)
    {
        super(Type.SELECTION);
        column = col;
        row = r;
        pane = pt;
    }

    public byte[] getData()
    {
        byte data[] = new byte[15];
        data[0] = (byte)pane.val;
        IntegerHelper.getTwoBytes(row, data, 1);
        IntegerHelper.getTwoBytes(column, data, 3);
        data[7] = 1;
        IntegerHelper.getTwoBytes(row, data, 9);
        IntegerHelper.getTwoBytes(row, data, 11);
        data[13] = (byte)column;
        data[14] = (byte)column;
        return data;
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -