1 package eu
.etaxonomy
.taxeditor
.ui
.element
;
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
;
14 * <p>ICdmFormElement interface.</p>
19 public interface ICdmFormElement
extends IPropertyChangeEmitter
, IPropertyChangeListener
{
22 * <p>getPropertyChangeListeners</p>
24 * @return a {@link java.util.Set} object.
26 public abstract List
<IPropertyChangeListener
> getPropertyChangeListeners();
29 * <p>setPropertyChangeListeners</p>
31 * @param propertyChangeListeners a {@link java.util.Set} object.
33 public abstract void setPropertyChangeListeners(
34 List
<IPropertyChangeListener
> propertyChangeListeners
);
39 * @return a {@link java.util.Set} object.
41 public abstract Set
<Control
> getControls();
46 * @return a {@link java.util.Set} object.
48 public abstract Set
<ICdmFormElement
> getElements();
53 * @param element a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
55 public abstract void addElement(ICdmFormElement element
);
58 * <p>getParentElement</p>
60 * @return a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
62 public abstract ICdmFormElement
getParentElement();
65 * <p>removeElements</p>
67 public abstract void removeElements();
70 * <p>getLayoutComposite</p>
72 * @return a {@link org.eclipse.swt.widgets.Composite} object.
74 public abstract Composite
getLayoutComposite();
77 * <p>containsFormElement</p>
79 * @param formElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
82 public boolean containsFormElement(ICdmFormElement formElement
);
85 * <p>setBackground</p>
87 * @param color a {@link org.eclipse.swt.graphics.Color} object.
89 public void setBackground(Color color
);
92 * Sets a background color for this element and stores this background color
93 * for future reference
97 public void setPersistentBackground(Color color
);
100 * Get the background color that is associated with this element.
104 public Color
getPersistentBackground();
107 * Refreshes the layout of this form element.
109 * This method should be called when the content of the form element
110 * changes and the current element needs to display that changes
112 public void refresh();
115 * <p>Getter for the field <code>formFactory</code>.</p>
117 * @return a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
119 public CdmFormFactory
getFormFactory();