亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hssfrow.java

?? java 報表 to office文檔: 本包由java語言開發
?? JAVA
字號:
/* ====================================================================   Copyright 2002-2004   Apache Software Foundation   Licensed under the Apache License, Version 2.0 (the "License");   you may not use this file except in compliance with the License.   You may obtain a copy of the License at       http://www.apache.org/licenses/LICENSE-2.0   Unless required by applicable law or agreed to in writing, software   distributed under the License is distributed on an "AS IS" BASIS,   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   See the License for the specific language governing permissions and   limitations under the License.==================================================================== *//* * HSSFRow.java * * Created on September 30, 2001, 3:44 PM */package org.apache.poi.hssf.usermodel;import org.apache.poi.hssf.model.Sheet;import org.apache.poi.hssf.model.Workbook;import org.apache.poi.hssf.record.CellValueRecordInterface;import org.apache.poi.hssf.record.RowRecord;import java.util.HashMap;import java.util.Iterator;/** * High level representation of a row of a spreadsheet. * * Only rows that have cells should be added to a Sheet. * @version 1.0-pre * @author  Andrew C. Oliver (acoliver at apache dot org) * @author Glen Stampoultzis (glens at apache.org) */public class HSSFRow        implements Comparable{    // used for collections    public final static int INITIAL_CAPACITY = 5;    //private short rowNum;    private int rowNum;    private HashMap cells;//    private short firstcell = -1;//    private short lastcell = -1;    /**     * reference to low level representation     */    private RowRecord row;    /**     * reference to containing low level Workbook     */    private Workbook book;    /**     * reference to containing Sheet     */    private Sheet sheet;    protected HSSFRow()    {    }    /**     * Creates new HSSFRow from scratch. Only HSSFSheet should do this.     *     * @param book low-level Workbook object containing the sheet that contains this row     * @param sheet low-level Sheet object that contains this Row     * @param rowNum the row number of this row (0 based)     * @see org.apache.poi.hssf.usermodel.HSSFSheet#createRow(int)     */    //protected HSSFRow(Workbook book, Sheet sheet, short rowNum)    protected HSSFRow(Workbook book, Sheet sheet, int rowNum)    {        cells = new HashMap(10);   // new ArrayList(INITIAL_CAPACITY);        this.book = book;        this.sheet = sheet;        row = new RowRecord();        row.setOptionFlags( (short)0x100 );   // seems necessary for outlining to work.          row.setHeight((short) 0xff);        row.setLastCol((short) -1);        row.setFirstCol((short) -1);        setRowNum(rowNum);    }    /**     * Creates an HSSFRow from a low level RowRecord object.  Only HSSFSheet should do     * this.  HSSFSheet uses this when an existing file is read in.     *     * @param book low-level Workbook object containing the sheet that contains this row     * @param sheet low-level Sheet object that contains this Row     * @param record the low level api object this row should represent     * @see org.apache.poi.hssf.usermodel.HSSFSheet#createRow(int)     */    protected HSSFRow(Workbook book, Sheet sheet, RowRecord record)    {        cells = new HashMap();   // ArrayList(INITIAL_CAPACITY);        this.book = book;        this.sheet = sheet;        row = record;        setRowNum(record.getRowNumber());    }    /**     * Use this to create new cells within the row and return it.     * <p>     * The cell that is returned is a CELL_TYPE_BLANK. The type can be changed     * either through calling <code>setCellValue</code> or <code>setCellType</code>.     *     * @param column - the column number this cell represents     *     * @return HSSFCell a high level representation of the created cell.     */    public HSSFCell createCell(short column)    {        HSSFCell cell = new HSSFCell(book, sheet, getRowNum(), column);        addCell(cell);        sheet.addValueRecord(getRowNum(), cell.getCellValueRecord());        return cell;    }    /**     * Use this to create new cells within the row and return it.     * <p>     * The cell that is returned is a CELL_TYPE_BLANK. The type can be changed     * either through calling setCellValue or setCellType.     *     * @param column - the column number this cell represents     *     * @return HSSFCell a high level representation of the created cell.     * @deprecated As of 22-Jan-2002 use createCell(short) and use setCellValue to     * specify the type lazily.     */    public HSSFCell createCell(short column, int type)    {        HSSFCell cell = new HSSFCell(book, sheet, getRowNum(), column, type);        addCell(cell);        sheet.addValueRecord(getRowNum(), cell.getCellValueRecord());        return cell;    }    /**     * remove the HSSFCell from this row.     * @param cell to remove     */    public void removeCell(HSSFCell cell)    {        CellValueRecordInterface cval = cell.getCellValueRecord();        sheet.removeValueRecord(getRowNum(), cval);        cells.remove(new Integer(cell.getCellNum()));        if (cell.getCellNum() == row.getLastCol())        {            row.setLastCol(findLastCell(row.getLastCol()));        }        if (cell.getCellNum() == row.getFirstCol())        {            row.setFirstCol(findFirstCell(row.getFirstCol()));        }    }    /**     * create a high level HSSFCell object from an existing low level record.  Should     * only be called from HSSFSheet or HSSFRow itself.     * @param cell low level cell to create the high level representation from     * @return HSSFCell representing the low level record passed in     */    protected HSSFCell createCellFromRecord(CellValueRecordInterface cell)    {        HSSFCell hcell = new HSSFCell(book, sheet, getRowNum(), cell);        addCell(hcell);        // sheet.addValueRecord(getRowNum(),cell.getCellValueRecord());        return hcell;    }    /**     * set the row number of this row.     * @param rowNum  the row number (0-based)     * @throws IndexOutOfBoundsException if the row number is not within the range 0-65535.     */    //public void setRowNum(short rowNum)    public void setRowNum(int rowNum)    {        if ((rowNum < 0) || (rowNum > RowRecord.MAX_ROW_NUMBER))          throw new IndexOutOfBoundsException("Row number must be between 0 and "+RowRecord.MAX_ROW_NUMBER+", was <"+rowNum+">");        this.rowNum = rowNum;        if (row != null)        {            row.setRowNumber(rowNum);   // used only for KEY comparison (HSSFRow)        }    }    /**     * get row number this row represents     * @return the row number (0 based)     */    //public short getRowNum()    public int getRowNum()    {        return rowNum;    }    /**     * used internally to add a cell.     */    private void addCell(HSSFCell cell)    {        if (row.getFirstCol() == -1)        {            row.setFirstCol(cell.getCellNum());        }        if (row.getLastCol() == -1)        {            row.setLastCol(cell.getCellNum());        }        cells.put(new Integer(cell.getCellNum()), cell);        if (cell.getCellNum() < row.getFirstCol())        {            row.setFirstCol(cell.getCellNum());        }        if (cell.getCellNum() > row.getLastCol())        {            row.setLastCol(cell.getCellNum());        }    }    /**     * get the hssfcell representing a given column (logical cell) 0-based.  If you     * ask for a cell that is not defined....you get a null.     *     * @param cellnum  0 based column number     * @return HSSFCell representing that column or null if undefined.     */    public HSSFCell getCell(short cellnum)    {/*        for (int k = 0; k < cells.size(); k++)        {            HSSFCell cell = ( HSSFCell ) cells.get(k);            if (cell.getCellNum() == cellnum)            {                return cell;            }        }*/        return (HSSFCell) cells.get(new Integer(cellnum));    }    /**     * get the number of the first cell contained in this row.     * @return short representing the first logical cell in the row     */    public short getFirstCellNum()    {        if (getPhysicalNumberOfCells() == 0)            return -1;        else            return row.getFirstCol();    }    /**     * get the number of the last cell contained in this row.     * @return short representing the last logical cell in the row     */    public short getLastCellNum()    {        if (getPhysicalNumberOfCells() == 0)            return -1;        else            return row.getLastCol();    }    /**     * gets the number of defined cells (NOT number of cells in the actual row!).     * That is to say if only columns 0,4,5 have values then there would be 3.     * @return int representing the number of defined cells in the row.     */    public int getPhysicalNumberOfCells()    {        if (cells == null)        {            return 0;   // shouldn't be possible but it is due to missing API support for BLANK/MULBLANK        }        return cells.size();    }    /**     * set the row's height or set to ff (-1) for undefined/default-height.  Set the height in "twips" or     * 1/20th of a point.     * @param height  rowheight or 0xff for undefined (use sheet default)     */    public void setHeight(short height)    {        // row.setOptionFlags(        row.setBadFontHeight(true);        row.setHeight(height);    }    /**     * set whether or not to display this row with 0 height     * @param zHeight  height is zero or not.     */    public void setZeroHeight(boolean zHeight) {        row.setZeroHeight(zHeight);    }      /**     * get whether or not to display this row with 0 height     * @return - zHeight height is zero or not.     */    public boolean getZeroHeight() {        return row.getZeroHeight();    }    /**     * set the row's height in points.     * @param height  row height in points     */    public void setHeightInPoints(float height)    {        // row.setOptionFlags(        row.setBadFontHeight(true);        row.setHeight((short) (height * 20));    }    /**     * get the row's height or ff (-1) for undefined/default-height in twips (1/20th of a point)     * @return rowheight or 0xff for undefined (use sheet default)     */    public short getHeight()    {        return row.getHeight();    }    /**     * get the row's height or ff (-1) for undefined/default-height in points (20*getHeight())     * @return rowheight or 0xff for undefined (use sheet default)     */    public float getHeightInPoints()    {        return (row.getHeight() / 20);    }    /**     * get the lowlevel RowRecord represented by this object - should only be called     * by other parts of the high level API     *     * @return RowRecord this row represents     */    protected RowRecord getRowRecord()    {        return row;    }    /**     * used internally to refresh the "last cell" when the last cell is removed.     */    private short findLastCell(short lastcell)    {        short cellnum = (short) (lastcell - 1);        HSSFCell r = getCell(cellnum);        while (r == null && cellnum >= 0)        {            r = getCell(--cellnum);        }        return cellnum;    }    /**     * used internally to refresh the "first cell" when the first cell is removed.     */    private short findFirstCell(short firstcell)    {        short cellnum = (short) (firstcell + 1);        HSSFCell r = getCell(cellnum);        while (r == null && cellnum <= getLastCellNum())        {            r = getCell(++cellnum);        }        if (cellnum > getLastCellNum())            return -1;        return cellnum;    }    /**     * @return cell iterator of the physically defined cells.  Note element 4 may     * actually be row cell depending on how many are defined!     */    public Iterator cellIterator()    {        return cells.values().iterator();    }    public int compareTo(Object obj)    {        HSSFRow loc = (HSSFRow) obj;        if (this.getRowNum() == loc.getRowNum())        {            return 0;        }        if (this.getRowNum() < loc.getRowNum())        {            return -1;        }        if (this.getRowNum() > loc.getRowNum())        {            return 1;        }        return -1;    }    public boolean equals(Object obj)    {        if (!(obj instanceof HSSFRow))        {            return false;        }        HSSFRow loc = (HSSFRow) obj;        if (this.getRowNum() == loc.getRowNum())        {            return true;        }        return false;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区久久| 91精品国产综合久久福利软件 | 三级在线观看一区二区 | 韩国在线一区二区| 久久久久99精品国产片| 国产制服丝袜一区| 久久久www成人免费毛片麻豆 | 国产精品中文欧美| 久久一日本道色综合| 青青草国产精品97视觉盛宴| 日韩手机在线导航| 色综合天天综合狠狠| 亚洲精品欧美二区三区中文字幕| 色综合天天狠狠| 久久国产精品色婷婷| 国产精品传媒视频| 欧美一区三区四区| 婷婷综合五月天| 国产欧美日韩在线看| 欧美日韩国产高清一区二区三区 | 亚洲欧洲日韩女同| 欧美日韩一区二区三区不卡| 韩国女主播成人在线| 亚洲欧美乱综合| 国产日韩av一区| 制服丝袜激情欧洲亚洲| 丰满放荡岳乱妇91ww| 日韩激情一二三区| 亚洲一二三四区不卡| 国产精品女人毛片| 久久综合色天天久久综合图片| 日本乱码高清不卡字幕| 国产福利精品一区二区| 麻豆精品视频在线观看免费| 亚洲精品国产视频| 亚洲欧美在线视频观看| 欧美v日韩v国产v| 7777女厕盗摄久久久| 欧美三区在线观看| 51午夜精品国产| 欧美男人的天堂一二区| 欧美精品精品一区| 欧美mv日韩mv国产网站app| 亚洲精品一区二区三区99| 日韩欧美黄色影院| 日韩免费观看2025年上映的电影| 欧美一区二区黄色| 欧美日韩国产免费| 亚洲不卡一区二区三区| 亚洲影视在线观看| 精品写真视频在线观看| 国产69精品一区二区亚洲孕妇 | 亚洲激情自拍视频| 天天免费综合色| 岛国精品在线观看| 欧美日本一区二区三区| 中文字幕第一区| 奇米影视一区二区三区| 国产精品1024| 欧美日韩高清在线播放| 精品国产3级a| 一区二区高清在线| 国模少妇一区二区三区| 91网站最新网址| 亚洲精品一区二区三区影院 | 色先锋资源久久综合| 欧美电影免费观看高清完整版在线| 国产精品福利一区二区| 国产精品乡下勾搭老头1| 欧美一区二区三区视频| 亚洲视频1区2区| 国产激情一区二区三区| 欧美一区二区视频观看视频| 亚洲人成小说网站色在线| 国产真实乱对白精彩久久| 日韩午夜三级在线| 天堂在线一区二区| 欧美日韩亚州综合| 亚洲成人av一区二区| 91久久奴性调教| 亚洲v精品v日韩v欧美v专区| 7777精品伊人久久久大香线蕉 | 国产精品69久久久久水密桃| 日韩午夜在线观看视频| 精品一区二区三区免费观看| 欧美精品一二三| 国产在线播放一区| 中文字幕五月欧美| 欧美视频日韩视频在线观看| 日韩国产精品大片| 久久亚洲综合色一区二区三区| 国产成人精品aa毛片| 一区二区三区不卡视频| 欧美刺激午夜性久久久久久久| 国产激情一区二区三区桃花岛亚洲| 亚洲人成小说网站色在线| 国产色产综合产在线视频| 精品国产91九色蝌蚪| 5566中文字幕一区二区电影| 99久久久久久| 国产一区二区三区免费| 青青草成人在线观看| 亚洲综合色自拍一区| 国产精品视频一二| 国产欧美日韩视频一区二区| 久久精品人人做人人爽人人| 在线播放视频一区| 欧美色偷偷大香| 欧美日韩在线观看一区二区| 91在线看国产| 国产精品资源站在线| 极品少妇xxxx精品少妇| 日韩电影在线观看网站| 亚洲午夜电影在线观看| 亚洲乱码国产乱码精品精98午夜| 中文字幕欧美一区| 综合色天天鬼久久鬼色| 国产日韩精品一区二区三区| 久久久久久免费毛片精品| 精品奇米国产一区二区三区| 中文字幕久久午夜不卡| 亚洲视频一区二区在线观看| 亚洲国产成人av| 视频在线观看国产精品| 国产成人精品影院| 欧洲一区二区三区免费视频| 欧美日韩在线亚洲一区蜜芽| 欧美大白屁股肥臀xxxxxx| 久久你懂得1024| 亚洲国产精品v| 一区二区三区高清不卡| 日韩av不卡在线观看| 成人丝袜18视频在线观看| 欧美日韩一区二区三区四区五区 | 激情伊人五月天久久综合| 丁香网亚洲国际| 51精品视频一区二区三区| 综合色中文字幕| 日本特黄久久久高潮| 91蜜桃婷婷狠狠久久综合9色| 在线不卡免费av| 2020国产精品自拍| 久久国产婷婷国产香蕉| 欧美成人vps| 欧美aa在线视频| 色偷偷久久一区二区三区| 欧美一级片免费看| 亚洲一区二区欧美激情| 成人性生交大片免费看视频在线 | 国产成人免费高清| 欧美一级国产精品| 日本欧美久久久久免费播放网| 99r国产精品| 亚洲人成伊人成综合网小说| 成人av电影在线播放| 日韩视频一区二区三区| 欧美aⅴ一区二区三区视频| 在线观看日韩精品| 亚洲精品成人在线| 欧美日韩国产高清一区二区 | 国产精品一区二区x88av| 日韩一级视频免费观看在线| 日韩va欧美va亚洲va久久| 欧美一区2区视频在线观看| 久久精品久久久精品美女| 精品国产乱码久久久久久蜜臀 | 亚洲妇熟xx妇色黄| 欧美精品18+| 国产乱码精品1区2区3区| 国产精品麻豆久久久| 欧美性一级生活| 国产在线播精品第三| 亚洲美女一区二区三区| 在线电影欧美成精品| 成人国产精品免费观看动漫| 午夜成人免费电影| 国产精品国产三级国产aⅴ无密码| 欧美色男人天堂| 不卡在线观看av| 国产iv一区二区三区| 亚洲免费在线播放| 亚洲精品一区二区三区精华液| av电影在线观看一区| 国产乱码精品一区二区三区五月婷| 五月综合激情婷婷六月色窝| 国产精品视频九色porn| 日韩精品一区二区三区蜜臀 | 欧美性猛片xxxx免费看久爱| 色香蕉久久蜜桃| 在线精品视频免费观看| 在线国产电影不卡| 欧美伊人精品成人久久综合97| 91成人国产精品| 91极品美女在线| 91丨porny丨首页| 国产成人午夜精品影院观看视频| 性久久久久久久| 99视频精品免费视频| av激情成人网| 精品一区在线看|