|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.datatable.TableCell
public class TableCell
A single cell in a DataTable.
Contains a value, a formatted value, and a dictionary of custom properties.
The value should match the type of the column in which it resides. See ColumnDescription.
The formatted value is used for display purposes. The custom properties can be used for any
purpose.
| Constructor Summary | |
|---|---|
TableCell(boolean value)
Constructs a new TableCell with a boolean value. |
|
TableCell(double value)
Constructs a new TableCell with a number value. |
|
TableCell(java.lang.String value)
Constructs a new TableCell with a text value. |
|
TableCell(TableCell other)
Copy constructor. |
|
TableCell(Value value)
Construct a new TableCell with the parameter as the inner value. |
|
TableCell(Value value,
java.lang.String formattedValue)
Construct a new TableCell with the parameter as the inner value and with a FormattedValue representing this.value. |
|
| Method Summary | |
|---|---|
TableCell |
clone()
Returns a copy of this TableCell. |
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. |
java.lang.String |
getFormattedValue()
Returns the formatted value of this cell. |
static java.util.Comparator<TableCell> |
getLocalizedComparator(com.ibm.icu.util.ULocale ulocale)
Returns a comparator that compares table cells according to their inner values and, in the case of text values, according to a given locale. |
ValueType |
getType()
Returns the type of this cell. |
Value |
getValue()
Returns the inner value of this cell. |
boolean |
isNull()
Tests whether this cell's value is a logical null. |
void |
setCustomProperty(java.lang.String propertyKey,
java.lang.String propertyValue)
Sets a custom property. |
void |
setFormattedValue(java.lang.String formattedValue)
Set a formatted value for the value in this table cell. |
java.lang.String |
toString()
Returns the String representation of the inner value. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableCell(Value value)
value - The inner value of this cell.
public TableCell(Value value,
java.lang.String formattedValue)
value - The inner value of this cell.formattedValue - The formatted form of this value.public TableCell(TableCell other)
other - The other table cell to construct from.public TableCell(java.lang.String value)
value - The inner text value of this cell.public TableCell(boolean value)
value - The inner boolean value of this cell.public TableCell(double value)
value - The inner number value of this cell.| Method Detail |
|---|
public static java.util.Comparator<TableCell> getLocalizedComparator(com.ibm.icu.util.ULocale ulocale)
ulocale - The ULocale defining the order relation of text values.
public java.lang.String getFormattedValue()
public void setFormattedValue(java.lang.String formattedValue)
formattedValue - The formatted value to set.public Value getValue()
public ValueType getType()
public boolean isNull()
public java.lang.String toString()
toString in class java.lang.Objectpublic 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 TableCell clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||