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

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

?? labelrecord.java

?? java開發文檔之excel:jexcelapi_2_6_3.tar
?? JAVA
字號:
/*********************************************************************
*
*      Copyright (C) 2001 Andrew Khan
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
***************************************************************************/

package jxl.write.biff;

import common.Assert;
import common.Logger;

import jxl.CellType;
import jxl.LabelCell;
import jxl.biff.FormattingRecords;
import jxl.biff.IntegerHelper;
import jxl.biff.Type;
import jxl.format.CellFormat;

/**
 * A label record, used for writing out string
 */
public abstract class LabelRecord extends CellValue
{
  /**
   * The logger
   */
  private static Logger logger = Logger.getLogger(LabelRecord.class);  

  /**
   * The string
   */
  private String contents;

  /**
   * A handle to the shared strings used within this workbook
   */
  private SharedStrings sharedStrings;

  /**
   * The index of the string in the shared string table
   */
  private int index;

  /**
   * Constructor used when creating a label from the user API
   * 
   * @param c the column
   * @param cont the contents
   * @param r the row
   */
  protected LabelRecord(int c, int r, String cont)
  {
    super(Type.LABELSST, c, r);
    contents = cont;
    if (contents == null)
    {
      contents="";
    }
  }

  /**
   * Constructor used when creating a label from the API.  This is 
   * overloaded to allow formatting information to be passed to the record
   * 
   * @param c the column
   * @param cont the contents
   * @param r the row
   * @param st the format applied to the cell
   */
  protected LabelRecord(int c, int r, String cont, CellFormat st)
  {
    super(Type.LABELSST, c, r, st);
    contents = cont;

    if (contents == null)
    {
      contents="";
    }
  }


  /**
   * Copy constructor
   * 
   * @param c the column
   * @param r the row
   * @param nr the record to copy
   */
  protected LabelRecord(int c, int r, LabelRecord lr)
  {
    super(Type.LABELSST, c, r, lr);
    contents = lr.contents;
  }

  /**
   * Constructor used when copying a label from a read only
   * spreadsheet
   * 
   * @param lc the label to copy
   */
  protected LabelRecord(LabelCell lc)
  {
    super(Type.LABELSST, lc);
    contents = lc.getString();
    if (contents == null)
    {
      contents = "";
    }
  }

  /**
   * Returns the content type of this cell
   * 
   * @return the content type for this cell
   */
  public CellType getType()
  {
    return CellType.LABEL;
  }

  /**
   * Gets the binary data for output to file
   * 
   * @return the binary data
   */
  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;
  }

  /**
   * Quick and dirty function to return the contents of this cell as a string.
   * For more complex manipulation of the contents, it is necessary to cast
   * this interface to correct subinterface
   * 
   * @return the contents of this cell as a string
   */
  public String getContents()
  {
    return contents;
  }

  /**
   * Gets the label for this cell.  The value returned will be the same
   * as for the getContents method in the base class
   * 
   * @return the cell contents
   */
  public String getString()
  {
    return contents;
  }

  /**
   * Sets the string contents of this cell
   * 
   * @param s the new string contents
   */
  protected void setString(String s)
  {
    if (s == null)
    {
      s = "";
    }

    contents = s;

    // Don't bother doing anything if this cell has not been referenced
    // yet - everything will be set up in due course
    if (!isReferenced())
    {
      return;
    }

    Assert.verify(sharedStrings != null);

    // Initalize the shared string index
    index = sharedStrings.getIndex(contents);

    // Use the sharedStrings reference instead of this object's own
    // handle - this means that the bespoke copy becomes eligible for
    // garbage collection
    contents = sharedStrings.get(index);
  }

  /**
   * Overrides the method in the base class in order to add the string
   * content to the shared string table, and to store its shared string
   * index
   *
   * @param fr the formatting records
   * @param ss the shared strings used within the workbook
   * @param s
   */
  void setCellDetails(FormattingRecords fr, SharedStrings ss, 
                      WritableSheetImpl s)
  {
    super.setCellDetails(fr, ss, s);

    sharedStrings = ss;

    index = sharedStrings.getIndex(contents);

    // Use the sharedStrings reference instead of this object's own
    // handle - this means that the bespoke copy becomes eligible for
    // garbage collection
    contents = sharedStrings.get(index);
  }

}



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品综合在线视频| 亚洲夂夂婷婷色拍ww47| 日韩精品在线网站| 91精品国产综合久久久蜜臀图片| 欧美做爰猛烈大尺度电影无法无天| 成人毛片在线观看| 99精品视频在线观看免费| av中文字幕不卡| 在线视频一区二区三区| 欧美午夜精品免费| 欧美日韩电影一区| 日韩欧美国产系列| 日本一区二区在线不卡| 成人欧美一区二区三区在线播放| 1024成人网| 日日摸夜夜添夜夜添精品视频| 免费欧美在线视频| 成人性生交大片| 在线观看视频一区二区| 日韩精品自拍偷拍| 中文字幕亚洲区| 天使萌一区二区三区免费观看| 久久成人久久鬼色| www.欧美.com| 日韩免费观看高清完整版在线观看| 国产亚洲综合av| 亚洲一区二区影院| 久久精品免费观看| 91丨九色丨蝌蚪丨老版| 欧美一区二区三区在| 亚洲国产精品国自产拍av| 五月天中文字幕一区二区| 国产一二精品视频| 欧美性xxxxxxxx| 国产欧美精品日韩区二区麻豆天美| 亚洲精品欧美专区| 国产精品99久久久久久久女警| 精品视频全国免费看| 国产农村妇女毛片精品久久麻豆| 首页综合国产亚洲丝袜| 成人精品视频.| 精品欧美乱码久久久久久| 国产一区二区三区在线观看精品 | 91官网在线免费观看| 91精品国产综合久久精品| ㊣最新国产の精品bt伙计久久| 麻豆精品国产传媒mv男同 | 亚洲福利视频一区二区| 国产自产v一区二区三区c| 日本丶国产丶欧美色综合| 亚洲精品一区在线观看| 日日夜夜精品免费视频| 欧美在线短视频| 国产精品久久久久影院色老大| 精品一区二区三区免费视频| 欧美亚洲国产一区二区三区va| 国产欧美日韩三区| 国产在线不卡视频| 久久亚洲精华国产精华液 | 欧洲国产伦久久久久久久| 久久综合99re88久久爱| 热久久一区二区| 欧美中文字幕亚洲一区二区va在线| 国产欧美视频一区二区三区| 亚洲动漫第一页| 成人黄色777网| 国产午夜精品一区二区| 国产在线播放一区三区四| 日韩欧美电影一二三| 美女网站色91| 91精品国产一区二区三区香蕉 | 欧美视频在线不卡| 亚洲精品日产精品乱码不卡| 91蜜桃在线免费视频| 中文字幕中文字幕一区| 日本少妇一区二区| 欧美妇女性影城| 久久激情五月激情| 日韩精品一区二区三区中文精品| 亚洲18色成人| 91精品国产综合久久国产大片| 午夜在线成人av| 日韩欧美你懂的| 国产一区啦啦啦在线观看| 国产色产综合产在线视频| 成人性生交大片免费看视频在线| 一区免费观看视频| 欧美日韩一级二级| 水野朝阳av一区二区三区| 日韩精品一区二区三区老鸭窝| 国产在线视频一区二区三区| 国产情人综合久久777777| 色综合久久久久网| 亚洲成人av一区| 26uuu亚洲综合色| 99综合电影在线视频| 午夜视频在线观看一区二区三区| 日韩视频一区在线观看| 国产激情偷乱视频一区二区三区| 国产日本欧美一区二区| 日本二三区不卡| 国产在线不卡一区| 亚洲男人天堂av网| 欧美日韩一区精品| 国产精品乡下勾搭老头1| 亚洲一区二区三区四区五区中文| 欧美精品777| 国产精品996| 亚洲福利视频一区二区| 精品久久一区二区| 91免费看片在线观看| 亚洲国产精品久久不卡毛片 | 国产美女视频91| 亚洲免费av观看| 久久婷婷久久一区二区三区| 91美女在线看| 精品在线播放午夜| 一区二区三区中文在线| 久久精品视频一区二区| 欧美精品日韩一本| 99这里只有精品| 国产成人一区在线| 一区二区三区成人| 国产精品第四页| 欧美第一区第二区| 欧美日韩一本到| 91在线看国产| 成人短视频下载| 国产一区二区精品久久99| 天堂在线一区二区| 亚洲综合色噜噜狠狠| 欧美激情中文字幕| 欧美不卡一区二区| 欧美军同video69gay| 在线视频中文字幕一区二区| 成人免费观看视频| 粉嫩一区二区三区性色av| 国产在线不卡一卡二卡三卡四卡| 午夜av电影一区| 亚洲电影欧美电影有声小说| 亚洲精品写真福利| 亚洲精品久久久蜜桃| 亚洲女厕所小便bbb| 国产精品国产三级国产aⅴ原创| 日韩女优毛片在线| 日韩亚洲欧美综合| 日韩丝袜情趣美女图片| 欧美xxxxx裸体时装秀| 日韩一区二区在线看| 欧美日韩国产片| 顶级嫩模精品视频在线看| 久久电影网电视剧免费观看| 韩国女主播成人在线| 国产一区二区三区免费| 高清不卡一区二区在线| 久久不见久久见免费视频7| 极品少妇一区二区三区精品视频| 极品少妇一区二区| 国产一区亚洲一区| 波多野结衣在线一区| 一本色道久久加勒比精品| 欧美午夜不卡在线观看免费| 欧美艳星brazzers| 91精品综合久久久久久| 精品国产乱子伦一区| 国产精品久久久久久妇女6080| 国产精品不卡在线观看| 亚洲国产精品久久艾草纯爱| 麻豆精品久久精品色综合| 国产精品一区二区果冻传媒| 9i在线看片成人免费| 欧美日韩大陆在线| 国产日韩三级在线| 亚洲狠狠丁香婷婷综合久久久| 日韩av中文在线观看| 国产成人aaa| 欧美色视频在线| 久久精品人人做人人爽人人| 亚洲色图丝袜美腿| 免费成人深夜小野草| 懂色一区二区三区免费观看| 99久久婷婷国产综合精品电影| 欧美视频第二页| 久久久精品人体av艺术| 亚洲一二三四久久| 国产精品99久久久久久宅男| 在线中文字幕一区| 精品国产一区久久| 一区二区三区精品视频| 国产一区二区三区在线观看免费| 91精品福利在线| 久久久久久久久蜜桃| 天堂精品中文字幕在线| 99久久精品99国产精品| 精品国产3级a| 亚洲成av人片一区二区梦乃| 99久久99久久精品国产片果冻| 美脚の诱脚舐め脚责91 | 97久久超碰国产精品| 777色狠狠一区二区三区|