zcellerasor.java

来自「用Java写的报表.功能如下: 0.内建网络打印,网络预览功能! 1.文件操作。」· Java 代码 · 共 45 行

JAVA
45
字号
/*
 * Copyright 2002 EZCell , Inc. All rights reserved.
 * Version  1.0.
 * Author   W.John
 */
package ezcell;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;


/**
 * put your documentation comment here
 */
class ZCellErasor implements Serializable {
    private int row;
    private int col;

    /**
 * put your documentation comment here
 * @param     int row
 * @param     int col
 */
    public ZCellErasor(int row, int col) {
        this.row = row;
        this.col = col;
    }

    /**
 * put your documentation comment here
 * @param ois
 * @exception ClassNotFoundException, IOException
 */
    private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException {
        ois.defaultReadObject();

        ObjectInputStream2 is = (ObjectInputStream2) ois;
        ZDefaultCell cell = is.sheet.getExistCell(row, col);

        if (cell != null) {
            is.sheet.remove(cell);
        }
    }
}

⌨️ 快捷键说明

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