|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.workbook.JWorkbook
Represents a workbook so that it can be exported to (for now) the Gnumeric XML file format. This class can be used to export data to spreadsheets from Java. The file format can, of course, be read directly into Gnumeric. But there is also a plan to write an importer for Excel (unless there already is one).
Note that this workbook does not have a calculation engine, and I have no plans to add one at this point (too much work!). Maybe one day it will happen, it would be nice...
Field Summary | |
protected int |
geometryHeight
The height of the workbook when displayed in Gnumeric. |
protected int |
geometryWidth
The width of the workbook when displayed in Gnumeric. |
protected java.lang.String |
name
The workbook name. |
protected java.util.List |
names
Names defined in the workbook - not currently supported. |
protected boolean |
showHorizontalScrollbar
Visibility of the horizontal scroll bar. |
protected boolean |
showNotebookTabs
Visibility of the notebook tabs. |
protected boolean |
showVerticalScrollbar
Visibility of the vertical scroll bar. |
protected Summary |
summary
A summary of the workbook. |
static java.lang.String |
VERSION
Version identification. |
protected java.util.List |
worksheets
The worksheets contained in this workbook. |
Constructor Summary | |
JWorkbook()
Default constructor: creates a new empty workbook. |
|
JWorkbook(java.lang.String name,
int sheets)
Standard constructor. |
Method Summary | |
Worksheet |
add(java.lang.String name)
Adds a worksheet with the specified name. |
int |
getGeometryHeight()
Returns the display width for the workbook. |
int |
getGeometryWidth()
Returns the display width for the workbook. |
java.lang.String |
getName()
Returns the name of the workbook. |
Summary |
getSummary()
Returns the summary (author, company etc.) for the workbook. |
java.util.Iterator |
getWorksheetsIterator()
Returns an iterator that gives access to all the worksheets in the workbook. |
boolean |
isHorizontalScrollBarVisible()
Returns the visibility of the horizontal scroll bar. |
boolean |
isNotebookTabsVisible()
Returns the visibility of the notebook tabs. |
boolean |
isVerticalScrollBarVisible()
Returns the visibility of the vertical scroll bar. |
static void |
main(java.lang.String[] args)
Test program to demonstrate the JWorkbook. |
void |
setAuthor(java.lang.String name)
Sets the author attribute. |
void |
setName(java.lang.String name)
Sets the name of the workbook. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String VERSION
protected java.lang.String name
protected boolean showHorizontalScrollbar
protected boolean showVerticalScrollbar
protected boolean showNotebookTabs
protected Summary summary
protected java.util.List names
protected int geometryWidth
protected int geometryHeight
protected java.util.List worksheets
Constructor Detail |
public JWorkbook()
public JWorkbook(java.lang.String name, int sheets)
name
- The workbook name.sheets
- The number of worksheets in the workbook (initially).Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name.public Summary getSummary()
public boolean isHorizontalScrollBarVisible()
public boolean isVerticalScrollBarVisible()
public boolean isNotebookTabsVisible()
public int getGeometryWidth()
public int getGeometryHeight()
public Worksheet add(java.lang.String name)
name
- The worksheet name.
public java.util.Iterator getWorksheetsIterator()
public void setAuthor(java.lang.String name)
name
- the name of the author.public static void main(java.lang.String[] args)
args
- ignored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |