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

📄 sortrecord.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:   SortRecord.java

package jxl.read.biff;

import jxl.biff.*;

// Referenced classes of package jxl.read.biff:
//            Record

public class SortRecord extends RecordData
{

    private int col1Size;
    private int col2Size;
    private int col3Size;
    private String col1Name;
    private String col2Name;
    private String col3Name;
    private byte optionFlags;
    private boolean sortColumns;
    private boolean sortKey1Desc;
    private boolean sortKey2Desc;
    private boolean sortKey3Desc;
    private boolean sortCaseSensitive;

    public SortRecord(Record r)
    {
        super(Type.SORT);
        sortColumns = false;
        sortKey1Desc = false;
        sortKey2Desc = false;
        sortKey3Desc = false;
        sortCaseSensitive = false;
        byte data[] = r.getData();
        optionFlags = data[0];
        sortColumns = (optionFlags & 0x1) != 0;
        sortKey1Desc = (optionFlags & 0x2) != 0;
        sortKey2Desc = (optionFlags & 0x4) != 0;
        sortKey3Desc = (optionFlags & 0x8) != 0;
        sortCaseSensitive = (optionFlags & 0x10) != 0;
        col1Size = data[2];
        col2Size = data[3];
        col3Size = data[4];
        int curPos = 5;
        if(data[curPos++] == 0)
        {
            col1Name = new String(data, curPos, col1Size);
            curPos += col1Size;
        } else
        {
            col1Name = StringHelper.getUnicodeString(data, col1Size, curPos);
            curPos += col1Size * 2;
        }
        if(col2Size > 0)
        {
            if(data[curPos++] == 0)
            {
                col2Name = new String(data, curPos, col2Size);
                curPos += col2Size;
            } else
            {
                col2Name = StringHelper.getUnicodeString(data, col2Size, curPos);
                curPos += col2Size * 2;
            }
        } else
        {
            col2Name = "";
        }
        if(col3Size > 0)
        {
            if(data[curPos++] == 0)
            {
                col3Name = new String(data, curPos, col3Size);
                curPos += col3Size;
            } else
            {
                col3Name = StringHelper.getUnicodeString(data, col3Size, curPos);
                curPos += col3Size * 2;
            }
        } else
        {
            col3Name = "";
        }
    }

    public String getSortCol1Name()
    {
        return col1Name;
    }

    public String getSortCol2Name()
    {
        return col2Name;
    }

    public String getSortCol3Name()
    {
        return col3Name;
    }

    public boolean getSortColumns()
    {
        return sortColumns;
    }

    public boolean getSortKey1Desc()
    {
        return sortKey1Desc;
    }

    public boolean getSortKey2Desc()
    {
        return sortKey2Desc;
    }

    public boolean getSortKey3Desc()
    {
        return sortKey3Desc;
    }

    public boolean getSortCaseSensitive()
    {
        return sortCaseSensitive;
    }
}

⌨️ 快捷键说明

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