/** * Checks that the given component is really a sub component, 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 * org.objectweb.fractal.api.control.LifeCycleController} interface, but it is not in an appropriate state * to perform this operation. */ public void removeFcSubComponent (final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { if (!containsFcSubComponent(subComponent)) { throw new ChainedIllegalContentException( null, _this_weaveableC, subComponent, "Not a sub component"); } _super_removeFcSubComponent(subComponent); }
/** * Checks that the given component is really a sub component, 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 * org.objectweb.fractal.api.control.LifeCycleController} interface, but it is not in an appropriate state * to perform this operation. */ public void removeFcSubComponent (final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { if (!containsFcSubComponent(subComponent)) { throw new ChainedIllegalContentException( null, _this_weaveableC, subComponent, "Not a sub component"); } _super_removeFcSubComponent(subComponent); }