aokell.lib.control.content
Class ContentControllerImpl

java.lang.Object
  extended by aokell.lib.control.content.ContentControllerImpl
All Implemented Interfaces:
ContentControllerItf, Controller, ContentController
Direct Known Subclasses:
TemplateContentControllerImpl

public class ContentControllerImpl
extends Object
implements ContentControllerItf, Controller

Implementation for the content controller.

Author:
Lionel Seinturier

Field Summary
 
Fields inherited from interface aokell.lib.control.content.ContentControllerItf
NAME, TYPE
 
Constructor Summary
ContentControllerImpl()
           
 
Method Summary
 void addFcSubComponent(Component arg0)
           
 void cloneFcCtrl(Component dst, Object hints)
          Clone the controller state from the current component to another one.
 Object getFcInternalClientInterface(String interfaceName)
          Return the instance implementing the given client internal interface name.
 Object getFcInternalInterface(String interfaceName)
           
 Object[] getFcInternalInterfaces()
           
 List getFcInternalSingletonClientInterfaces()
          Return the list of client internal interfaces.
 Component[] getFcSubComponents()
           
 void initFcCtrl()
          Initialize the controller.
 void removeFcSubComponent(Component arg0)
           
 void setFcCompCtrl(Component compctrl)
          Set the reference towards the component controller associated to this controller.
protected  void testLifeCyleBeforeRemoving(Component arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentControllerImpl

public ContentControllerImpl()
Method Detail

getFcInternalInterfaces

public Object[] getFcInternalInterfaces()
Specified by:
getFcInternalInterfaces in interface ContentController
Returns:
the array of internal Interface instances implemented by this component

getFcInternalInterface

public Object getFcInternalInterface(String interfaceName)
                              throws NoSuchInterfaceException
Specified by:
getFcInternalInterface in interface ContentController
Throws:
NoSuchInterfaceException

getFcSubComponents

public Component[] getFcSubComponents()
Specified by:
getFcSubComponents in interface ContentController

addFcSubComponent

public void addFcSubComponent(Component arg0)
                       throws IllegalContentException,
                              IllegalLifeCycleException
Specified by:
addFcSubComponent in interface ContentController
Throws:
IllegalContentException
IllegalLifeCycleException

removeFcSubComponent

public void removeFcSubComponent(Component arg0)
                          throws IllegalContentException,
                                 IllegalLifeCycleException
Specified by:
removeFcSubComponent in interface ContentController
Throws:
IllegalContentException
IllegalLifeCycleException

getFcInternalSingletonClientInterfaces

public List getFcInternalSingletonClientInterfaces()
Return the list of client internal interfaces.

Specified by:
getFcInternalSingletonClientInterfaces in interface ContentControllerItf

getFcInternalClientInterface

public Object getFcInternalClientInterface(String interfaceName)
                                    throws NoSuchInterfaceException
Return the instance implementing the given client internal interface name. This method is a clone for getFcInternalInterface(String).

Specified by:
getFcInternalClientInterface in interface ContentControllerItf
Throws:
NoSuchInterfaceException

testLifeCyleBeforeRemoving

protected void testLifeCyleBeforeRemoving(Component arg0)
                                   throws IllegalLifeCycleException
Throws:
IllegalLifeCycleException

setFcCompCtrl

public void setFcCompCtrl(Component compctrl)
Set the reference towards the component controller associated to this controller.

Specified by:
setFcCompCtrl in interface Controller

initFcCtrl

public void initFcCtrl()
Initialize the controller.

Specified by:
initFcCtrl in interface Controller

cloneFcCtrl

public void cloneFcCtrl(Component dst,
                        Object hints)
                 throws CloneCtrlException
Clone the controller state from the current component to another one. This method may receive some hints on how to do this, or provide some hints on how this has been done. For instance, the hints may be a map that is read and/or written by the controller. The raison d'etre of these hints is that when its state is cloned, a controller may produce results that are needed by other controllers.

Specified by:
cloneFcCtrl in interface Controller
Parameters:
dst - the destination component
hints - hints for performing the operation
Throws:
CloneCtrlException