我是 Smart gwt 的新手。基本上我的数据结构为:
一个
|_____ B1
|__C1
|__C2
|__C3
|_ B2
所以我创建了我的 ListGridRecord,如下所示:
公共类 VEPAreaRecord 扩展 ListGridRecord{
public VEPAreaRecord(){
}
/**
* @param vepAreaName
* @param checkStations
*/
public VEPAreaRecord(String vepAreaName, String[] checkStations) {
setVepAreaName(vepAreaName);
setCheckStations(checkStations);
}
/**
* @return the vepAreaName
*/
public final String getVepAreaName() {
return getAttribute("vepAreaName");
}
/**
* @param vepAreaName the vepAreaName to set
*/
public final void setVepAreaName(String vepAreaName) {
setAttribute("vepAreaName",vepAreaName);
}
/**
* @return the checkStations
*/
public final String[] getCheckStations() {
return getAttributeAsStringArray("checkStations");
}
/**
* @param checkStations the checkStations to set
*/
public final void setCheckStations(String[] checkStations) {
setAttribute("checkStations",checkStations);
}
}
但是在我的 ListGrid 中,我希望 tp 将我的数据显示为
区域 1 区域 2 区域 3
检查1 检查2 检查3
检查4
检查5
所以基本上我想要的是将我的行显示为列,反之亦然。但我不知道如何实现这一点。还是有其他组件可以解决这个问题?