public class Cell extends Object
| Modifier and Type | Class and 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.
|
| Constructor and Description |
|---|
Cell()
Default constructor
|
Cell(Long id)
Construct a cell with specified column id
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getColumnId()
Gets the column id for this cell.
|
ColumnType |
getColumnType()
Gets the column columnType.
|
String |
getConditionalFormat() |
String |
getDisplayValue()
Gets the display value used on special columns such as "Contact List".
|
Format |
getFormat() |
String |
getFormula()
Gets the formula for this cell.
|
Hyperlink |
getHyperlink() |
Image |
getImage()
Gets the image for this cell.
|
CellLink |
getLinkInFromCell() |
List<CellLink> |
getLinksOutToCells() |
ObjectValue |
getObjectValue()
Get object representation of the cell's value
|
Boolean |
getOverrideValidation()
Gets the value of the overrideValidation flag.
|
Long |
getRowId()
Gets the row id for this cell.
|
Boolean |
getStrict()
Gets the strict value for this cell.
|
ColumnType |
getType()
Gets the column columnType.
|
Object |
getValue()
Gets the value.
|
Cell |
setColumnId(Long columnId)
Sets the column id for this cell.
|
Cell |
setColumnType(ColumnType columnType)
Sets the column columnType.
|
Cell |
setConditionalFormat(String conditionalFormat) |
Cell |
setDisplayValue(String displayValue)
Sets the display value used on columns special columns such as "Contact List".
|
Cell |
setFormat(Format format) |
Cell |
setFormula(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(List<CellLink> linksOutToCells) |
Cell |
setObjectValue(ObjectValue objectValue)
Set object representation of the cell's value
|
Cell |
setOverrideValidation(Boolean overrideValidation)
Sets the value of the overrideValidation flag.
|
Cell |
setRowId(Long rowId)
Sets the row id for this cell.
|
Cell |
setStrict(Boolean strict)
Sets the strict formatting rule for this cell.
|
Cell |
setType(ColumnType type)
Sets the column columnType.
|
Cell |
setValue(Object value)
Sets the value.
|
public Cell()
public Cell(Long id)
id - Column idpublic ColumnType getColumnType()
public Cell setColumnType(ColumnType columnType)
columnType - the new columnTypepublic ColumnType getType()
public Cell setType(ColumnType type)
type - the new columnTypepublic Object getValue()
public ObjectValue getObjectValue()
public Cell setObjectValue(ObjectValue objectValue)
objectValue - public String getDisplayValue()
public Cell setDisplayValue(String displayValue)
displayValue - the new display valuepublic Long getColumnId()
public Cell setColumnId(Long columnId)
columnId - the new column idpublic Long getRowId()
public Cell setRowId(Long rowId)
rowId - the new row idpublic String getFormula()
public Cell setFormula(String formula)
formula - the new formulapublic Boolean getStrict()
public Cell setStrict(Boolean strict)
strict - the new strictpublic Hyperlink getHyperlink()
public Cell setHyperlink(Hyperlink hyperlink)
hyperlink - hyperlink to a URL, sheet, or report to setpublic CellLink getLinkInFromCell()
public Cell setLinkInFromCell(CellLink linkInFromCell)
linkInFromCell - inbound link from a cell in another sheet to setpublic Cell setLinksOutToCells(List<CellLink> linksOutToCells)
linksOutToCells - array of CellLink objectspublic String getConditionalFormat()
public Cell setConditionalFormat(String conditionalFormat)
conditionalFormat - the format descriptor describing this cell’s conditional format to setpublic Image getImage()
public Boolean getOverrideValidation()
Copyright © 2014–2019 Smartsheet. All rights reserved.