private void pageLoaded(Page page, PageController pageController) { pageController.setPage(page); if (headerController != null) { headerController.setPage(contentModel.getHeader()); } if (footerController != null) { footerController.setPage(contentModel.getFooter()); } }
public void initHeaders() { if (contentModel.getHeader() != null) { playerView.showHeader(); headerController = new PageController(pageController1.getPlayerServices()); headerController.setView(playerView.getHeaderView()); // headerController.setPage(contentModel.getHeader()); } if (contentModel.getFooter() != null) { playerView.showFooter(); footerController = new PageController(pageController1.getPlayerServices()); footerController.setView(playerView.getFooterView()); // footerController.setPage(contentModel.getFooter()); } }