==== Controller for Composite ====
The **CompositeController** is build around a Composite.
It extends a org.adichatz.engine.controller.AEntityManagerController that means:
* It is a **collection controller** wich can contain other controllers (field controllers, collection controllers...).
* It can receive and manage its own entity.
\\
==== Control ====
The control [[http://help.eclipse.org/mars/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/widgets/Composite.html|org.eclipse.swt.widgets.Composite]] is a SWT controls container which owns its own layout.
\\
==== Usage: ====
== Code ==
== Overview ==
{{:controllers:composite.png |Composite}}
\\
== Explanations ==
|**entityURI="adi://org.adichatz.studio/model/RcpPartMM"**| Gives the type of the entity (EntityMetaModel).|
|**entity="entity="#ENTITY(#BEAN().getRcpPart())"**| Injects and entity in the composite: bean of the new entity is the property rcpPart of the entity injected in the parent controller.|
|** valid="false"**| The controller is not build, the life of cycle ignores the controller and its children. The controller **org.adichatz.studio.xjc.controller.RcpCheckBoxController** manages the validity of the composite.|
|**layoutData="gap left 20"**| Add a margin of 20 pixels.|
|****|Composite layout has one column and components in the composite take all place and grow with composite.|