ADF(ORACLE JEE 平台)中Table的显示detail功能的使用
2009-09-24 00:00:00 来源:WEB开发网其中红色部分JSP就是显示Details信息。
disclosureListener="#{tableTest.showDetails}" 为Table加一个打开关闭Details信息的监听器,在监听器里面控制显示。
BackBean如下:
public class TableDataBackBean {
private List allData = new ArrayList();
private boolean showDetail = false;
public TableDataBackBean() {
TableData tableDate1 = new TableData("1","vincent","ma","vincent ma'detail");
TableData tableDate2 = new TableData("2","barry","fan","barry fan'detail");
TableData tableDate3 = new TableData("3","jeny","chen","jeny chen'detail");
TableData tableDate4 = new TableData("4","ross","han","ross han'detail");
TableData tableDate5 = new TableData("5","robin","liu","robin liu'detail");
TableData tableDate6 = new TableData("6","walker","liu","walker liu'detail");
allData.add(tableDate1);
allData.add(tableDate2);
allData.add(tableDate3);
allData.add(tableDate4);
allData.add(tableDate5);
allData.add(tableDate6);
}
public void showDetails(DisclosureEvent disclosureEvent) {
if(disclosureEvent.isExpanded()){
this.showDetail = true;
}
}
public void setAllData(List allData) {
this.allData = allData;
}
public List getAllData() {
return allData;
}
public void setShowDetail(boolean showDetail) {
this.showDetail = showDetail;
}
public boolean isShowDetail() {
return showDetail;
}
}
- ››oracle 中 UPDATE nowait 的使用方法
- ››Oracle ORA-12560解决方法
- ››Oracle 10g RAC 常用维护命令
- ››Oracle如何在ASM中定位文件的分布
- ››Oracle的DBMS_RANDOM.STRING 的用法
- ››oracle 外部表导入时间日期类型数据,多字段导入
- ››Oracle中查找重复记录
- ››oracle修改用户登录密码
- ››Oracle创建删除用户、角色、表空间、导入导出等命...
- ››Oracle中登陆时报ORA-28000: the account is lock...
- ››Oracle数据库在配置文件中更改最大连接数
- ››Oracle中在pl/sql developer修改表的两种方式
更多精彩
赞助商链接