public class SpreadsheetOptions extends Object
Provides options for rendering spreadsheets.
Modifier and Type | Method and Description |
---|---|
static SpreadsheetOptions |
forOnePagePerSheet()
Initializes new instance of
SpreadsheetOptions class for rendering whole sheet into page. |
static SpreadsheetOptions |
forRenderingByPageBreaks()
Initializes new instance of
|
static SpreadsheetOptions |
forRenderingPrintArea()
Initializes new instance of
SpreadsheetOptions for rendering print areas only. |
static SpreadsheetOptions |
forSplitSheetIntoPages(int countRowsPerPage)
Initializes new instance of
SpreadsheetOptions for rendering sheet into pages. |
static SpreadsheetOptions |
forSplitSheetIntoPages(int countRowsPerPage,
int countColumnsPerPage)
Initializes new instance of
|
int |
getCountColumnsPerPage()
The columns count to include into each page when splitting worksheet into pages.
|
int |
getCountRowsPerPage()
The rows count to include into each page when splitting worksheet into pages.
|
TextOverflowMode |
getTextOverflowMode()
The text overflow mode for rendering spreadsheet documents into HTML.
|
boolean |
isDetectSeparator()
Detect separator (for CSV/TSV files).
|
boolean |
isOnePagePerSheet()
Indicates that one sheet is rendered into one page.
|
boolean |
isRenderByPageBreaks()
When this option is enabled a worksheet will be rendered by page breaks.
|
boolean |
isRenderGridLines()
Enables grid lines rendering.
|
boolean |
isRenderHeadings()
Is headings rendering enabled.
|
boolean |
isRenderHiddenColumns()
Enables hidden columns rendering.
|
boolean |
isRenderHiddenRows()
Enables hidden rows rendering.
|
boolean |
isRenderPrintAreaOnly()
Indicates that only print areas are rendered.
|
boolean |
isSkipEmptyColumns()
Disables empty columns rendering.
|
boolean |
isSkipEmptyRows()
Disables empty rows rendering.
|
void |
setCountColumnsPerPage(int countColumnsPerPage)
The columns count to include into each page when splitting worksheet into pages.
|
void |
setDetectSeparator(boolean detectSeparator)
Detect separator (for CSV/TSV files).
|
void |
setRenderByPageBreaks(boolean renderByPageBreaks)
When this option is enabled a worksheet will be rendered by page breaks.
|
void |
setRenderGridLines(boolean value)
Enables grid lines rendering.
|
void |
setRenderHeadings(boolean mRenderHeadings)
Enables headings rendering.
|
void |
setRenderHiddenColumns(boolean value)
Enables hidden columns rendering.
|
void |
setRenderHiddenRows(boolean value)
Enables hidden rows rendering.
|
void |
setSkipEmptyColumns(boolean value)
Disables empty columns rendering.
|
void |
setSkipEmptyRows(boolean value)
Disables empty rows rendering.
|
void |
setTextOverflowMode(TextOverflowMode value)
The text overflow mode for rendering spreadsheet documents into HTML.
|
public static SpreadsheetOptions forOnePagePerSheet()
Initializes new instance of SpreadsheetOptions
class for rendering whole sheet into page.
SpreadsheetOptions
class for rendering one sheet into one page.public static SpreadsheetOptions forRenderingByPageBreaks()
SpreadsheetOptions
for rendering by page breaks. The behaviour similar to printing in Excel.public static SpreadsheetOptions forRenderingPrintArea()
Initializes new instance of SpreadsheetOptions
for rendering print areas only.
SpreadsheetOptions
for rendering print areas only.public static SpreadsheetOptions forSplitSheetIntoPages(int countRowsPerPage) throws IllegalArgumentException
Initializes new instance of SpreadsheetOptions
for rendering sheet into pages.
countRowsPerPage
- Rows count to include into each page.SpreadsheetOptions
for rendering sheet into pages.IllegalArgumentException
- Thrown when countRowsPerPage is equals or less than zero.public static SpreadsheetOptions forSplitSheetIntoPages(int countRowsPerPage, int countColumnsPerPage)
countRowsPerPage
- Rows count to include into each page.countColumnsPerPage
- Columns count to include into each page.public int getCountColumnsPerPage()
public final int getCountRowsPerPage()
The rows count to include into each page when splitting worksheet into pages.
public final TextOverflowMode getTextOverflowMode()
The text overflow mode for rendering spreadsheet documents into HTML.
public boolean isDetectSeparator()
public final boolean isOnePagePerSheet()
Indicates that one sheet is rendered into one page.
public boolean isRenderByPageBreaks()
public final boolean isRenderGridLines()
Enables grid lines rendering.
public boolean isRenderHeadings()
public final boolean isRenderHiddenColumns()
Enables hidden columns rendering.
public final boolean isRenderHiddenRows()
Enables hidden rows rendering.
public final boolean isRenderPrintAreaOnly()
Indicates that only print areas are rendered.
public final boolean isSkipEmptyColumns()
Disables empty columns rendering.
public final boolean isSkipEmptyRows()
Disables empty rows rendering.
public void setCountColumnsPerPage(int countColumnsPerPage)
public void setDetectSeparator(boolean detectSeparator)
public void setRenderByPageBreaks(boolean renderByPageBreaks)
public final void setRenderGridLines(boolean value)
Enables grid lines rendering.
public void setRenderHeadings(boolean mRenderHeadings)
public final void setRenderHiddenColumns(boolean value)
Enables hidden columns rendering.
public final void setRenderHiddenRows(boolean value)
Enables hidden rows rendering.
public final void setSkipEmptyColumns(boolean value)
Disables empty columns rendering.
public final void setSkipEmptyRows(boolean value)
Disables empty rows rendering.
public final void setTextOverflowMode(TextOverflowMode value)
The text overflow mode for rendering spreadsheet documents into HTML.
value
- The text overflow mode for rendering spreadsheet documents into HTML.