public class SheetImpl extends AbstractIntegerSet<Row> implements Sheet
Has a collection of RowImpl.
Has a collection of Image.
Has a collection of TextBoxImpl.
set| Modifier and Type | Method and Description |
|---|---|
Sheet |
addImage(CellAddress address,
String resourcePath)
Creates an
Image from the resourcePath and places it at
the indicated address. |
Sheet |
addImage(Image image)
Adds the passed
Image to the sheet. |
Sheet |
alias(String alias)
Deprecated.
|
Sheet |
autoSize(Boolean autoSize)
Sets auto-size flag.
|
Row |
createItem(Integer index)
Internal purpose method.
|
Sheet |
createTextBox(CellRegion region,
String content)
Creates an
TextBoxImpl places it into the indicated region
and sets its value. |
Sheet |
createTextBox(TextBox textBox)
Adds the passed
TextBoxImpl to the sheet. |
Sheet |
filterRegion(CellRegion region)
Sets the filter on indicated region.
|
String |
getAlias()
Gets alias.
|
Boolean |
getAutoSize()
Gets auto size.
|
CellRegion |
getFilterRange()
Gets filter range.
|
List<Image> |
getImages()
Gets images.
|
Integer |
getIndex()
Gets index.
|
Map<String,CellRegion> |
getMergedCells()
Gets merged cells.
|
String |
getName()
Gets name.
|
PrintSetup |
getPrintSetup()
Gets print setup.
|
List<TextBox> |
getTextBoxes()
Gets text boxes.
|
Sheet |
mergeCell(int rowIndex,
int columnIndex,
int numCells)
Merges the indicated cells.
|
Sheet |
mergeCell(Row row,
Cell cell,
int numCells)
Merges the indicated cells.
|
Sheet |
mergeRegion(CellRegion region)
Merges the indicated
CellRegionImpl |
Sheet |
mergeRegion(String region)
Merges the indicated
CellRegionImpl |
Sheet |
mergeRow(int rowIndex,
int columnIndex,
int numRows)
Merges the indicated rows.
|
Sheet |
mergeRow(Row row,
Cell cell,
int numRows)
Merges the indicated rows.
|
Sheet |
name(String name)
Sets the sheet's name.
|
Row |
row()
Returns new
RowImpl instance. |
Row |
row(Integer index)
Returns the
RowImpl located into indicated index. |
Set<Row> |
rows()
Rows set.
|
void |
setAlias(String alias)
Sets alias.
|
void |
setAutoSize(Boolean autoSize)
Sets auto size.
|
void |
setFilterRange(CellRegion filterRange)
Sets filter range.
|
void |
setImages(List<Image> images)
Sets images.
|
void |
setIndex(Integer index)
Sets index.
|
void |
setMergedCells(Map<String,CellRegion> mergedCells)
Sets merged cells.
|
void |
setName(String name)
Sets name.
|
void |
setPrintSetup(PrintSetup printSetup)
Sets print setup.
|
void |
setTextBoxes(List<TextBox> textBoxes)
Sets text boxes.
|
add, add, get, getMaxIndexpublic SheetImpl(Integer index)
public Integer getIndex()
IntegerIndexgetIndex in interface IntegerIndexpublic Boolean getAutoSize()
SheetgetAutoSize in interface Sheetpublic void setAutoSize(Boolean autoSize)
SheetsetAutoSize in interface SheetautoSize - the auto sizepublic PrintSetup getPrintSetup()
SheetgetPrintSetup in interface Sheetpublic void setPrintSetup(PrintSetup printSetup)
SheetsetPrintSetup in interface SheetprintSetup - the print setuppublic CellRegion getFilterRange()
SheetgetFilterRange in interface Sheetpublic void setFilterRange(CellRegion filterRange)
SheetsetFilterRange in interface SheetfilterRange - the filter rangepublic void setImages(List<Image> images)
Sheetpublic List<TextBox> getTextBoxes()
SheetgetTextBoxes in interface Sheetpublic void setTextBoxes(List<TextBox> textBoxes)
SheetsetTextBoxes in interface SheettextBoxes - the text boxespublic Map<String,CellRegion> getMergedCells()
SheetgetMergedCells in interface Sheetpublic void setMergedCells(Map<String,CellRegion> mergedCells)
SheetsetMergedCells in interface SheetmergedCells - the merged cellspublic Row createItem(Integer index)
Returns a new instance of a RowImpl placed
into indicated row index.
createItem in interface IntegerSet<Row>index - where the new RowImpl will be placed.RowImpl.public Row row(Integer index)
RowImpl located into indicated index.
If not exist the referenced row, the method returns to a new row instance placed there.
@Deprecated public Sheet alias(String alias)
NOTE: Method inherited from older versions.
public Sheet autoSize(Boolean autoSize)
If true (default value) the columns auto-fit to the maximum width.
public Sheet filterRegion(CellRegion region)
filterRegion in interface Sheetregion - where the filter will be setpublic Sheet addImage(CellAddress address, String resourcePath)
Image from the resourcePath and places it at
the indicated address.public Sheet createTextBox(TextBox textBox)
TextBoxImpl to the sheet.createTextBox in interface SheettextBox - the text boxpublic Sheet createTextBox(CellRegion region, String content)
TextBoxImpl places it into the indicated region
and sets its value.createTextBox in interface Sheetregion - will be placed the TextBox.content - of TextBox.public Sheet mergeCell(int rowIndex, int columnIndex, int numCells)
public Sheet mergeRow(int rowIndex, int columnIndex, int numRows)
public Sheet mergeRegion(String region)
CellRegionImplmergeRegion in interface Sheetregion - Excel format String.public Sheet mergeRegion(CellRegion region)
CellRegionImplmergeRegion in interface Sheetregion - the regionCopyright © 2018. All rights reserved.