Package overit.geocall.basic.ui.xlsx
Class XlsxColumnDate
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
overit.geocall.basic.ui.xlsx.XlsxColumnDate
- All Implemented Interfaces:
Serializable,Identified
This class extends
The class implements and represent the column Date of an Excel sheet.
XlsxColumn.The class implements and represent the column Date of an Excel sheet.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.basic.ui.xlsx.XlsxColumn
XlsxColumn.RowMergeUtil -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected intstatic final Stringstatic final StringFields inherited from class overit.geocall.basic.ui.xlsx.XlsxColumn
_bkgColorName, _breakCellFormatClass, _breakFormat, _breakFunction, _ffBkgColorSwitch, _ffFontVariantSwitch, _ffGroup, _ffName, _fontVariantName, _forcedBkgColor, _forcedFontVariant, _group, _stylesMap, _titlespan, _tmBkgColorSwitch, _tmFontVariantSwitch, commentName, ffCommentSwitch, ffFillPatternSwitch, fillPatternName, forcedComment, forcedFillPattern, tmCommentSwitch, tmFillPatternSwitchFields 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 TypeMethodDescriptionintGets the hour format of the column.
By default the get value is the "12 hours format" e.g.10PM or 10AM.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 etcbooleanGets if theXlsxColumnDateis represent as a real Date format into the excel sheet or not.voidvoidSets if theXlsxColumnDateis represent as a real Date format into the excel sheet or not.
If this attribute it's set totrueor '1', the column'sXSSFCellStylewill be set as Date into the sheet and also their values will be set asDateobject.
In this way the excel sheet will treat the data in the cells, from the column, as dates and no longer as text strings (for example in the definition of a filter on the column).voidSets the number type format of the cell.voidsetHOURSFORMAT(int hoursFormat) Sets the hour format of the column.
By default the set value is the "12 hours format" e.g. 10PM or 10AM.voidDefine the range of the date, a "from" range or a "to" range.Methods inherited from class overit.geocall.basic.ui.xlsx.XlsxColumn
getBreakCell, getCell, getDBVFieldPos, getForcedColor, getForcedComment, getForcedFillPattern, getForcedFontVariant, getHeaderColor, getHeaderFontColor, getTitleSpan, groupCell, initFormat, isGroup, isHeaderNOTVisible, makeCellStyle, parseFunction, setBKGCOLORNAME, setBKGCOLORSWITCH, setBREAKCELLFORMATCLASS, setBREAKFUNCTION, setCOLUMNSPAN, setCOMMENTNAME, setCOMMENTSWITCH, setFILLPATTERNNAME, setFILLPATTERNSWITCH, setFONTVARIANTNAME, setFONTVARIANTSWITCH, setForcedStyle, setGroup, setGROUP, setGROUPNAME, setHEADERCOLOR, setHEADERFONTCOLOR, setHEADVISIBLE, setLABEL, setTITLESPAN, setupMetaData, setupMetaDataMethods 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, 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
-
FROM
- See Also:
-
TO
- See Also:
-
_range
protected int _range -
_hasDateFormat
protected boolean _hasDateFormat -
_hoursFormat
protected int _hoursFormat
-
-
Constructor Details
-
XlsxColumnDate
public XlsxColumnDate()
-
-
Method Details
-
setFORMAT
Description copied from class:XlsxComponentSets the number type format of the cell.- Overrides:
setFORMATin classXlsxComponent- Parameters:
s- Allow format are:- '%' - Percent float format.
- 'i' - Integer format.
- 'f' - Float format.
- 'e' - Accounting red float format.
- default - Account float format.
-
setCELLFORMAT
-
setRANGE
Define the range of the date, a "from" range or a "to" range.- Parameters:
s- The range to set, the possible values are "FROM" and "TO".
-
setDATEFORMAT
Sets if theXlsxColumnDateis represent as a real Date format into the excel sheet or not.
If this attribute it's set totrueor '1', the column'sXSSFCellStylewill be set as Date into the sheet and also their values will be set asDateobject.
In this way the excel sheet will treat the data in the cells, from the column, as dates and no longer as text strings (for example in the definition of a filter on the column).- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
-
hasDateFormat
public boolean hasDateFormat()Gets if theXlsxColumnDateis represent as a real Date format into the excel sheet or not.- Returns:
trueor "1",falseor "0".
If this columns has a date format, itsXSSFCellStylewill be set as Date into the sheet and also their values will be set asDateobject.
In this way the excel sheet will treat the data in the cells, from the column, as dates and no longer as text strings (for example in the definition of a filter on the column).
-
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- Overrides:
giveCellin classXlsxColumn- Parameters:
sheet- The sheetrow- The list of rowsrowNum- The number of rowcolNum- The cell numbercs- The XSSFCellStyle- Returns:
- The cell
-
setHOURSFORMAT
public void setHOURSFORMAT(int hoursFormat) Sets the hour format of the column.
By default the set value is the "12 hours format" e.g. 10PM or 10AM.- Parameters:
hoursFormat- The format to use for the column. For Example, using theCalendarclass, possible value are "Calendar.HOUR" or "Calendar.HOUR_OF_DAY".
-
getHOURSFORMAT
public int getHOURSFORMAT()Gets the hour format of the column.
By default the get value is the "12 hours format" e.g.10PM or 10AM.- Returns:
- The hour format of the column.
-