Java Doc for Row.java in  » PDF » pdf-itext » com » lowagie » text » 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 » PDF » pdf itext » com.lowagie.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.Row

Row
public class Row implements Element(Code)
A Row is part of a Table and contains some Cells.

All Rows are constructed by a Table-object. You don't have to construct any Row yourself. In fact you can't construct a Row outside the package.

Since a Cell can span several rows and/or columns a row can contain reserved space without any content.
See Also:   Element
See Also:   Cell
See Also:   Table



Field Summary
final public static  intCELL
    
final public static  intNULL
    
final public static  intTABLE
    
protected  Object[]cells
     This is the array of Objects (Cell or Table).
protected  intcolumns
     This is the number of columns in the Row.
protected  intcurrentColumn
     This is a valid position the Row.
protected  inthorizontalAlignment
     This is the vertical alignment.
protected  boolean[]reserved
     This is the array that keeps track of reserved cells.

Constructor Summary
protected  Row(int columns)
     Constructs a Row with a certain number of columns.

Method Summary
 intaddElement(Object element)
     Adds a Cell to the Row.
 intaddElement(Object element, int column)
     Adds an element to the Row at the position given.
Parameters:
  element - the element to add.
 voiddeleteColumn(int column)
     Returns a Row that is a copy of this Row in which a certain column has been deleted.
public  ObjectgetCell(int column)
     Gets a Cell or Table from a certain column.
Parameters:
  column - the column the Cell/Table is in.
public  ArrayListgetChunks()
     Gets all the chunks in this element.
public  intgetColumns()
     Gets the number of columns.
 intgetElementID(int column)
     Returns the type-id of the element in a Row.
public  intgetHorizontalAlignment()
     Gets the horizontal alignment.
 intgetObjectID(Object element)
     Returns the type-id of an Object.
public  booleanisEmpty()
     Checks if the row is empty.
 booleanisReserved(int column)
     Returns true/false when this position in the Row has been reserved, either filled or through a colspan of an Element.
Parameters:
  column - the column.
public  booleanprocess(ElementListener listener)
     Processes the element by adding it (or the different parts) to a ElementListener.
 booleanreserve(int column)
     Reserves a Cell in the Row.
Parameters:
  column - the column that has to be reserved.
 booleanreserve(int column, int size)
     Reserves a Cell in the Row.
 voidsetElement(Object aElement, int column)
     Puts Cell to the Row at the position given, doesn't reserve colspan.
public  voidsetHorizontalAlignment(int value)
     Sets the horizontal alignment.
public  inttype()
     Gets the type of the text element.

Field Detail
CELL
final public static int CELL(Code)
id of the Cell element in a Row



NULL
final public static int NULL(Code)
id of a null element in a Row



TABLE
final public static int TABLE(Code)
id of the Table element in a Row



cells
protected Object[] cells(Code)
This is the array of Objects (Cell or Table).



columns
protected int columns(Code)
This is the number of columns in the Row.



currentColumn
protected int currentColumn(Code)
This is a valid position the Row.



horizontalAlignment
protected int horizontalAlignment(Code)
This is the vertical alignment.



reserved
protected boolean[] reserved(Code)
This is the array that keeps track of reserved cells.




Constructor Detail
Row
protected Row(int columns)(Code)
Constructs a Row with a certain number of columns.
Parameters:
  columns - a number of columns




Method Detail
addElement
int addElement(Object element)(Code)
Adds a Cell to the Row.
Parameters:
  element - the element to add (currently only Cells and Tables supported) the column position the Cell was added,or -1 if the element couldn't be added.



addElement
int addElement(Object element, int column)(Code)
Adds an element to the Row at the position given.
Parameters:
  element - the element to add. (currently only Cells and Tables supported
Parameters:
  column - the position where to add the cell. the column position the Cell was added,or -1 if the Cell couldn't be added.



deleteColumn
void deleteColumn(int column)(Code)
Returns a Row that is a copy of this Row in which a certain column has been deleted.
Parameters:
  column - the number of the column to delete



getCell
public Object getCell(int column)(Code)
Gets a Cell or Table from a certain column.
Parameters:
  column - the column the Cell/Table is in. the Cell,Table or Object if the column wasreserved or null if empty.



getChunks
public ArrayList getChunks()(Code)
Gets all the chunks in this element. an ArrayList



getColumns
public int getColumns()(Code)
Gets the number of columns. a value



getElementID
int getElementID(int column)(Code)
Returns the type-id of the element in a Row.
Parameters:
  column - the column of which you'd like to know the type the type-id of the element in the row



getHorizontalAlignment
public int getHorizontalAlignment()(Code)
Gets the horizontal alignment. a value



getObjectID
int getObjectID(Object element)(Code)
Returns the type-id of an Object.
Parameters:
  element - the object of which you'd like to know the type-id, -1 if invalid the type-id of an object



isEmpty
public boolean isEmpty()(Code)
Checks if the row is empty. true if none of the columns is reserved.



isReserved
boolean isReserved(int column)(Code)
Returns true/false when this position in the Row has been reserved, either filled or through a colspan of an Element.
Parameters:
  column - the column. true if the column was reserved, false if not.



process
public boolean process(ElementListener listener)(Code)
Processes the element by adding it (or the different parts) to a ElementListener.
Parameters:
  listener - an ElementListener true if the element was processed successfully



reserve
boolean reserve(int column)(Code)
Reserves a Cell in the Row.
Parameters:
  column - the column that has to be reserved. true if the column was reserved, false if not.



reserve
boolean reserve(int column, int size)(Code)
Reserves a Cell in the Row.
Parameters:
  column - the column that has to be reserved.
Parameters:
  size - the number of columns true if the column was reserved, false if not.



setElement
void setElement(Object aElement, int column)(Code)
Puts Cell to the Row at the position given, doesn't reserve colspan.
Parameters:
  aElement - the cell to add.
Parameters:
  column - the position where to add the cell.



setHorizontalAlignment
public void setHorizontalAlignment(int value)(Code)
Sets the horizontal alignment.
Parameters:
  value - the new value



type
public int type()(Code)
Gets the type of the text element. a type



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.