我是智能gwt的新蜂。 基本上我有我的数据结构为:如何在Smart gwt的ListGrid中将列显示为行?
一个
| _____ B1
|__C1
|__C2
|__C3
| _ B2
所以我创建了我ListGridRecord如下:
公众class 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 Area3中
检查1 CHECK2 chek3
check4
check5
所以基本上我想要的是显示我的行作为列,反之亦然。但我不知道如何实现这一目标。或者是否有其他组件需要处理?
嗨, 我们没有使用SQL数据库的输出将是“不是个SQL大师。我们都没有使用Smart GWT EE :-(所以我们不能实现你的两个解决方案。 – Madhura 2012-04-23 07:10:45