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

📄 cellvalue.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:   CellValue.java

package jxl.read.biff;

import common.Logger;
import jxl.Cell;
import jxl.CellFeatures;
import jxl.biff.*;
import jxl.format.CellFormat;

// Referenced classes of package jxl.read.biff:
//            CellFeaturesAccessor, Record, SheetImpl, ColumnInfoRecord, 
//            RowRecord

public abstract class CellValue extends RecordData
    implements Cell, CellFeaturesAccessor
{

    private static Logger logger;
    private int row;
    private int column;
    private int xfIndex;
    private FormattingRecords formattingRecords;
    private boolean initialized;
    private XFRecord format;
    private SheetImpl sheet;
    private CellFeatures features;
    static Class class$jxl$read$biff$CellValue; /* synthetic field */

    protected CellValue(Record t, FormattingRecords fr, SheetImpl si)
    {
        super(t);
        byte data[] = getRecord().getData();
        row = IntegerHelper.getInt(data[0], data[1]);
        column = IntegerHelper.getInt(data[2], data[3]);
        xfIndex = IntegerHelper.getInt(data[4], data[5]);
        sheet = si;
        formattingRecords = fr;
        initialized = false;
    }

    public final int getRow()
    {
        return row;
    }

    public final int getColumn()
    {
        return column;
    }

    public final int getXFIndex()
    {
        return xfIndex;
    }

    public CellFormat getCellFormat()
    {
        if(!initialized)
        {
            format = formattingRecords.getXFRecord(xfIndex);
            initialized = true;
        }
        return format;
    }

    public boolean isHidden()
    {
        ColumnInfoRecord cir = sheet.getColumnInfo(column);
        if(cir != null && (cir.getWidth() == 0 || cir.getHidden()))
            return true;
        RowRecord rr = sheet.getRowInfo(row);
        return rr != null && (rr.getRowHeight() == 0 || rr.isCollapsed());
    }

    protected SheetImpl getSheet()
    {
        return sheet;
    }

    public CellFeatures getCellFeatures()
    {
        return features;
    }

    public void setCellFeatures(CellFeatures cf)
    {
        if(features != null)
            logger.warn("current cell features not null - overwriting");
        features = cf;
    }

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

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

⌨️ 快捷键说明

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