Package overit.geocall.basic.ui.xlsx
Class XlsxSheet
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.basic.ui.xlsx.XlsxComponent
overit.geocall.basic.ui.xlsx.XlsxSheet
- All Implemented Interfaces:
Serializable,Identified
This class extends
This class represent an Excel working sheet. There can be more working sheet, in that case they must have different name and label, the title is optional.
It manages the representation of a DBView in an Excel sheet.
XlsxComponent and implements Identified.This class represent an Excel working sheet. There can be more working sheet, in that case they must have different name and label, the title is optional.
It manages the representation of a DBView in an Excel sheet.
- See Also:
-
Field Summary
Fields inherited from class overit.geocall.basic.ui.xlsx.XlsxComponent
_align, _cellFormat, _cellFormatClass, _font, _format, _valign, _warning -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEmpty methodprotected voidbooleanGets if the grid lines should be displayed or not.intintReturns theIdentityassociated to the componentgetLabel()Gets the label of the instance.getName()Gets the name of tbe instance.charGets the page's orientation.org.apache.poi.ss.usermodel.Sheet[]getSheets(org.apache.poi.ss.usermodel.Workbook wb, int fogli) Gets an array containing the sheets defined by the label of the actual instancegetTableView(String name) Gets theXlsxTableViewdefined by name passed by parameter.getTitle()Gets the sheet's title.booleanGets if the sheet's title is wrapped or not.protected org.apache.poi.ss.usermodel.SheetgiveSheet(org.apache.poi.ss.usermodel.Sheet sheet) voidsetDataView(Object dbv) Sets the DataView into the active sheet.voidsetDataView(Object dbv, String name) Sets the DataView into a specific table in the active sheet.voidSets if the grid lines should be displayed or not.voidSets the page's fit height.voidSets the page's fit width.voidSets the margin for the footer.voidSets the margin for the header.voidsetIdentity(Identity identity) Sets theIdentityto the componentvoidvoidSets the label for the instance.voidSets the name for the instance.voidSets the page's margin.voidSets the page's orientation.voidSets the row after that the page breaks.voidvoidSets the sheet's titlevoidSets if you want to wrap the sheet's title or not.Methods inherited from class overit.geocall.basic.ui.xlsx.XlsxComponent
getAlign, getBgColor, getBoolean, getBorder, getBorder, getBorder, getBorderColor, getBorderStyle, getCellFormat, getCellStyle, getChildIterator, getChildSize, getColor, getColor, getComment, getDefault, getDocument, getFont, getFontSize, getKey, getRegistryName, getSheet, getStyleName, getVAlign, getWarning, hasFontSize, initCellFormat, initChilds, isBold, isEnabled, isForcedBoldState, isForcedFontSize, isHidden, isLocked, isShrinkToFit, isWrap, onInit, setALIGN, setBGCOLOR, setBOLD, setBorder, setBORDER, setBorderColor, setBORDERCOLORRGB, setBorderStyle, setBORDERSTYLE, setCellFormat, setCELLFORMATCLASS, setCellStyle, setCOLOR, setCOMMENT, setDEFAULT, setENABLED, setFONT, setFONTSIZE, setFORMAT, setHIDDEN, setKEY, setLOCKED, setREGISTRYNAME, setSheet, setSHRINKTOFIT, setSTYLENAME, setUseBGColor, setUSEBGCOLOR, setUSEDECIMALSPERCENTAGE, setUseHeadColor, setUSEHEADCOLOR, setVALIGN, setWRAP, useBGColor, useDecimalsPercentage, useHeaderColorMethods inherited from class overit.geocall.platform.ui.UINode
addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchema
-
Constructor Details
-
XlsxSheet
public XlsxSheet()
-
-
Method Details
-
setIdentity
Description copied from interface:IdentifiedSets theIdentityto the component- Specified by:
setIdentityin interfaceIdentified- Overrides:
setIdentityin classXlsxComponent- Parameters:
identity- The Identity that must be associated to the component
-
getIdentity
Description copied from interface:IdentifiedReturns theIdentityassociated to the component- Specified by:
getIdentityin interfaceIdentified- Overrides:
getIdentityin classXlsxComponent- Returns:
- The Identity of the user currently logged in the application
-
setLABEL
Description copied from class:XlsxComponentSets the label for the instance.- Overrides:
setLABELin classXlsxComponent- Parameters:
s- The label to set.
-
getLabel
Description copied from class:XlsxComponentGets the label of the instance.- Overrides:
getLabelin classXlsxComponent- Returns:
- The label of the instance.
-
setTITLE
Sets the sheet's title- Parameters:
s- The title to set.
-
getTitle
Gets the sheet's title.- Returns:
- The sheet's title.
-
setNAME
Description copied from class:XlsxComponentSets the name for the instance.- Overrides:
setNAMEin classXlsxComponent- Parameters:
s- The name to set.
-
getName
Description copied from class:XlsxComponentGets the name of tbe instance.- Overrides:
getNamein classXlsxComponent- Returns:
- The name of the instance.
-
getEndCol
public int getEndCol() -
getEndRow
public int getEndRow() -
setTITLEWRAP
Sets if you want to wrap the sheet's title or not.- Parameters:
s- "1" if you want to wrap the title, "0" otherwise.
-
getTitleWrap
public boolean getTitleWrap()Gets if the sheet's title is wrapped or not.- Returns:
trueif the title is wrapped,falseotherwise.
-
setROWPAGEBREAK
Sets the row after that the page breaks.- Parameters:
s- The row to set.
-
setPAGEORIENTATION
Sets the page's orientation.- Parameters:
s- The orientation of the page.
-
getPageOrientation
public char getPageOrientation()Gets the page's orientation.- Returns:
- The page's orientation.
-
setDISPLAYGRIDLINES
Sets if the grid lines should be displayed or not.- Parameters:
s-trueif the grid lines should be displayed,falseotherwise.
-
getDisplayGridLines
public boolean getDisplayGridLines()Gets if the grid lines should be displayed or not.- Returns:
trueif the grid lines should be displayed,falseotherwise.
-
setFITHEIGHT
Sets the page's fit height.- Parameters:
s- The height to set.
-
setFITWIDTH
Sets the page's fit width.- Parameters:
s- The width to set.
-
setHEADERMARGIN
Sets the margin for the header.- Parameters:
s- The margin to set.
-
setFOOTERMARGIN
Sets the margin for the footer.- Parameters:
s- The margin to set.
-
getSheets
public org.apache.poi.ss.usermodel.Sheet[] getSheets(org.apache.poi.ss.usermodel.Workbook wb, int fogli) Gets an array containing the sheets defined by the label of the actual instance- Parameters:
wb- The active workbookfogli- Sheet number in the workbook.- Returns:
- A
Sheetarray containing the sheets defined by the label of the actual instance.
-
giveSheet
protected org.apache.poi.ss.usermodel.Sheet giveSheet(org.apache.poi.ss.usermodel.Sheet sheet) -
setDataView
Sets the DataView into the active sheet.- Parameters:
dbv- The DataView to set.
-
setDataView
Sets the DataView into a specific table in the active sheet.- Parameters:
dbv- The DataView to set.name- The table in which insert the Data View.
-
getTableView
Gets theXlsxTableViewdefined by name passed by parameter.- Parameters:
name- The table view's name.- Returns:
- The
XlsxTableViewdefined by name passed by parameter.
-
addTitle
-
addChild
Description copied from class:UINodeEmpty method -
setPAGEMARGIN
Sets the page's margin.- Parameters:
s- The margin to set.
-
setTitle
-
setLabel
- Overrides:
setLabelin classXlsxComponent
-