Package overit.geocall.basic.ui.xlsx
Class XlsxColumnMeasure
- All Implemented Interfaces:
Serializable,Identified
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.basic.ui.xlsx.XlsxColumn
XlsxColumn.RowMergeUtil -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Anyprotected MeasureConverterprotected Measureprotected intprotected MeasureFields inherited from class overit.geocall.basic.ui.xlsx.XlsxColumnDouble
_df, _forcedFormat, _forceDouble, _forcedSymbols, _symbolsFields inherited from class overit.geocall.basic.ui.xlsx.XlsxColumnLong
_numberformatFields 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 TypeMethodDescriptionprotected MeasureConvertergetConverter(Measure input, Measure output) Gets theMeasurewith which show the value on server side.getLabel()Gets the label of the instance.getUnit()Gets theMeasurefrom which starts the conversion and that represent the unit whith which the value is represent on server side.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 etcvoidsetDISPLAYUNIT(String displayUnit) Sets unit of measurement with which show the value on client side.
The value will be converted (on the client side) into the display unit set, according to what has been set in the user's language dictionary.
For example, if it's set (as cultural convention) that $MEASURE_km=mi,2, it means that the display unit "km" will be converted into "mi"voidSets the unit of measurement, from which starts the conversion and that represent the unit whith which the value is shown on server side.protected voidMethods inherited from class overit.geocall.basic.ui.xlsx.XlsxColumnDouble
createDecimalFormat, getNextChar, getNextInt, getNextString, giveCellValue, setFORCEDOUBLE, setFORMAT, setSYMBOLSMethods 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, 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
-
unit
-
displayUnit
-
converter
-
outputPrecision
protected int outputPrecision -
any
-
-
Constructor Details
-
XlsxColumnMeasure
public XlsxColumnMeasure()
-
-
Method Details
-
setUNIT
Sets the unit of measurement, from which starts the conversion and that represent the unit whith which the value is shown on server side.- Parameters:
unit- The unit of measurement, from which starts the conversion and that represent the unit whith which the value is shown on server side.
-
setDISPLAYUNIT
Sets unit of measurement with which show the value on client side.
The value will be converted (on the client side) into the display unit set, according to what has been set in the user's language dictionary.
For example, if it's set (as cultural convention) that $MEASURE_km=mi,2, it means that the display unit "km" will be converted into "mi"- Parameters:
displayUnit- The unit of measurement with which show the value on client side.
-
getUnit
Gets theMeasurefrom which starts the conversion and that represent the unit whith which the value is represent on server side.- Returns:
- The
Measurefrom which starts the conversion and that represent the unit whith which the value is represent on server side.
-
getDisplayUnit
Gets theMeasurewith which show the value on server side.- Returns:
- The
Measurewith which show the value on server side.
-
getLabel
Description copied from class:XlsxComponentGets the label of the instance.- Overrides:
getLabelin classXlsxComponent- Returns:
- The label of the instance.
-
getConverter
-
setupConversion
protected void setupConversion() -
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 classXlsxColumnDouble- Parameters:
sheet- The sheetrow- The list of rowsrowNum- The number of rowcolNum- The cell numbercs- The XSSFCellStyle- Returns:
- The cell
-