Exemplo n.º 1
0
 @Override
 public void action(T selectedObject) {
   if (detailPage != null) {
     updateDetailPage(selectedObject);
   } else {
     detailPage = createDetailPage(selectedObject);
     if (detailPage != null) {
       Frontend.showDetail(TablePageWithDetail.this, detailPage);
     }
   }
 }
Exemplo n.º 2
0
 private void updateDetailPage(T selectedObject) {
   DETAIL_PAGE updatedDetailPage = updateDetailPage(detailPage, selectedObject);
   if (Frontend.isDetailShown(detailPage)) {
     if (updatedDetailPage == null || updatedDetailPage != detailPage) {
       Frontend.hideDetail(detailPage);
     }
   }
   if (updatedDetailPage != null) {
     Frontend.showDetail(TablePageWithDetail.this, updatedDetailPage);
     detailPage = updatedDetailPage;
   }
 }