Package overit.geocall.basic.ui.xlsx
Class XlsxColumn
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.basic.ui.xlsx.XlsxComponent
overit.geocall.basic.ui.xlsx.XlsxCell
overit.geocall.basic.ui.xlsx.XlsxColumn
- All Implemented Interfaces:
Serializable,Identified
- Direct Known Subclasses:
XlsxColumnBoolean,XlsxColumnClob,XlsxColumnDate,XlsxColumnFormula,XlsxColumnLong,XlsxColumnLookup,XlsxColumnSpan,XlsxColumnSurveyQuestion,XlsxColumnSwitch
This class extends
The class implement the text column with left alignment.
XlsxCell.The class implement the text column with left alignment.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected IXlsxFormatprotected Stringprotected ForeignFieldprotected ForeignFieldprotected ForeignFieldprotected ForeignFieldprotected Stringprotected booleanprotected booleanprotected booleanprotected intprotected TreeMapprotected TreeMapprotected Stringprotected ForeignFieldprotected ForeignFieldprotected Stringprotected booleanprotected booleanprotected TreeMapprotected TreeMapFields inherited from class overit.geocall.basic.ui.xlsx.XlsxCell
_cellstyle, _columnspan, _delim, _endfunction, _endLabel, _fixedsize, _lines4Row, _sizeFields inherited from class overit.geocall.basic.ui.xlsx.XlsxComponent
_align, _cellFormat, _cellFormatClass, _font, _format, _valign, _warning -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.poi.ss.usermodel.CellgetBreakCell(org.apache.poi.ss.usermodel.Sheet sheet, ArrayList row, int rowNum, int colNum, int startRow, int breakFieldPos) Returns the breakCell.org.apache.poi.ss.usermodel.CellGetsCellstyle of a specific cell defined by row and column passed by input.intprotected StringgetForcedColor(Teacher t, ArrayList row, String val, String defval, org.apache.poi.xssf.usermodel.XSSFCellStyle cs) protected StringgetForcedComment(Teacher t, ArrayList row, String val, String defval) protected intgetForcedFillPattern(Teacher t, ArrayList row, String val, String defval) protected StringgetForcedFontVariant(Teacher t, ArrayList row, String val, String defval) org.apache.poi.xssf.usermodel.XSSFColororg.apache.poi.xssf.usermodel.XSSFColorintGets the title span.protected org.apache.poi.ss.usermodel.CellgiveCell(org.apache.poi.ss.usermodel.Sheet sheet, ArrayList row, int rowNum, int colNum, org.apache.poi.xssf.usermodel.XSSFCellStyle cs) Method to implement that allows to set the orientation, the font etcorg.apache.poi.ss.usermodel.CellgroupCell(int rowNum, int cellNum) voidInitialize the break Format of the column.booleanisGroup()Gets if the column is grouped or not.booleanGets if the column header is visible or not.protected org.apache.poi.xssf.usermodel.XSSFCellStylemakeCellStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxComponent cella, org.apache.poi.xssf.usermodel.XSSFFont font, boolean pari, boolean bold, boolean italic, org.apache.poi.xssf.usermodel.XSSFColor textColor) protected StringparseFunction(ArrayList row, int startRow, int endRow, int curRow, int colNum) voidSets the bkg color.voidSets differents bkg color which can be selected by switch.voidSets the format class to the break cells.voidSets the break function.voidSets the column Span size.voidSets the comment name.voidSets differents variant comment which can be selected by switch.voidSets the fill pattern name.voidSets differents variant fill pattern which can be selected by switch.voidSets the font variant name.voidSets differents variant font which can be selected by switch.protected voidsetForcedStyle(org.apache.poi.ss.usermodel.Sheet s, org.apache.poi.ss.usermodel.Cell c, Teacher t, ArrayList row, int rowNum, String val, String defval, org.apache.poi.xssf.usermodel.XSSFCellStyle cs, int format) protected org.apache.poi.ss.usermodel.CellvoidAllow the possibility to grouped a column.voidSets a name to the datas group.voidSets the color of the column headervoidSets the font color of the column headervoidBy setting this to true the values of the column are hidden, but not the titlevoidSets the label of the columnvoidSets the title span.voidsetupMetaData(HashMap dbfields) Method used for the field init starting from a resultSet.voidsetupMetaData(DBView dbv) Method used for the field init starting from the DBView.Methods inherited from class overit.geocall.basic.ui.xlsx.XlsxCell
countBreakLines, getColumnSpan, getDELIM, getEndFunction, getEndLabel, getFixedSize, getLines4Row, getSize, setAutoSize4Lines, setBorder, setDELIM, setENDFUNCTION, setENDLABEL, setFONTSIZE, setLines4Row, setLINES4ROW, setSheet, setSize, setSIZE, setUseBGColorMethods 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, 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
-
_group
protected boolean _group -
_titlespan
protected int _titlespan -
_breakFunction
-
_breakFormat
-
_breakCellFormatClass
-
_forcedBkgColor
protected boolean _forcedBkgColor -
_forcedFontVariant
protected boolean _forcedFontVariant -
forcedComment
protected boolean forcedComment -
forcedFillPattern
protected boolean forcedFillPattern -
_bkgColorName
-
_fontVariantName
-
commentName
-
fillPatternName
-
_tmBkgColorSwitch
-
_tmFontVariantSwitch
-
tmCommentSwitch
-
tmFillPatternSwitch
-
_stylesMap
-
_ffFontVariantSwitch
-
ffCommentSwitch
-
ffFillPatternSwitch
-
_ffBkgColorSwitch
-
_ffName
-
_ffGroup
-
-
Constructor Details
-
XlsxColumn
public XlsxColumn()
-
-
Method Details
-
setCOLUMNSPAN
Sets the column Span size.- Parameters:
s- The size to set as column span.
-
setHEADVISIBLE
By setting this to true the values of the column are hidden, but not the title- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default value, that is true
-
setTITLESPAN
Sets the title span.- Parameters:
s- The title to set.
-
getTitleSpan
public int getTitleSpan()Gets the title span.- Returns:
- The Title span.
-
setGROUPNAME
Sets a name to the datas group.- Parameters:
s- The name to set.
-
setBREAKFUNCTION
Sets the break function.- Parameters:
s- The function to set.
-
setBREAKCELLFORMATCLASS
Sets the format class to the break cells.- Parameters:
s- The format class to set.
-
setBKGCOLORNAME
Sets the bkg color.- Parameters:
s- The bkg color to set.
-
setBKGCOLORSWITCH
Sets differents bkg color which can be selected by switch.- Parameters:
s- The list with the color to set.
-
setFONTVARIANTNAME
Sets the font variant name.- Parameters:
s- The font name to set.
-
setFONTVARIANTSWITCH
Sets differents variant font which can be selected by switch.- Parameters:
s- The list with the font to set.
-
setCOMMENTNAME
Sets the comment name.- Parameters:
s- The comment name to set.
-
setCOMMENTSWITCH
Sets differents variant comment which can be selected by switch.- Parameters:
s- The list with the comment to set.
-
setFILLPATTERNNAME
Sets the fill pattern name.- Parameters:
s- The fill pattern name to set.
-
setFILLPATTERNSWITCH
Sets differents variant fill pattern which can be selected by switch.- Parameters:
s- The list with the fill pattern to set.
-
setHEADERCOLOR
Sets the color of the column header- Parameters:
s- The color to set.
-
getHeaderColor
public org.apache.poi.xssf.usermodel.XSSFColor getHeaderColor()- Returns:
- The column header
XSSFColoractive.
-
setHEADERFONTCOLOR
Sets the font color of the column header- Parameters:
s- The font color to set.
-
getHeaderFontColor
public org.apache.poi.xssf.usermodel.XSSFColor getHeaderFontColor()- Returns:
- The column header font
XSSFColoractive.
-
isHeaderNOTVisible
public boolean isHeaderNOTVisible()Gets if the column header is visible or not.- Returns:
trueif the column header is visible,falseotherwise.
-
isGroup
public boolean isGroup()Gets if the column is grouped or not.- Returns:
trueif the column is grouped,falseotherwise
-
getDBVFieldPos
public int getDBVFieldPos() -
setupMetaData
Method used for the field init starting from the DBView. The name of the column must be null in case the field is not in the DBView or in the ResultSet.- Parameters:
dbv- The DBView for the init
-
initFormat
public void initFormat()Initialize the break Format of the column. -
setupMetaData
Method used for the field init starting from a resultSet. The name of the column must be null in case the field is not in the DBView or in the ResultSet.- Parameters:
dbfields- The HashMap for the init
-
setLABEL
Sets the label of the column- Overrides:
setLABELin classXlsxComponent- Parameters:
s- String containing the label to set
-
setGROUP
Allow the possibility to grouped a column.- Parameters:
s-'true' or '1'to set the possibility to make a group,'false' or '0'otherwise.
-
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 Description copied from class:XlsxCellGetsCellstyle of a specific cell defined by row and column passed by input.- Overrides:
getCellin classXlsxCell- 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
-
giveCell
protected org.apache.poi.ss.usermodel.Cell giveCell(org.apache.poi.ss.usermodel.Sheet sheet, ArrayList row, int rowNum, int colNum, org.apache.poi.xssf.usermodel.XSSFCellStyle cs) Description copied from class:XlsxCellMethod to implement that allows to set the orientation, the font etc -
setForcedStyle
-
getForcedColor
-
getForcedFontVariant
-
getForcedComment
-
getForcedFillPattern
-
parseFunction
-
getBreakCell
public org.apache.poi.ss.usermodel.Cell getBreakCell(org.apache.poi.ss.usermodel.Sheet sheet, ArrayList row, int rowNum, int colNum, int startRow, int breakFieldPos) throws Exception Returns the breakCell.- Parameters:
sheet- The Excel sheetrow- ArrayList with the rowsrowNum- Number of the current rowcolNum- Number of the columnstartRow- Starting breaking rowbreakFieldPos- Position of the breaking field- Returns:
- The break
Cell. - Throws:
Exception- if an error occursDAValidateException- if an error occurs during the data validation
-
setGroup
protected org.apache.poi.ss.usermodel.Cell setGroup(ArrayList row, org.apache.poi.ss.usermodel.Cell cell, int rowNum, int cellNum) throws DAValidateException - Throws:
DAValidateException
-
groupCell
public org.apache.poi.ss.usermodel.Cell groupCell(int rowNum, int cellNum) throws DAValidateException - Throws:
DAValidateException
-
makeCellStyle
protected org.apache.poi.xssf.usermodel.XSSFCellStyle makeCellStyle(org.apache.poi.ss.usermodel.Sheet sheet, XlsxComponent cella, org.apache.poi.xssf.usermodel.XSSFFont font, boolean pari, boolean bold, boolean italic, org.apache.poi.xssf.usermodel.XSSFColor textColor)
-