Java Doc for ExcelExportHelper.java in  » XML-UI » xui32 » com » xoetrope » io » 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 » XML UI » xui32 » com.xoetrope.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.xoetrope.io.XExportHelper
      com.xoetrope.io.ExcelExportHelper

ExcelExportHelper
public class ExcelExportHelper extends XExportHelper (Code)
Export an Excel worksheet to a new workbook.

Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Xoetrope.

$Revision: 1.4 $



Field Summary
protected  WritableCellFormatbodyFormat
    
protected  intcolumnIndex
    
protected  booleanisInGroup
    
protected  booleanisInRecord
    
protected  booleanisInTable
    
protected  booleanisInTableHeader
    
protected  intrecordIndex
    
protected  WritableCellFormatsectionFormat
    
protected  WritableSheetsheetOut
    
protected  WritableCellFormatsubTitleFormat
    
protected  WritableCellFormattitleFormat
    
protected  WritableWorkbookworkbookOut
    

Constructor Summary
public  ExcelExportHelper(String fileName)
     Setup an exporter for excel sheets.

Method Summary
protected  voidaddCell(int row, int col, String value, WritableCellFormat cellFormat)
     Adds a cell to an Excel sheet.
public  voidclose()
    
public  voidcloseElement()
    
public  voidendDocument()
    
public  voidendElement()
    
public  voidendGroup()
    
public  voidendHeader()
    
public  voidendRecord()
    
public  voidendTable()
    
public  voidmatchElement()
    
public  voidstartDocument()
    
public  voidstartElement(String elementName)
    
public  voidstartGroup()
    
public  voidstartHeader()
    
public  voidstartRecord()
    
public  voidstartTable()
    
public  voidwriteBlankLine()
    
public  voidwriteElement(String elementName, String name, String value)
    
public  voidwriteElement(String elementName, String[] names, String[] values)
    
public  voidwriteField(String name, String value)
    
public  voidwriteSectionEnd()
    
public  voidwriteSectionTitle(String text)
    

Field Detail
bodyFormat
protected WritableCellFormat bodyFormat(Code)
The excel format of the body fields



columnIndex
protected int columnIndex(Code)
The current colum or field index



isInGroup
protected boolean isInGroup(Code)
Flag indicating if the exporter is in the process of exporting grouped elements



isInRecord
protected boolean isInRecord(Code)
Flag indicating if the exporter is in the process of exporting a table record



isInTable
protected boolean isInTable(Code)
Flag indicating if the exporter is in the process of exporting a table



isInTableHeader
protected boolean isInTableHeader(Code)
Flag indicating if the exporter is in the process of exporting a table header



recordIndex
protected int recordIndex(Code)
The current record or row index



sectionFormat
protected WritableCellFormat sectionFormat(Code)
The excel format of the section divider fields



sheetOut
protected WritableSheet sheetOut(Code)
The excel sheet being output



subTitleFormat
protected WritableCellFormat subTitleFormat(Code)
The excel format of the subtitle fields



titleFormat
protected WritableCellFormat titleFormat(Code)
The excel format of the title fields



workbookOut
protected WritableWorkbook workbookOut(Code)
The excel workbook being output




Constructor Detail
ExcelExportHelper
public ExcelExportHelper(String fileName) throws IOException(Code)
Setup an exporter for excel sheets.
Parameters:
  fileName - The name of the file to export
throws:
  java.io.IOException - thrown if the stream is not ready or if it is in an invalid state




Method Detail
addCell
protected void addCell(int row, int col, String value, WritableCellFormat cellFormat)(Code)
Adds a cell to an Excel sheet. Zero based indexing is used.
Parameters:
  row - the row in the sheet
Parameters:
  col - the column in the sheet
Parameters:
  value - the value to write to the excel sheet's cell
Parameters:
  cellFormat - the cell format



close
public void close() throws IOException(Code)
Flushes and closes any existing stream
throws:
  java.io.IOException - thrown if the stream is not ready or if it is in an invalid state



closeElement
public void closeElement() throws IOException(Code)
Write the closing of an element
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



endDocument
public void endDocument() throws IOException(Code)
Write the ending of a document
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



endElement
public void endElement() throws IOException(Code)
Write the end of an element opening
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



endGroup
public void endGroup() throws IOException(Code)
Write the ending of a table group of records
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



endHeader
public void endHeader() throws IOException(Code)
Write the ending of a table record
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



endRecord
public void endRecord() throws IOException(Code)
Write the ending of a table record
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



endTable
public void endTable() throws IOException(Code)
Write the ending of a table
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



matchElement
public void matchElement() throws IOException(Code)
Write the matching ending element
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



startDocument
public void startDocument() throws IOException(Code)
Write the opening of a document
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



startElement
public void startElement(String elementName) throws IOException(Code)
Write the begining/opening of an element
Parameters:
  elementName - the element name
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



startGroup
public void startGroup() throws IOException(Code)
Write the opening of a table group of records
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



startHeader
public void startHeader() throws IOException(Code)
Write the opening of a table record
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



startRecord
public void startRecord() throws IOException(Code)
Write the opening of a table record
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



startTable
public void startTable() throws IOException(Code)
Write the opening of a table
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



writeBlankLine
public void writeBlankLine() throws IOException(Code)
Output a blank line
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



writeElement
public void writeElement(String elementName, String name, String value) throws IOException(Code)
Write the text and terminate with a line feed, new line as appropriate
Parameters:
  elementName - the element name
Parameters:
  name - the field or attribute name
Parameters:
  value - the field or attribute value
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



writeElement
public void writeElement(String elementName, String[] names, String[] values) throws IOException(Code)
Write the text and terminate with a line feed, new line as appropriate
Parameters:
  elementName - the element name
Parameters:
  names - the field or attribute names
Parameters:
  values - the field or attribute value
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



writeField
public void writeField(String name, String value) throws IOException(Code)
Write a field
Parameters:
  name - the field name
Parameters:
  value - the field value
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



writeSectionEnd
public void writeSectionEnd() throws IOException(Code)
Write the end of a section
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



writeSectionTitle
public void writeSectionTitle(String text) throws IOException(Code)
Write the section title and terminate with a line feed, new line as appropriate
Parameters:
  text - the text to output
throws:
  IOException - thrown if the stream is not ready or if it is in an invalid state



Fields inherited from com.xoetrope.io.XExportHelper
final public static String ALT_TABLE_BOLD_STYLE(Code)(Java Doc)
final public static String ALT_TABLE_STYLE(Code)(Java Doc)
final public static String BODY_STYLE(Code)(Java Doc)
final public static String CAPTION_STYLE(Code)(Java Doc)
final public static String FOOTER_STYLE(Code)(Java Doc)
final public static String HEADER_STYLE(Code)(Java Doc)
final public static String SECTION_TITLE_STYLE(Code)(Java Doc)
final public static String SUB_SECTION_STYLE(Code)(Java Doc)
final public static String SUB_TITLE_STYLE(Code)(Java Doc)
final public static String TABLE_BOLD_STYLE(Code)(Java Doc)
final public static String TABLE_HEADER_STYLE(Code)(Java Doc)
final public static String TABLE_STYLE(Code)(Java Doc)
final public static String TITLE_STYLE(Code)(Java Doc)
protected String beginElement(Code)(Java Doc)
protected XProject currentProject(Code)(Java Doc)
protected String defaultExtension(Code)(Java Doc)
protected String elementClosure(Code)(Java Doc)
protected Stack elementNames(Code)(Java Doc)
protected static String emptyBytes(Code)(Java Doc)
protected String endElement(Code)(Java Doc)
protected XComponentFactory factory(Code)(Java Doc)
protected String fieldNameSeparator(Code)(Java Doc)
protected String fieldSeparator(Code)(Java Doc)
protected boolean firstField(Code)(Java Doc)
protected Hashtable hints(Code)(Java Doc)
protected String lastElementName(Code)(Java Doc)
protected String leftDelimiter(Code)(Java Doc)
protected String lineFeed(Code)(Java Doc)
protected boolean outputElementNames(Code)(Java Doc)
protected boolean outputFieldNames(Code)(Java Doc)
protected String rightDelimiter(Code)(Java Doc)
protected Hashtable styles(Code)(Java Doc)
protected Writer writer(Code)(Java Doc)

Methods inherited from com.xoetrope.io.XExportHelper
public void addStyle(String sectionName, String styleName)(Code)(Java Doc)
public void close() throws IOException(Code)(Java Doc)
public void closeElement() throws IOException(Code)(Java Doc)
public void endDocument() throws IOException(Code)(Java Doc)
public void endElement() throws IOException(Code)(Java Doc)
public void endElement(String styleName) throws IOException(Code)(Java Doc)
public void endHeader() throws IOException(Code)(Java Doc)
public void endRecord() throws IOException(Code)(Java Doc)
public void endTable() throws IOException(Code)(Java Doc)
public void lostOwnership(Clipboard aClipboard, Transferable aContents)(Code)(Java Doc)
public void matchElement() throws IOException(Code)(Java Doc)
protected String prepareFieldName(String name)(Code)(Java Doc)
public void removeHint(String name)(Code)(Java Doc)
public void setClipboardContents(String aString)(Code)(Java Doc)
public void setComponentFactory(XComponentFactory cf)(Code)(Java Doc)
public void setFieldNameSeparator(String separatorStr)(Code)(Java Doc)
public void setFieldSeparator(String separatorStr)(Code)(Java Doc)
public void setHint(String name, String value)(Code)(Java Doc)
public void setLeftDelimiter(String delimStr)(Code)(Java Doc)
public void setOutputElementNames(boolean doOutput)(Code)(Java Doc)
public void setOutputFieldNames(boolean doOutput)(Code)(Java Doc)
public void setOutputWriter(Writer w)(Code)(Java Doc)
public void setRightDelimiter(String delimStr)(Code)(Java Doc)
public void setUseWindowsLineEnd(boolean use)(Code)(Java Doc)
public Writer setupWriter(XPage owner, String fileName)(Code)(Java Doc)
public void startDocument() throws IOException(Code)(Java Doc)
public void startElement(String elementName) throws IOException(Code)(Java Doc)
public void startElement(String elementName, String styleName) throws IOException(Code)(Java Doc)
public void startHeader() throws IOException(Code)(Java Doc)
public void startRecord() throws IOException(Code)(Java Doc)
public void startTable() throws IOException(Code)(Java Doc)
public void writeBlankLine() throws IOException(Code)(Java Doc)
public void writeBreak() throws IOException(Code)(Java Doc)
public void writeElement(String elementName, String name, String value) throws IOException(Code)(Java Doc)
public void writeElement(String elementName, String[] names, String[] values) throws IOException(Code)(Java Doc)
public void writeField(String name, String value) throws IOException(Code)(Java Doc)
public void writeHorizontalLine() throws IOException(Code)(Java Doc)
public void writeImage(String imageName, String altText) throws IOException(Code)(Java Doc)
public void writeLine(String text) throws IOException(Code)(Java Doc)
public void writeSectionEnd() throws IOException(Code)(Java Doc)
public void writeSectionTitle(String text) throws IOException(Code)(Java Doc)
public void writeSectionTitle(String text, String styleName) throws IOException(Code)(Java Doc)
public void writeText(String name, String value, String styleName) throws IOException(Code)(Java Doc)

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.