/** * If the added tab is marked as selected, update the selected tab. * * @see org.fujion.component.BaseUIComponent#afterAddChild(org.fujion.component.BaseComponent) */ @Override protected void afterAddChild(BaseComponent child) { if (((Tab) child).isSelected()) { setSelectedTab((Tab) child); } }
/** * Sets the tabs selected status. * * @param selected The new selected status. * @param notifyParent If true, notify the parent tab view of the status change. */ protected void _setSelected(boolean selected, boolean notifyParent) { if (propertyChange("selected", this.selected, this.selected = selected, true)) { if (notifyParent && getParent() != null) { getTabview().setSelectedTab(selected ? this : null); } } }