xelem.3.0

nl.fountain.xelem
Class GIO

java.lang.Object
  extended by nl.fountain.xelem.GIO

public class GIO
extends Object

Gathers global information about a workbook during assembly.

A XLWorkbook is a rather loosely organized set of java class instances. In order to not only make valid xml, but to also assure that the produced xml will open in Excel, this class collects global information about a workbook during assembly. The Workbook uses the information to set additional elements or element- attributes when producing a Document with the method createDocument.


Constructor Summary
GIO()
           
 
Method Summary
 void addStyleID(String styleID)
          Adds the styleID to the set of styleID's of this GIO.
 int getSelectedSheetsCount()
          Gets the number of selected sheets.
 Set<String> getStyleIDSet()
          Gets the set of styleID's previously added with addStyleID(String).
 void increaseSelectedSheets()
          Increases the number of selected sheets by one.
 boolean isPrintingComments()
          Specifies whether the workbook's createDocument -method will print comments.
 void setPrintComments(boolean print)
          Sets whether the workbook's createDocument -method will print comments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GIO

public GIO()
Method Detail

addStyleID

public void addStyleID(String styleID)
Adds the styleID to the set of styleID's of this GIO.

Parameters:
styleID - The styleID to be added.

getStyleIDSet

public Set<String> getStyleIDSet()
Gets the set of styleID's previously added with addStyleID(String).

Returns:
A set of styleID's.

increaseSelectedSheets

public void increaseSelectedSheets()
Increases the number of selected sheets by one.


getSelectedSheetsCount

public int getSelectedSheetsCount()
Gets the number of selected sheets.

Returns:
The number of selected sheets.

setPrintComments

public void setPrintComments(boolean print)
Sets whether the workbook's createDocument -method will print comments.

Parameters:
print - false if comments must be ignored.
See Also:
Workbook.setPrintElementComments(boolean print)

isPrintingComments

public boolean isPrintingComments()
Specifies whether the workbook's createDocument -method will print comments.

Returns:
true if comments will be printed, false otherwise.

xelem.3.0