org.ow2.jasmine.jade.reflex.api.control
Interface ContentNotificationController

All Known Implementing Classes:
ReflexContentMixin

public interface ContentNotificationController

This interface is used to notify a content update between the meta and the execution level (and vice versa).

Author:
Noel de palma

Method Summary
 void addFcSubComponentNotification(org.objectweb.fractal.api.Component subComponent)
          Adds a sub-component to this component.
 void removeFcSubComponentNotification(org.objectweb.fractal.api.Component subComponent)
          Removes a sub-component from this component.
 

Method Detail

addFcSubComponentNotification

void addFcSubComponentNotification(org.objectweb.fractal.api.Component subComponent)
                                   throws org.objectweb.fractal.api.control.IllegalContentException,
                                          org.objectweb.fractal.api.control.IllegalLifeCycleException
Adds a sub-component to this component. More precisely adds the component whose reference is given as a sub-component of the component to which this interface belongs. If C is the sub-component set returned by getFcSubComponents just before a call to this method, and C' is the sub-component set just after this call, then subComponent is guaranteed to be in C', but C' is not guaranted to be the union of C and {subComponent}, nor to contain all the elements of C.

Parameters:
subComponent - the component to be added inside this component.
Throws:
org.objectweb.fractal.api.control.IllegalContentException - if the given component cannot be added inside this component.
org.objectweb.fractal.api.control.IllegalLifeCycleException - if this component has a LifeCycleController interface, but it is not in an appropriate state to perform this operation.

removeFcSubComponentNotification

void removeFcSubComponentNotification(org.objectweb.fractal.api.Component subComponent)
                                      throws org.objectweb.fractal.api.control.IllegalContentException,
                                             org.objectweb.fractal.api.control.IllegalLifeCycleException
Removes a sub-component from this component. More precisely removes the sub-component whose reference is given from the component to which this interface belongs. If C is the sub-component set returned by getFcSubComponents just before a call to this method, and C' is the sub-component set just after this call, then subComponent is guaranteed not to be in C', but C' is not guaranted to be the difference of C and {subComponent}, nor to contain all the elements of C distinct from subComponent.

Parameters:
subComponent - the component to be removed from this component.
Throws:
org.objectweb.fractal.api.control.IllegalContentException - if the given component cannot be removed from this component.
org.objectweb.fractal.api.control.IllegalLifeCycleException - if this component has a LifeCycleController interface, but it is not in an appropriate state to perform this operation.


Copyright © 2008 OW2 Consortium. All Rights Reserved.