Package overit.geocall.basic.ui.xlsx
Class XlsxCell
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.basic.ui.xlsx.XlsxComponent
overit.geocall.basic.ui.xlsx.XlsxCell
- All Implemented Interfaces:
Serializable,Identified
- Direct Known Subclasses:
XlsxColumn
This class extends
This class is used to represent the cell of an Excel sheet.
XlsxComponent and implements Identified.This class is used to represent the cell of an Excel sheet.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.poi.xssf.usermodel.XSSFCellStyleprotected intprotected Stringprotected Stringprotected Stringprotected intprotected intprotected intFields inherited from class overit.geocall.basic.ui.xlsx.XlsxComponent
_align, _cellFormat, _cellFormatClass, _font, _format, _valign, _warning -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcountBreakLines(String s, String delim) org.apache.poi.ss.usermodel.CellGetsCellstyle of a specific cell defined by row and column passed by input.intGets column span of the instance.getDELIM()Gets the line delimiter inside a cellGets the end function that is the last cell of the table specified as StandardFunctionGets the end label of the table.intGets the fixed size of the instance.intGets the number of lines in a cell now active.intgetSize()Gets the dimension of the instanceprotected abstract org.apache.poi.ss.usermodel.CellgiveCell(org.apache.poi.ss.usermodel.Sheet sheet, ArrayList row, int rowNum, int cellNum, org.apache.poi.xssf.usermodel.XSSFCellStyle cs) Method to implement that allows to set the orientation, the font etcvoidsetAutoSize4Lines(String s, String delim) Sets the same lenght/width of the cell of the lines in the string svoidSets the border to the component.voidSets the line delimiter inside a cellvoidSets a function as the last cell of the table specified as StandardFunctionvoidSets a label at the end of the table on the last cell.voidsetFONTSIZE(String fontSize) Sets the font size.voidsetLines4Row(int lines4Row) Sets the number of lines in a cell, and so in the relative rowvoidsetLINES4ROW(String lines4Row) Sets the number of lines in a cell, and so in the relative rowvoidsetSheet(org.apache.poi.ss.usermodel.Sheet sheet) Sets the activeSheet.voidsetSize(int size) Sets the dimension for the instancevoidSets a default fixed dimension in all the columnvoidsetUseBGColor(boolean b) Sets if you want to use bg format color.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, getIdentity, getKey, getLabel, getName, getRegistryName, getSheet, getStyleName, getVAlign, getWarning, hasFontSize, initCellFormat, initChilds, isBold, isEnabled, isForcedBoldState, isForcedFontSize, isHidden, isLocked, isShrinkToFit, isWrap, onInit, setALIGN, setBGCOLOR, setBOLD, setBORDER, setBorderColor, setBORDERCOLORRGB, setBorderStyle, setBORDERSTYLE, setCellFormat, setCELLFORMATCLASS, setCellStyle, setCOLOR, setCOMMENT, setDEFAULT, setENABLED, setFONT, setFORMAT, setHIDDEN, setIdentity, setKEY, setLabel, setLABEL, setLOCKED, setNAME, setREGISTRYNAME, setSHRINKTOFIT, setSTYLENAME, 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.util.Identified
getIdentity, setIdentity
-
Field Details
-
_endfunction
-
_endLabel
-
_size
protected int _size -
_fixedsize
protected int _fixedsize -
_lines4Row
protected int _lines4Row -
_delim
-
_columnspan
protected int _columnspan -
_cellstyle
protected org.apache.poi.xssf.usermodel.XSSFCellStyle _cellstyle
-
-
Constructor Details
-
XlsxCell
public XlsxCell()
-
-
Method Details
-
getColumnSpan
public int getColumnSpan()Gets column span of the instance.- Returns:
- Column span of the instance.
-
setSIZE
Sets a default fixed dimension in all the column- Parameters:
s- The fixed dimension
-
setSize
public void setSize(int size) Sets the dimension for the instance- Parameters:
size- The dimension for the instance
-
getSize
public int getSize()Gets the dimension of the instance- Returns:
- The dimension of the instance
-
getFixedSize
public int getFixedSize()Gets the fixed size of the instance.- Returns:
- The fixed size of the instance.
-
setENDFUNCTION
Sets a function as the last cell of the table specified as StandardFunction- Parameters:
s- The function as the last cell of the table specified as StandardFunction
-
getEndFunction
Gets the end function that is the last cell of the table specified as StandardFunction- Returns:
- The end function that is the last cell of the table specified as StandardFunction
-
setENDLABEL
Sets a label at the end of the table on the last cell.- Parameters:
s- The label to set at the end of the table on the last cell.
-
getEndLabel
Gets the end label of the table.- Returns:
- The end label of the table.
-
setLINES4ROW
Sets the number of lines in a cell, and so in the relative row- Parameters:
lines4Row- The number of lines in a cell, and so in the relative row
-
setLines4Row
public void setLines4Row(int lines4Row) Sets the number of lines in a cell, and so in the relative row- Parameters:
lines4Row- The number of lines in a cell, and so in the relative row
-
getLines4Row
public int getLines4Row()Gets the number of lines in a cell now active.- Returns:
- The number of lines in a cell now active.
-
setDELIM
Sets the line delimiter inside a cell- Parameters:
delim- The line delimiter
-
getDELIM
Gets the line delimiter inside a cell- Returns:
- The line delimiter
-
setFONTSIZE
Description copied from class:XlsxComponentSets the font size.- Overrides:
setFONTSIZEin classXlsxComponent- Parameters:
fontSize- The size to set.
-
setBorder
Description copied from class:XlsxComponentSets the border to the component.- Overrides:
setBorderin classXlsxComponent- Parameters:
b- The border to set.
-
setUseBGColor
public void setUseBGColor(boolean b) Description copied from class:XlsxComponentSets if you want to use bg format color.- Overrides:
setUseBGColorin classXlsxComponent- Parameters:
b-trueto use the bg format color,falseotherwise.
-
getCell
public org.apache.poi.ss.usermodel.Cell getCell(org.apache.poi.ss.usermodel.Sheet sheet, ArrayList row, int rowNum, int cellNum) throws Exception, DAValidateException GetsCellstyle of a specific cell defined by row and column passed by input.- Parameters:
sheet- The sheetrow- The Array list with the sheet's rowrowNum- The row number of the cellcellNum- The column number of the cell- Returns:
- A
Cellstyle of a specific cell defined by row and column passed by input. - Throws:
Exception- should not happendDAValidateException- should not happend
-
setAutoSize4Lines
Sets the same lenght/width of the cell of the lines in the string s- Parameters:
s- The linesdelim- The line delimiter
-
countBreakLines
-
setSheet
public void setSheet(org.apache.poi.ss.usermodel.Sheet sheet) Description copied from class:XlsxComponentSets the activeSheet.- Overrides:
setSheetin classXlsxComponent- Parameters:
sheet- TheSheetto set.
-
giveCell
protected abstract org.apache.poi.ss.usermodel.Cell giveCell(org.apache.poi.ss.usermodel.Sheet sheet, ArrayList row, int rowNum, int cellNum, org.apache.poi.xssf.usermodel.XSSFCellStyle cs) Method to implement that allows to set the orientation, the font etc- Parameters:
sheet- The sheetrow- The list of rowsrowNum- The number of rowcellNum- The cell numbercs- The XSSFCellStyle- Returns:
- The cell
-