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;
}
}
輝喘薩泣似嬉蝕弌夕炎扮?乾窟泌和並周?
public void showDetails(DisclosureEvent disclosureEvent) {
if(disclosureEvent.isExpanded()){
this.showDetail = true;
}
}
椎担?泌採峪斑万?幣匯倖Detail 佚連椿? 匆祥頁嬉蝕及屈倖扮?購液及匯倖椿? 載酒汽
俐個showDetails圭隈泌和?
public String oldValue = "";
public void showDetails(DisclosureEvent disclosureEvent) {
CoreTable activityTable1 = (CoreTable)disclosureEvent.getComponent();
if(disclosureEvent.isExpanded()){
this.showDetail = true;
}
RowKeySet rowKeySet2 = activityTable1.getDisclosureState();
Set set =rowKeySet2.getKeySet();
Iterator iterator = set.iterator();
if(set.size()==2){
while(iterator.hasNext()){
String temp = (String)iterator.next();
System.out.println("Old Value:"+oldValue);
System.out.println("Two value:"+temp);
if(!temp.equals(oldValue)){
oldValue = temp;
System.out.println("Set Older Value ="+temp);
break;
}
}
set.clear();
set.add(new String(oldValue));
System.out.println("Display:"+oldValue);
}else if(set.size()==1){
while(iterator.hasNext()){
String temp = (String)iterator.next();
oldValue = temp;
}
set.add(new String(oldValue));
System.out.println("only One Display:"+oldValue);
}
activityTable1.setDisclosureState(rowKeySet2);
}
|