com.google.gwt.visualization.client
Class AbstractDataTable
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.visualization.client.AbstractDataTable
- Direct Known Subclasses:
- DataTable, DataView
public class AbstractDataTable
- extends com.google.gwt.core.client.JavaScriptObject
This class implements the common methods of DataTable and DataView.
- See Also:
-
DataTable API Reference
Method Summary |
java.lang.String |
getColumnId(int columnIndex)
|
int |
getColumnIndex(java.lang.String columnId)
|
java.lang.String |
getColumnLabel(int columnIndex)
|
java.lang.String |
getColumnPattern(int columnIndex)
|
Range |
getColumnRange(int columnIndex)
|
AbstractDataTable.ColumnType |
getColumnType(int columnIndex)
|
java.lang.String |
getFormattedValue(int rowIndex,
int columnIndex)
|
int |
getNumberOfColumns()
|
int |
getNumberOfRows()
|
java.lang.String |
getProperty(int rowIndex,
int columnIndex,
java.lang.String name)
|
boolean |
getValueBoolean(int rowIndex,
int columnIndex)
|
java.util.Date |
getValueDate(int rowIndex,
int columnIndex)
|
double |
getValueDouble(int rowIndex,
int columnIndex)
|
int |
getValueInt(int rowIndex,
int columnIndex)
|
java.lang.String |
getValueString(int rowIndex,
int columnIndex)
|
TimeOfDay |
getValueTimeOfDay(int rowIndex,
int columnIndex)
|
boolean |
isValueNull(int rowIndex,
int columnIndex)
Check if the value in a cell is null. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AbstractDataTable
protected AbstractDataTable()
getColumnId
public final java.lang.String getColumnId(int columnIndex)
getColumnIndex
public final int getColumnIndex(java.lang.String columnId)
getColumnLabel
public final java.lang.String getColumnLabel(int columnIndex)
getColumnPattern
public final java.lang.String getColumnPattern(int columnIndex)
getColumnRange
public final Range getColumnRange(int columnIndex)
getColumnType
public final AbstractDataTable.ColumnType getColumnType(int columnIndex)
getFormattedValue
public final java.lang.String getFormattedValue(int rowIndex,
int columnIndex)
getNumberOfColumns
public final int getNumberOfColumns()
getNumberOfRows
public final int getNumberOfRows()
getProperty
public final java.lang.String getProperty(int rowIndex,
int columnIndex,
java.lang.String name)
getValueBoolean
public final boolean getValueBoolean(int rowIndex,
int columnIndex)
getValueDate
public final java.util.Date getValueDate(int rowIndex,
int columnIndex)
getValueDouble
public final double getValueDouble(int rowIndex,
int columnIndex)
getValueInt
public final int getValueInt(int rowIndex,
int columnIndex)
getValueString
public final java.lang.String getValueString(int rowIndex,
int columnIndex)
getValueTimeOfDay
public final TimeOfDay getValueTimeOfDay(int rowIndex,
int columnIndex)
isValueNull
public final boolean isValueNull(int rowIndex,
int columnIndex)
- Check if the value in a cell is null. Helpful for columns with primitive
types such as number and boolean.
- Parameters:
rowIndex
- The index of the row.columnIndex
- The index of the column.
- Returns:
true
if the value in the cell at rowIndex,
columnIndex is null, otherwise false
.