Package com.smartsheet.api.models
Class Cell
- java.lang.Object
-
- com.smartsheet.api.models.Cell
-
- Direct Known Subclasses:
CellHistory
,ReportCell
public class Cell extends java.lang.Object
Represents the Cell object that holds data in a sheet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Cell.AddRowCellsBuilder
A convenience class for quickly creating a List of cells to add.static class
Cell.UpdateRowCellsBuilder
A convenience class for quickly creating a List of cells to update.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
getColumnId()
Gets the column id for this cell.ColumnType
getColumnType()
Gets the column columnType.java.lang.String
getConditionalFormat()
java.lang.String
getDisplayValue()
Gets the display value used on special columns such as "Contact List".Format
getFormat()
java.lang.String
getFormula()
Gets the formula for this cell.Hyperlink
getHyperlink()
Image
getImage()
Gets the image for this cell.CellLink
getLinkInFromCell()
java.util.List<CellLink>
getLinksOutToCells()
ObjectValue
getObjectValue()
Get object representation of the cell's valuejava.lang.Boolean
getOverrideValidation()
Gets the value of the overrideValidation flag.java.lang.Long
getRowId()
Gets the row id for this cell.java.lang.Boolean
getStrict()
Gets the strict value for this cell.ColumnType
getType()
Gets the column columnType.java.lang.Object
getValue()
Gets the value.Cell
setColumnId(java.lang.Long columnId)
Sets the column id for this cell.Cell
setColumnType(ColumnType columnType)
Sets the column columnType.Cell
setConditionalFormat(java.lang.String conditionalFormat)
Cell
setDisplayValue(java.lang.String displayValue)
Sets the display value used on columns special columns such as "Contact List".Cell
setFormat(Format format)
Cell
setFormula(java.lang.String formula)
Sets the formula for this cell.Cell
setHyperlink(Hyperlink hyperlink)
Cell
setImage(Image image)
Sets the image for this cell.Cell
setLinkInFromCell(CellLink linkInFromCell)
Cell
setLinksOutToCells(java.util.List<CellLink> linksOutToCells)
Cell
setObjectValue(ObjectValue objectValue)
Set object representation of the cell's valueCell
setOverrideValidation(java.lang.Boolean overrideValidation)
Sets the value of the overrideValidation flag.Cell
setRowId(java.lang.Long rowId)
Sets the row id for this cell.Cell
setStrict(java.lang.Boolean strict)
Sets the strict formatting rule for this cell.Cell
setType(ColumnType type)
Sets the column columnType.Cell
setValue(java.lang.Object value)
Sets the value.
-
-
-
Method Detail
-
getColumnType
public ColumnType getColumnType()
Gets the column columnType.- Returns:
- the columnType
-
setColumnType
public Cell setColumnType(ColumnType columnType)
Sets the column columnType.- Parameters:
columnType
- the new columnType
-
getType
public ColumnType getType()
Gets the column columnType.- Returns:
- the columnType
-
setType
public Cell setType(ColumnType type)
Sets the column columnType.- Parameters:
type
- the new columnType
-
getValue
public java.lang.Object getValue()
Gets the value. Can be one of columnTypeString
,Number
, orBoolean
- Returns:
- the value
-
setValue
public Cell setValue(java.lang.Object value)
Sets the value. Can be one of columnTypeString
,Number
, orBoolean
- Parameters:
value
- the new value
-
getObjectValue
public ObjectValue getObjectValue()
Get object representation of the cell's value- Returns:
- objectValue
-
setObjectValue
public Cell setObjectValue(ObjectValue objectValue)
Set object representation of the cell's value
-
getDisplayValue
public java.lang.String getDisplayValue()
Gets the display value used on special columns such as "Contact List".- Returns:
- the display value
-
setDisplayValue
public Cell setDisplayValue(java.lang.String displayValue)
Sets the display value used on columns special columns such as "Contact List".- Parameters:
displayValue
- the new display value
-
getColumnId
public java.lang.Long getColumnId()
Gets the column id for this cell.- Returns:
- the column id
-
setColumnId
public Cell setColumnId(java.lang.Long columnId)
Sets the column id for this cell.- Parameters:
columnId
- the new column id
-
getRowId
public java.lang.Long getRowId()
Gets the row id for this cell.- Returns:
- the row id
-
setRowId
public Cell setRowId(java.lang.Long rowId)
Sets the row id for this cell.- Parameters:
rowId
- the new row id
-
getFormula
public java.lang.String getFormula()
Gets the formula for this cell.- Returns:
- the formula
-
setFormula
public Cell setFormula(java.lang.String formula)
Sets the formula for this cell.- Parameters:
formula
- the new formula- See Also:
- Using Formulas
-
getStrict
public java.lang.Boolean getStrict()
Gets the strict value for this cell.- Returns:
- the strict
- See Also:
- Column Types
-
setStrict
public Cell setStrict(java.lang.Boolean strict)
Sets the strict formatting rule for this cell.- Parameters:
strict
- the new strict- See Also:
- Column Types
-
getHyperlink
public Hyperlink getHyperlink()
- Returns:
- hyperlink to a URL, sheet, or report
-
setHyperlink
public Cell setHyperlink(Hyperlink hyperlink)
- Parameters:
hyperlink
- hyperlink to a URL, sheet, or report to set
-
getLinkInFromCell
public CellLink getLinkInFromCell()
- Returns:
- inbound link from a cell in another sheet
-
setLinkInFromCell
public Cell setLinkInFromCell(CellLink linkInFromCell)
- Parameters:
linkInFromCell
- inbound link from a cell in another sheet to set
-
getLinksOutToCells
public java.util.List<CellLink> getLinksOutToCells()
- Returns:
- array of CellLink objects
-
setLinksOutToCells
public Cell setLinksOutToCells(java.util.List<CellLink> linksOutToCells)
- Parameters:
linksOutToCells
- array of CellLink objects
-
getConditionalFormat
public java.lang.String getConditionalFormat()
- Returns:
- the format descriptor describing this cell’s conditional format
-
setConditionalFormat
public Cell setConditionalFormat(java.lang.String conditionalFormat)
- Parameters:
conditionalFormat
- the format descriptor describing this cell’s conditional format to set
-
getImage
public Image getImage()
Gets the image for this cell.- Returns:
- image
-
getOverrideValidation
public java.lang.Boolean getOverrideValidation()
Gets the value of the overrideValidation flag.- Returns:
- the overrideValidation flag
-
setOverrideValidation
public Cell setOverrideValidation(java.lang.Boolean overrideValidation)
Sets the value of the overrideValidation flag.- Parameters:
overrideValidation
- the new overrideValidation- Returns:
- the Cell
-
-