0
|
迈达斯之手发布于2017-9-12 17:55(编辑于 2023-9-6 09:34)
|
555
|
-
TCNicky(提问者)
- 自己写的源码,参数都先写死了做一下测试
package fr.data;
import java.util.Date;
import com.fr.base.TableData;
import com.fr.data.AbstractTableData;
import com.hr.data.SapData;
public class SapDataGet extends AbstractTableData implements TableData{
private String[] columnNames;
private Object[][] rowData;
public SapDataGet() {
String[] columnNames = {\"数据起始时间\",\"数据结束时间\",\"数据量\",\"上传日期\"};
Object[][] rowData={{\"20160101\",\"20160101\",\"200\",\"20160107\"},
{\"20160102\",\"20160102\",\"200\",\"20160107\"}};
this.columnNames = columnNames;
this.rowData = rowData;
}
public int getColumnCount() {
return columnNames.length;
}
public String getColumnName(int columnIndex) {
return columnNames[columnIndex];
}
public int getRowCount() {
return rowData.length;
}
public Object getValueAt(int rowIndex, int columnIndex) {
return rowData[rowIndex][columnIndex];
}
}
|
|