1 package eu
.etaxonomy
.taxeditor
.ui
.campanula
.compatibility
;
7 import org
.eclipse
.jface
.util
.IPropertyChangeListener
;
8 import org
.eclipse
.swt
.graphics
.Color
;
9 import org
.eclipse
.swt
.widgets
.Composite
;
10 import org
.eclipse
.swt
.widgets
.Control
;
12 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
13 import eu
.etaxonomy
.taxeditor
.ui
.element
.IPropertyChangeEmitter
;
16 * <p>ICdmFormElement interface.</p>
21 public interface ICdmFormElement
extends IPropertyChangeEmitter
, IPropertyChangeListener
{
24 * <p>getPropertyChangeListeners</p>
26 * @return a {@link java.util.Set} object.
28 public abstract List
<IPropertyChangeListener
> getPropertyChangeListeners();
31 * <p>setPropertyChangeListeners</p>
33 * @param propertyChangeListeners a {@link java.util.Set} object.
35 public abstract void setPropertyChangeListeners(
36 List
<IPropertyChangeListener
> propertyChangeListeners
);
41 * @return a {@link java.util.Set} object.
43 public abstract Set
<Control
> getControls();
48 * @return a {@link java.util.Set} object.
50 public abstract Set
<ICdmFormElement
> getElements();
55 * @param element a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
57 public abstract void addElement(ICdmFormElement element
);
60 * <p>getParentElement</p>
62 * @return a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
64 public abstract ICdmFormElement
getParentElement();
67 * <p>removeElements</p>
69 public abstract void removeElements();
72 * <p>getLayoutComposite</p>
74 * @return a {@link org.eclipse.swt.widgets.Composite} object.
76 public abstract Composite
getLayoutComposite();
79 * <p>containsFormElement</p>
81 * @param formElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
84 public boolean containsFormElement(ICdmFormElement formElement
);
87 * <p>setBackground</p>
89 * @param color a {@link org.eclipse.swt.graphics.Color} object.
91 public void setBackground(Color color
);
94 * Sets a background color for this element and stores this background color
95 * for future reference
99 public void setPersistentBackground(Color color
);
102 * Get the background color that is associated with this element.
106 public Color
getPersistentBackground();
109 * Refreshes the layout of this form element.
111 * This method should be called when the content of the form element
112 * changes and the current element needs to display that changes
114 public void refresh();
117 * <p>Getter for the field <code>formFactory</code>.</p>
119 * @return a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
121 public CdmFormFactory
getFormFactory();