Package overit.geocall.basic.ui.xlsx
Class XlsxText
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.basic.ui.xlsx.XlsxComponent
overit.geocall.basic.ui.xlsx.XlsxText
- All Implemented Interfaces:
Serializable,XlsxElement,Identified
This class extends
This class allows to add a text inside a cell given a row and a column.
XlsxComponent and implements Identified and implements XlsxElement.This class allows to add a text inside a cell given a row and a column.
- See Also:
-
Field Summary
FieldsFields inherited from class overit.geocall.basic.ui.xlsx.XlsxComponent
_align, _cellFormat, _cellFormatClass, _font, _format, _valign, _warning -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetContent(org.apache.poi.ss.usermodel.Sheet sheet, int startRow, int startCol) Creates a Cell with specific style and format.Returns theIdentityassociated to the componentintintvoidSets the column.voidsetCOLSPAN(String s) Sets the column span.voidsetIdentity(Identity identity) Sets theIdentityto the componentvoidSets the row.voidsetROWSPAN(String s) Sets the row span.voidSet the text's size.voidSets the cell's text.voidSets the cell's text.voidsetType(int type) voidSets the cell's type.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, getLabel, getName, 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, setLabel, setLABEL, setLOCKED, setNAME, setREGISTRYNAME, setSheet, setSHRINKTOFIT, setSTYLENAME, setUseBGColor, setUSEBGCOLOR, setUSEDECIMALSPERCENTAGE, setUseHeadColor, setUSEHEADCOLOR, setVALIGN, setWRAP, useBGColor, useDecimalsPercentage, useHeaderColorMethods inherited from class overit.geocall.platform.ui.UINode
addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.basic.ui.xlsx.XlsxElement
getName, getWarning
-
Field Details
-
TYPE_TEXT
public static final int TYPE_TEXT- See Also:
-
TYPE_FORMULA
public static final int TYPE_FORMULA- See Also:
-
-
Constructor Details
-
XlsxText
public XlsxText()
-
-
Method Details
-
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
-
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
-
setROW
Sets the row.- Parameters:
s- The row to set.
-
setCOL
Sets the column.- Parameters:
s- The column to set.
-
setROWSPAN
Sets the row span.- Parameters:
s- The row span to set.
-
setCOLSPAN
Sets the column span.- Parameters:
s- The column span to set.
-
setTEXT
Sets the cell's text.- Parameters:
s- The text to set.
-
setSIZE
Set the text's size.- Parameters:
s- The size to set.
-
setTYPE
Sets the cell's type.- Parameters:
type- The text's type to set.
-
setType
public void setType(int type) -
setText
Sets the cell's text.- Parameters:
s- The text to set.
-
getOccupationRow
public int getOccupationRow()- Specified by:
getOccupationRowin interfaceXlsxElement
-
getOccupationCol
public int getOccupationCol()- Specified by:
getOccupationColin interfaceXlsxElement
-
getContent
public void getContent(org.apache.poi.ss.usermodel.Sheet sheet, int startRow, int startCol) throws Exception Creates a Cell with specific style and format. Th cell could be a formula Cell or simply text cell.
If Cell has a rowspan or a colspan, the range area of the cell is bigger and takes into account all the cells that must be merged into one cell.- Specified by:
getContentin interfaceXlsxElement- Parameters:
sheet- The Excel sheet,startRow- Starting area row of the cell.startCol- Starting area Col of the cell.- Throws:
Exception- should not happend.
-