Sometimes wither in the Panel Tabbed Layout or Panel Accordion, we would like to find if the show detail item is collapsed or expanded. This can be done as below
import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
public void onClickSDITwo(DisclosureEvent disclosureEvent) {
RichShowDetailItem item = (RichShowDetailItem)disclosureEvent.getSource();
if (disclosureEvent.isExpanded() == true) {
// If the show detail item is expanded then show all its children
item.setDisclosed(true);
}
else if (disclosureEvent.isExpanded() == false) {
// If the show detail item is collapsed then hide all its children
item.setDisclosed(false);
}
}
import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
public void onClickSDITwo(DisclosureEvent disclosureEvent) {
RichShowDetailItem item = (RichShowDetailItem)disclosureEvent.getSource();
if (disclosureEvent.isExpanded() == true) {
// If the show detail item is expanded then show all its children
item.setDisclosed(true);
}
else if (disclosureEvent.isExpanded() == false) {
// If the show detail item is collapsed then hide all its children
item.setDisclosed(false);
}
}
No comments:
Post a Comment