org.objectweb.fractal.julia.control.content
Class SuperContentMixin

java.lang.Object
  extended by org.objectweb.fractal.julia.control.content.SuperContentMixin
All Implemented Interfaces:
ContentController

public abstract class SuperContentMixin
extends Object
implements ContentController

Provides notification functions to a ContentController.

Requirements


Field Summary
 Component _this_weaveableC
          The weaveableC field required by this mixin.
 
Method Summary
abstract  void _super_addFcSubComponent(Component subComponent)
          The addFcSubComponent method overriden by this mixin.
abstract  void _super_removeFcSubComponent(Component subComponent)
          The removeFcSubComponent method overriden by this mixin.
 void addFcSubComponent(Component subComponent)
          Calls the overriden method and then notifies the given component it has been added in this component.
 void removeFcSubComponent(Component subComponent)
          Calls the overriden method and then notifies the given component it has been removed from in this component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.fractal.api.control.ContentController
getFcInternalInterface, getFcInternalInterfaces, getFcSubComponents
 

Field Detail

_this_weaveableC

public Component _this_weaveableC
The weaveableC field required by this mixin. This field is supposed to reference the Component interface of the component to which this controller object belongs.

Method Detail

addFcSubComponent

public void addFcSubComponent(Component subComponent)
                       throws IllegalContentException,
                              IllegalLifeCycleException
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 SuperControllerNotifier interface.

Specified by:
addFcSubComponent in interface ContentController
Parameters:
subComponent - the component to be added inside this component.
Throws:
IllegalContentException - if the given component cannot be added inside this component.
IllegalLifeCycleException - if this component has a LifeCycleController interface, but it is not in an appropriate state to perform this operation.

removeFcSubComponent

public void removeFcSubComponent(Component subComponent)
                          throws IllegalContentException,
                                 IllegalLifeCycleException
Calls the overriden method and then notifies the given component it has been removed from in this component. This method does nothing if the given sub component does not provide the SuperControllerNotifier interface.

Specified by:
removeFcSubComponent in interface ContentController
Parameters:
subComponent - the component to be removed from this component.
Throws:
IllegalContentException - if the given component cannot be removed from this component.
IllegalLifeCycleException - if this component has a LifeCycleController interface, but it is not in an appropriate state to perform this operation.

_super_addFcSubComponent

public abstract void _super_addFcSubComponent(Component subComponent)
                                       throws IllegalContentException,
                                              IllegalLifeCycleException
The addFcSubComponent method overriden by this mixin.

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

_super_removeFcSubComponent

public abstract void _super_removeFcSubComponent(Component subComponent)
                                          throws IllegalContentException,
                                                 IllegalLifeCycleException
The removeFcSubComponent method overriden by this mixin.

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