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

📄 record.java

📁 JAVA EXCEL操作API
💻 JAVA
字号:
/*
 * Created on 2004-3-22
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package com.zosatapo.xls.core;

import java.util.Vector;

/**
 * @author Administrator
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class Record
{
  private Schema schema;
  private int rowNum;
  
  private Vector cells;
  
  public  Record(Schema schema_,int rowNum_)
  {
    this(schema_,rowNum_,null);
  }
  
  public  Record(Schema schema_,int rowNum_,Vector cells_)
  {
    this.schema=schema_;
    this.rowNum=rowNum_;
    this.cells=cells_;
    
    if(this.cells==null)
    {
      cells=new Vector();
    }
  }
  
  public void addCell(Cell cell)
  {
    cells.addElement(cell);
  }
  
  public Cell getCell(int index)
  {
    return (Cell)cells.elementAt(index);
  }
  
  public int getRowNum()
  {
    return rowNum;
  }
  
  public int getCellCount()
  {
    return cells.size();
  }
  
  public Schema getSchema()
  {
    return schema;
  }
  
  public void setRowIndex(int rowIndex)
  {
    this.rowNum=rowIndex;
  }
  
  public int getRowIndex()
  {
    return this.rowNum;
  }
  
  public void clearCells()
  {
    cells.clear();
  }
  
  public String toString()
  {
    return "[Record] row="+rowNum+",cells="+cells;
  }
}

⌨️ 快捷键说明

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