merge from trunk
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / mvc / interfaces / ICdmComposite.java
1 // $Id$
2 /**
3 * Copyright (C) 2014 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.taxeditor.ui.mvc.interfaces;
11
12 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
13 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
14
15 /**
16 * A composite for visualizing CDM objects. ICdmComposites are mere GUI composites but
17 * they initialize a controller which contains the interaction logic.
18 * @author pplitzner
19 * @date 11.02.2014
20 *
21 */
22 public interface ICdmComposite {
23
24 /**
25 * Initializes the {@link CdmCompositeController} of this composite.
26 * @param formFactory the factory used for the GUI element
27 * @param parentElement the parent {@link ICdmFormElement}
28 */
29 public void initController(CdmFormFactory formFactory, ICdmFormElement parentElement);
30
31 /**
32 * Returns the {@link CdmCompositeController} of this composite.
33 * @return
34 */
35 public CdmCompositeController getController();
36
37 }