/** * Displays the current page. If it is TAB_STYLE, this method will simply select the tab that has the current page. * If it is any of the other styles, this method will show the page that is already added in a CardLayout in * createPagePanel method. * * @param currentPage */ protected void showCurrentPage(AbstractDialogPage currentPage) { if (currentPage != null) { if (getStyle() == TAB_STYLE) { _tabbedPane.setSelectedComponent(currentPage); } else { _cardLayout.show(_pagesPanel, currentPage.getFullTitle()); } currentPage.focusDefaultFocusComponent(); } }
/** * Displays the current page. If it is TAB_STYLE, this method will simply select the tab that has the current page. * If it is any of the other styles, this method will show the page that is already added in a CardLayout in * createPagePanel method. * * @param currentPage the current page */ protected void showCurrentPage(AbstractDialogPage currentPage) { if (currentPage != null) { if (getStyle() == TAB_STYLE) { _tabbedPane.setSelectedComponent(currentPage); } else { _cardLayout.show(_pagesPanel, currentPage.getFullTitle()); } currentPage.focusDefaultFocusComponent(); } }