/** * Calls the overriden method and then notifies the given component it has * been added in this component. This method does nothing if the given sub * component does not provide the {@link SuperControllerNotifier} interface. * * @param subComponent the component to be added inside this component. * @throws IllegalContentException if the given component cannot be added * inside 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 addFcSubComponent (final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { _super_addFcSubComponent(subComponent); SuperControllerNotifier scn = getFcSuperControllerNotifier(subComponent); if (scn != null) { try { Component c = (Component)_this_weaveableC.getFcInterface("component"); scn.addedToFc(c); } catch (NoSuchInterfaceException ignored) { } } }
/** * Calls the overriden method and then notifies the given component it has * been added in this component. This method does nothing if the given sub * component does not provide the {@link SuperControllerNotifier} interface. * * @param subComponent the component to be added inside this component. * @throws IllegalContentException if the given component cannot be added * inside 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 addFcSubComponent (final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { _super_addFcSubComponent(subComponent); SuperControllerNotifier scn = getFcSuperControllerNotifier(subComponent); if (scn != null) { try { Component c = (Component)_this_weaveableC.getFcInterface("component"); scn.addedToFc(c); } catch (NoSuchInterfaceException ignored) { } } }