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

📄 labelrecord.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:   LabelRecord.java

package jxl.write.biff;

import common.Assert;
import common.Logger;
import jxl.CellType;
import jxl.LabelCell;
import jxl.biff.*;
import jxl.format.CellFormat;

// Referenced classes of package jxl.write.biff:
//            CellValue, SharedStrings, WritableSheetImpl

public abstract class LabelRecord extends CellValue
{

    private static Logger logger;
    private String contents;
    private SharedStrings sharedStrings;
    private int index;
    static Class class$jxl$write$biff$LabelRecord; /* synthetic field */

    protected LabelRecord(int c, int r, String cont)
    {
        super(Type.LABELSST, c, r);
        contents = cont;
        if(contents == null)
            contents = "";
    }

    protected LabelRecord(int c, int r, String cont, CellFormat st)
    {
        super(Type.LABELSST, c, r, st);
        contents = cont;
        if(contents == null)
            contents = "";
    }

    protected LabelRecord(int c, int r, LabelRecord lr)
    {
        super(Type.LABELSST, c, r, lr);
        contents = lr.contents;
    }

    protected LabelRecord(LabelCell lc)
    {
        super(Type.LABELSST, lc);
        contents = lc.getString();
        if(contents == null)
            contents = "";
    }

    public CellType getType()
    {
        return CellType.LABEL;
    }

    public byte[] getData()
    {
        byte celldata[] = super.getData();
        byte data[] = new byte[celldata.length + 4];
        System.arraycopy(celldata, 0, data, 0, celldata.length);
        IntegerHelper.getFourBytes(index, data, celldata.length);
        return data;
    }

    public String getContents()
    {
        return contents;
    }

    public String getString()
    {
        return contents;
    }

    protected void setString(String s)
    {
        if(s == null)
            s = "";
        contents = s;
        if(!isReferenced())
        {
            return;
        } else
        {
            Assert.verify(sharedStrings != null);
            index = sharedStrings.getIndex(contents);
            contents = sharedStrings.get(index);
            return;
        }
    }

    void setCellDetails(FormattingRecords fr, SharedStrings ss, WritableSheetImpl s)
    {
        super.setCellDetails(fr, ss, s);
        sharedStrings = ss;
        index = sharedStrings.getIndex(contents);
        contents = sharedStrings.get(index);
    }

    static Class class$(String x0)
    {
        return Class.forName(x0);
        ClassNotFoundException x1;
        x1;
        throw new NoClassDefFoundError(x1.getMessage());
    }

    static 
    {
        logger = Logger.getLogger(class$jxl$write$biff$LabelRecord != null ? class$jxl$write$biff$LabelRecord : (class$jxl$write$biff$LabelRecord = class$("jxl.write.biff.LabelRecord")));
    }
}

⌨️ 快捷键说明

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