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

📄 formulaerrorcode.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:   FormulaErrorCode.java

package jxl.biff.formula;


public class FormulaErrorCode
{

    private int errorCode;
    private String description;
    private static FormulaErrorCode codes[] = new FormulaErrorCode[0];
    public static final FormulaErrorCode UNKNOWN = new FormulaErrorCode(255, "?");
    public static final FormulaErrorCode NULL = new FormulaErrorCode(0, "#NULL");
    public static final FormulaErrorCode DIV0 = new FormulaErrorCode(7, "#DIV/0");
    public static final FormulaErrorCode VALUE = new FormulaErrorCode(15, "#VALUE");
    public static final FormulaErrorCode REF = new FormulaErrorCode(23, "#REF");
    public static final FormulaErrorCode NAME = new FormulaErrorCode(29, "#NAME");
    public static final FormulaErrorCode NUM = new FormulaErrorCode(36, "#NUM");
    public static final FormulaErrorCode NA = new FormulaErrorCode(42, "#N/A");

    FormulaErrorCode(int code, String desc)
    {
        errorCode = code;
        description = desc;
        FormulaErrorCode newcodes[] = new FormulaErrorCode[codes.length + 1];
        System.arraycopy(codes, 0, newcodes, 0, codes.length);
        newcodes[codes.length] = this;
        codes = newcodes;
    }

    public int getCode()
    {
        return errorCode;
    }

    public String getDescription()
    {
        return description;
    }

    public static FormulaErrorCode getErrorCode(int code)
    {
        boolean found = false;
        FormulaErrorCode ec = UNKNOWN;
        for(int i = 0; i < codes.length && !found; i++)
            if(codes[i].errorCode == code)
            {
                found = true;
                ec = codes[i];
            }

        return ec;
    }

}

⌨️ 快捷键说明

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