@Override public void action(T selectedObject) { if (detailPage != null) { updateDetailPage(selectedObject); } else { detailPage = createDetailPage(selectedObject); if (detailPage != null) { Frontend.showDetail(TablePageWithDetail.this, detailPage); } } }
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; } }