首页 > 文档 > TableRow表格行对象
2017
07-20

TableRow表格行对象

Name

TableRow表格行对象

Examples

Table table;

 

void setup() {

 

table = new Table();

 

table.addColumn(“number”, Table.INT);

table.addColumn(“mass”, Table.FLOAT);

table.addColumn(“name”, Table.STRING);

 

TableRow row = table.addRow();

row.setInt(“number”, 8);

row.setFloat(“mass”, 15.9994);

row.setString(“name”, “Oxygen”);

 

println(row.getInt(“number”)); // Prints 8

println(row.getFloat(“mass”)); // Prints 15.9994

println(row.getString(“name”)); // Prints “Oxygen

}

Description

TableRow object represents a single row of data values, stored in columns, from a table.

Additional TableRow methods are documented in the Processing Data Javadoc.

TableRow 对象表示从表中存储在列中的一行数据值。

 

在处理数据 javadoc 中记录了其他的 TableRow 方法。

Methods

getString()

Get an String value from the specified column从指定列获取字符串值

getInt()

Get an integer value from the specified column从指定列获取整数值

getFloat()

Get a float value from the specified column

从指定列获取浮点值

setString()

Store a String value in the specified column

在指定的列中存储字符串值

setInt()

Store an integer value in the specified column在指定的列中存储一个整数值

setFloat()

Store a float value in the specified column

在指定列中存储浮点值

getColumnCount()

Get the column count.
获取列计数

getColumnTitle()

Get the column title.
获取列标题

Related

Table
addRow()
removeRow()
clearRows()
getRow()
rows()



最后编辑:
作者:卡萨布兰卡
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。