Class DataTable
- java.lang.Object
-
- org.neotropic.kuwaiba.modules.optional.reports.javascript.DataTable
-
public class DataTable extends Object
A data table is a matrix used represent the data set to be consumed by a chart.- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataTable.DataType
Enum of the possible data types support by the cells
-
Constructor Summary
Constructors Constructor Description DataTable(DataTable.DataType[] types, String[] labels)
DataTable(DataTable.DataType[] types, String[] labels, String[] colors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRow(String[] row)
static String
cellValue(DataTable.DataType dataType, String value)
String[]
getColors()
String[]
getLabels()
List<String[]>
getRows()
DataTable.DataType[]
getTypes()
void
setColors(String[] colors)
void
setLabels(String[] labels)
void
setRows(List<String[]> rows)
void
setTypes(DataTable.DataType[] types)
-
-
-
Constructor Detail
-
DataTable
public DataTable(DataTable.DataType[] types, String[] labels)
-
DataTable
public DataTable(DataTable.DataType[] types, String[] labels, String[] colors)
-
-
Method Detail
-
addRow
public void addRow(String[] row)
-
getTypes
public DataTable.DataType[] getTypes()
-
setTypes
public void setTypes(DataTable.DataType[] types)
-
getLabels
public String[] getLabels()
-
setLabels
public void setLabels(String[] labels)
-
getColors
public String[] getColors()
-
setColors
public void setColors(String[] colors)
-
cellValue
public static String cellValue(DataTable.DataType dataType, String value)
-
-