forked from demo/example
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
649 B
29 lines
649 B
4 years ago
|
package com.fr.data;
|
||
|
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
|
||
|
public class SimpleArrayTableDataDemo extends SimpleTableData {
|
||
|
|
||
|
/**
|
||
|
* 初始化列头
|
||
|
* @return
|
||
|
*/
|
||
|
@Override
|
||
|
public String[] initColumnNames() {
|
||
|
return new String[]{"Name", "Score"};
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 加载行列数据
|
||
|
* @return
|
||
|
*/
|
||
|
@Override
|
||
|
public List<Object[]> loadData() {
|
||
|
ArrayList<Object[]> valueList = new ArrayList();
|
||
|
valueList.add(new Object[]{"Alex", 15});
|
||
|
valueList.add(new Object[]{"Helly", 22});
|
||
|
valueList.add(new Object[]{"Bobby", 99});
|
||
|
return valueList;
|
||
|
}
|
||
|
}
|