|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.datatable.TableRow
public class TableRow
A single row in a DataTable.
The number of cells is expected to match the number of columns in the table, and the type
of the value held in each cell is expected to match the type defined for the corresponding
column.
| Constructor Summary | |
|---|---|
TableRow()
Create an empty row list. |
|
| Method Summary | |
|---|---|
void |
addCell(boolean value)
Adds a boolean value of a single cell to the end of the row. |
void |
addCell(double value)
Adds a numeric value of a single cell to the end of the row. |
void |
addCell(java.lang.String value)
Adds a text value of a single cell to the end of the row. |
void |
addCell(TableCell cell)
Adds a single cell to the end of the row. |
void |
addCell(Value value)
Adds a value of a single cell to the end of the row. |
TableRow |
clone()
Returns a clone of this TableRow. |
TableCell |
getCell(int index)
Returns a single cell by its index. |
java.util.List<TableCell> |
getCells()
Returns the list of all cell values. |
java.util.Map<java.lang.String,java.lang.String> |
getCustomProperties()
Returns an immutable map of the custom properties. |
java.lang.String |
getCustomProperty(java.lang.String key)
Retrieves a custom property. |
void |
setCustomProperty(java.lang.String propertyKey,
java.lang.String propertyValue)
Sets a custom property. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableRow()
| Method Detail |
|---|
public void addCell(TableCell cell)
cell - The cell's value.public void addCell(Value value)
value - The inner value of the cell to add.public void addCell(double value)
value - The inner numeric value of the cell to add.public void addCell(boolean value)
value - The inner boolean value of the cell to add.public void addCell(java.lang.String value)
value - The inner text value of the cell to add.public java.util.List<TableCell> getCells()
public TableCell getCell(int index)
index - The index of the cell to get.
public java.lang.String getCustomProperty(java.lang.String key)
key - The property key.
public void setCustomProperty(java.lang.String propertyKey,
java.lang.String propertyValue)
propertyKey - The property key.propertyValue - The property value.public java.util.Map<java.lang.String,java.lang.String> getCustomProperties()
public TableRow clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||