writableformattingrecords.java

来自「实现JAVA界面的代码GWT」· Java 代码 · 共 113 行

JAVA
113
字号
// 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:   WritableFormattingRecords.java

package jxl.write.biff;

import common.Assert;
import jxl.biff.*;
import jxl.write.NumberFormats;
import jxl.write.WritableCellFormat;

// Referenced classes of package jxl.write.biff:
//            StyleXFRecord, Styles

public class WritableFormattingRecords extends FormattingRecords
{

    public static WritableCellFormat normalStyle;

    public WritableFormattingRecords(Fonts f, Styles styles)
    {
        super(f);
        try
        {
            StyleXFRecord sxf = new StyleXFRecord(styles.getArial10Pt(), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            addStyle(sxf);
            sxf = new StyleXFRecord(getFonts().getFont(1), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(getFonts().getFont(1), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(getFonts().getFont(1), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(getFonts().getFont(2), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(getFonts().getFont(3), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(styles.getArial10Pt(), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(styles.getArial10Pt(), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(styles.getArial10Pt(), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(styles.getArial10Pt(), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(styles.getArial10Pt(), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(styles.getArial10Pt(), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(styles.getArial10Pt(), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(styles.getArial10Pt(), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            sxf = new StyleXFRecord(styles.getArial10Pt(), NumberFormats.DEFAULT);
            sxf.setLocked(true);
            sxf.setCellOptions(62464);
            addStyle(sxf);
            addStyle(styles.getNormalStyle());
            sxf = new StyleXFRecord(getFonts().getFont(1), NumberFormats.FORMAT7);
            sxf.setLocked(true);
            sxf.setCellOptions(63488);
            addStyle(sxf);
            sxf = new StyleXFRecord(getFonts().getFont(1), NumberFormats.FORMAT5);
            sxf.setLocked(true);
            sxf.setCellOptions(63488);
            addStyle(sxf);
            sxf = new StyleXFRecord(getFonts().getFont(1), NumberFormats.FORMAT8);
            sxf.setLocked(true);
            sxf.setCellOptions(63488);
            addStyle(sxf);
            sxf = new StyleXFRecord(getFonts().getFont(1), NumberFormats.FORMAT6);
            sxf.setLocked(true);
            sxf.setCellOptions(63488);
            addStyle(sxf);
            sxf = new StyleXFRecord(getFonts().getFont(1), NumberFormats.PERCENT_INTEGER);
            sxf.setLocked(true);
            sxf.setCellOptions(63488);
            addStyle(sxf);
        }
        catch(NumFormatRecordsException e)
        {
            Assert.verify(false, e.getMessage());
        }
    }
}

⌨️ 快捷键说明

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