WEB开发网
开发学院软件开发Java ADF(ORACLE JEE 平台)中Table的显示detail功能的使... 阅读

ADF(ORACLE JEE 平台)中Table的显示detail功能的使用

 2009-09-24 00:00:00 来源:WEB开发网   
核心提示: 其中红色部分JSP就是显示Details信息,disclosureListener="#{tableTest.showDetails}" 为Table加一个打开关闭Details信息的监听器,ADF(ORACLE JEE 平台)中Table的显示detail功能的使用(2),

其中红色部分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;
    }
}

Tags:ADF ORACLE JEE

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接