Java Doc for HSSFRow.java in  » Collaboration » poi-3.0.2-beta2 » org » apache » poi » hssf » usermodel » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Collaboration » poi 3.0.2 beta2 » org.apache.poi.hssf.usermodel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.poi.hssf.usermodel.HSSFRow

HSSFRow
public class HSSFRow implements Comparable(Code)
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)


Field Summary
final public static  intINITIAL_CAPACITY
    

Constructor Summary
protected  HSSFRow()
    
protected  HSSFRow(Workbook book, Sheet sheet, int rowNum)
     Creates new HSSFRow from scratch.
protected  HSSFRow(Workbook book, Sheet sheet, RowRecord record)
     Creates an HSSFRow from a low level RowRecord object.

Method Summary
public  IteratorcellIterator()
     cell iterator of the physically defined cells.
public  intcompareTo(Object obj)
    
public  HSSFCellcreateCell(short column)
     Use this to create new cells within the row and return it.

The cell that is returned is a CELL_TYPE_BLANK.

public  HSSFCellcreateCell(short column, int type)
     Use this to create new cells within the row and return it.

The cell that is returned is a CELL_TYPE_BLANK.

protected  HSSFCellcreateCellFromRecord(CellValueRecordInterface cell)
     create a high level HSSFCell object from an existing low level record.
public  booleanequals(Object obj)
    
public  HSSFCellgetCell(short cellnum)
     get the hssfcell representing a given column (logical cell) 0-based.
public  shortgetFirstCellNum()
     get the number of the first cell contained in this row.
public  shortgetHeight()
    
public  floatgetHeightInPoints()
    
public  shortgetLastCellNum()
     gets the number of the last cell contained in this row PLUS ONE.
public  intgetPhysicalNumberOfCells()
     gets the number of defined cells (NOT number of cells in the actual row!).
public  intgetRowNum()
    
protected  RowRecordgetRowRecord()
    
public  booleangetZeroHeight()
    
public  voidremoveCell(HSSFCell cell)
     remove the HSSFCell from this row.
public  voidsetHeight(short height)
     set the row's height or set to ff (-1) for undefined/default-height.
public  voidsetHeightInPoints(float height)
     set the row's height in points.
public  voidsetRowNum(int rowNum)
     set the row number of this row.
public  voidsetZeroHeight(boolean zHeight)
    

Field Detail
INITIAL_CAPACITY
final public static int INITIAL_CAPACITY(Code)




Constructor Detail
HSSFRow
protected HSSFRow()(Code)



HSSFRow
protected HSSFRow(Workbook book, Sheet sheet, int rowNum)(Code)
Creates new HSSFRow from scratch. Only HSSFSheet should do this.
Parameters:
  book - low-level Workbook object containing the sheet that contains this row
Parameters:
  sheet - low-level Sheet object that contains this Row
Parameters:
  rowNum - the row number of this row (0 based)
See Also:   org.apache.poi.hssf.usermodel.HSSFSheet.createRow(int)



HSSFRow
protected HSSFRow(Workbook book, Sheet sheet, RowRecord record)(Code)
Creates an HSSFRow from a low level RowRecord object. Only HSSFSheet should do this. HSSFSheet uses this when an existing file is read in.
Parameters:
  book - low-level Workbook object containing the sheet that contains this row
Parameters:
  sheet - low-level Sheet object that contains this Row
Parameters:
  record - the low level api object this row should represent
See Also:   org.apache.poi.hssf.usermodel.HSSFSheet.createRow(int)




Method Detail
cellIterator
public Iterator cellIterator()(Code)
cell iterator of the physically defined cells. Note element 4 mayactually be row cell depending on how many are defined!



compareTo
public int compareTo(Object obj)(Code)



createCell
public HSSFCell createCell(short column)(Code)
Use this to create new cells within the row and return it.

The cell that is returned is a CELL_TYPE_BLANK. The type can be changed either through calling setCellValue or setCellType.
Parameters:
  column - - the column number this cell represents HSSFCell a high level representation of the created cell.




createCell
public HSSFCell createCell(short column, int type)(Code)
Use this to create new cells within the row and return it.

The cell that is returned is a CELL_TYPE_BLANK. The type can be changed either through calling setCellValue or setCellType.
Parameters:
  column - - the column number this cell represents HSSFCell a high level representation of the created cell.




createCellFromRecord
protected HSSFCell createCellFromRecord(CellValueRecordInterface cell)(Code)
create a high level HSSFCell object from an existing low level record. Should only be called from HSSFSheet or HSSFRow itself.
Parameters:
  cell - low level cell to create the high level representation from HSSFCell representing the low level record passed in



equals
public boolean equals(Object obj)(Code)



getCell
public HSSFCell getCell(short cellnum)(Code)
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.
Parameters:
  cellnum - 0 based column number HSSFCell representing that column or null if undefined.



getFirstCellNum
public short getFirstCellNum()(Code)
get the number of the first cell contained in this row. short representing the first logical cell in the row, or -1 if the row does not contain any cells.



getHeight
public short getHeight()(Code)
get the row's height or ff (-1) for undefined/default-height in twips (1/20th of a point) rowheight or 0xff for undefined (use sheet default)



getHeightInPoints
public float getHeightInPoints()(Code)
get the row's height or ff (-1) for undefined/default-height in points (20*getHeight()) rowheight or 0xff for undefined (use sheet default)



getLastCellNum
public short getLastCellNum()(Code)
gets the number of the last cell contained in this row PLUS ONE. short representing the last logical cell in the row PLUS ONE, or -1 if the row does not contain any cells.



getPhysicalNumberOfCells
public int getPhysicalNumberOfCells()(Code)
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. int representing the number of defined cells in the row.



getRowNum
public int getRowNum()(Code)
get row number this row represents the row number (0 based)



getRowRecord
protected RowRecord getRowRecord()(Code)
get the lowlevel RowRecord represented by this object - should only be called by other parts of the high level API RowRecord this row represents



getZeroHeight
public boolean getZeroHeight()(Code)
get whether or not to display this row with 0 height - zHeight height is zero or not.



removeCell
public void removeCell(HSSFCell cell)(Code)
remove the HSSFCell from this row.
Parameters:
  cell - to remove



setHeight
public void setHeight(short height)(Code)
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.
Parameters:
  height - rowheight or 0xff for undefined (use sheet default)



setHeightInPoints
public void setHeightInPoints(float height)(Code)
set the row's height in points.
Parameters:
  height - row height in points



setRowNum
public void setRowNum(int rowNum)(Code)
set the row number of this row.
Parameters:
  rowNum - the row number (0-based)
throws:
  IndexOutOfBoundsException - if the row number is not within the range 0-65535.



setZeroHeight
public void setZeroHeight(boolean zHeight)(Code)
set whether or not to display this row with 0 height
Parameters:
  zHeight - height is zero or not.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.