@ Override protected void updateVisibility ( boolean visible , boolean activated ) { tab . setVisible ( visible ) ; tab . setSelected ( visible && activated ) ; }
Sets the visibility and selection state of the tab .