/** * Checks that the component is stopped and then calls the overriden method. * * @param subComponent the component to be removed from this component. * @throws IllegalContentException if the given component cannot be removed * from this component. * @throws IllegalLifeCycleException if this component has a {@link * LifeCycleController} interface, but it is not in an appropriate state * to perform this operation. */ public void removeFcSubComponent (final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { if (_this_weaveableOptLC != null) { String state = _this_weaveableOptLC.getFcState(); if (!LifeCycleController.STOPPED.equals(state)) { throw new ChainedIllegalLifeCycleException( null, _this_weaveableOptC, "The component is not stopped"); } } _super_removeFcSubComponent(subComponent); }
/** * Checks that the component is stopped and then calls the overriden method. * * @param subComponent the component to be removed from this component. * @throws IllegalContentException if the given component cannot be removed * from this component. * @throws IllegalLifeCycleException if this component has a {@link * LifeCycleController} interface, but it is not in an appropriate state * to perform this operation. */ public void removeFcSubComponent (final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { if (_this_weaveableOptLC != null) { String state = _this_weaveableOptLC.getFcState(); if (!LifeCycleController.STOPPED.equals(state)) { throw new ChainedIllegalLifeCycleException( null, _this_weaveableC, "The component is not stopped"); } } _super_removeFcSubComponent(subComponent); }