Class PrometheusSheetCell
java.lang.Object
io.github.tonywasher.joceanus.prometheus.service.sheet.PrometheusSheetCell
Class representing a cell within a sheet or a view.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPrometheusSheetCell(PrometheusSheetRow pRow, int pColIndex, boolean pReadOnly) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract BooleanObtain boolean value of the cell.byte[]getBytes()Obtain byte array value of the cell.intObtain the cell index.protected static PrometheusSheetCellStyleTypegetCellStyle(Object pValue) Obtain the required CellStyle.char[]Obtain char array value of the cell.abstract OceanusDategetDate()Obtain date value of the cell.abstract IntegerObtain integer value of the cell.abstract LonggetLong()Obtain long value of the cell.Obtain long value of the cell.abstract OceanusMoneygetMoney()Obtain money value of the cell.Obtain the cell position.abstract OceanusPricegetPrice()Obtain price value of the cell.abstract OceanusRategetRate()Obtain rate value of the cell.abstract OceanusRatiogetRatio()Obtain ratio value of the cell.getRow()Obtain the underlying row.getSheet()Obtain the underlying sheet.abstract StringObtain string value of the cell.abstract OceanusUnitsgetUnits()Obtain units value of the cell.getView()Obtain the underlying view.booleanIs the cell readOnly?voidsetBoolean(Boolean pValue) Set boolean value of the cell.protected abstract voidsetBooleanValue(Boolean pValue) Set non-null boolean value of the cell.voidsetBytes(byte[] pValue) Set byte array value of the cell.voidsetCharArray(char[] pValue) Set char array value of the cell.voidsetDate(OceanusDate pValue) Set date value of the cell.protected abstract voidsetDateValue(OceanusDate pValue) Set non-null date value of the cell.voidsetDecimal(OceanusDecimal pValue) Set decimal value of the cell.protected abstract voidsetDecimalValue(OceanusDecimal pValue) Set non-null decimal value of the cell.voidSet header value of the cell.protected abstract voidsetHeaderValue(String pValue) Set non-null header value of the cell.voidsetInteger(Integer pValue) Set integer value of the cell.protected abstract voidsetIntegerValue(Integer pValue) Set non-null integer value of the cell.voidSet long value of the cell.voidsetLongAsString(Long pValue) Set long value of the cell.protected abstract voidsetLongValue(Long pValue) Set non-null long value of the cell.voidsetMonetary(OceanusMoney pValue) Set monetary value of the cell.protected abstract voidsetMonetaryValue(OceanusMoney pValue) Set non-null monetary value of the cell.voidsetNull()Set null value for the cell.protected abstract voidSet null value for the cell.voidSet string value of the cell.protected abstract voidsetStringValue(String pValue) Set non-null string value of the cell.
-
Constructor Details
-
PrometheusSheetCell
Constructor.- Parameters:
pRow- the row for the cellpColIndex- the column indexpReadOnly- is the cell readOnly?
-
-
Method Details
-
getSheet
Obtain the underlying sheet.- Returns:
- the underlying sheet
-
getRow
Obtain the underlying row.- Returns:
- the underlying row
-
getView
Obtain the underlying view.- Returns:
- the underlying view
-
getPosition
Obtain the cell position.- Returns:
- position
-
isReadOnly
public boolean isReadOnly()Is the cell readOnly?- Returns:
- true/false
-
getCellIndex
public int getCellIndex()Obtain the cell index.- Returns:
- the index
-
getBoolean
Obtain boolean value of the cell.- Returns:
- the boolean value
-
getDate
Obtain date value of the cell.- Returns:
- the date value
- Throws:
OceanusException- on error
-
getInteger
Obtain integer value of the cell.- Returns:
- the integer value
- Throws:
OceanusException- on error
-
getLong
Obtain long value of the cell.- Returns:
- the long value
- Throws:
OceanusException- on error
-
getLongFromString
Obtain long value of the cell.- Returns:
- the long value
- Throws:
OceanusException- on error
-
getMoney
Obtain money value of the cell.- Returns:
- the money value
- Throws:
OceanusException- on error
-
getPrice
Obtain price value of the cell.- Returns:
- the price value
- Throws:
OceanusException- on error
-
getRate
Obtain rate value of the cell.- Returns:
- the rate value
- Throws:
OceanusException- on error
-
getUnits
Obtain units value of the cell.- Returns:
- the units value
- Throws:
OceanusException- on error
-
getRatio
Obtain ratio value of the cell.- Returns:
- the ratio value
- Throws:
OceanusException- on error
-
getString
Obtain string value of the cell.- Returns:
- the string value
-
getBytes
public byte[] getBytes()Obtain byte array value of the cell.- Returns:
- the byte array value
-
getCharArray
Obtain char array value of the cell.- Returns:
- the char array value
- Throws:
OceanusException- on error
-
setNull
Set null value for the cell.- Throws:
OceanusException- on error
-
setNullValue
Set null value for the cell.- Throws:
OceanusException- on error
-
setBoolean
Set boolean value of the cell.- Parameters:
pValue- the integer value- Throws:
OceanusException- on error
-
setBooleanValue
Set non-null boolean value of the cell.- Parameters:
pValue- the integer value- Throws:
OceanusException- on error
-
setDate
Set date value of the cell.- Parameters:
pValue- the date value- Throws:
OceanusException- on error
-
setDateValue
Set non-null date value of the cell.- Parameters:
pValue- the integer value- Throws:
OceanusException- on error
-
setInteger
Set integer value of the cell.- Parameters:
pValue- the integer value- Throws:
OceanusException- on error
-
setIntegerValue
Set non-null integer value of the cell.- Parameters:
pValue- the integer value- Throws:
OceanusException- on error
-
setLong
Set long value of the cell.- Parameters:
pValue- the integer value- Throws:
OceanusException- on error
-
setLongAsString
Set long value of the cell.- Parameters:
pValue- the integer value- Throws:
OceanusException- on error
-
setLongValue
Set non-null long value of the cell.- Parameters:
pValue- the long value- Throws:
OceanusException- on error
-
setString
Set string value of the cell.- Parameters:
pValue- the string value- Throws:
OceanusException- on error
-
setStringValue
Set non-null string value of the cell.- Parameters:
pValue- the string value- Throws:
OceanusException- on error
-
setDecimal
Set decimal value of the cell.- Parameters:
pValue- the decimal value- Throws:
OceanusException- on error
-
setDecimalValue
Set non-null decimal value of the cell.- Parameters:
pValue- the decimal value- Throws:
OceanusException- on error
-
setMonetary
Set monetary value of the cell.- Parameters:
pValue- the monetary value- Throws:
OceanusException- on error
-
setMonetaryValue
Set non-null monetary value of the cell.- Parameters:
pValue- the monetary value- Throws:
OceanusException- on error
-
setHeader
Set header value of the cell.- Parameters:
pValue- the string value- Throws:
OceanusException- on error
-
setHeaderValue
Set non-null header value of the cell.- Parameters:
pValue- the header value- Throws:
OceanusException- on error
-
setBytes
Set byte array value of the cell.- Parameters:
pValue- the byte array value- Throws:
OceanusException- on error
-
setCharArray
Set char array value of the cell.- Parameters:
pValue- the byte array value- Throws:
OceanusException- on error
-
getCellStyle
Obtain the required CellStyle.- Parameters:
pValue- the value- Returns:
- the required CellStyle
-