import java.util.Iterator;
-import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionListener;
import eu.etaxonomy.cdm.model.name.TypeDesignationBase;
protected EntitySelectionElement<Reference> selection_reference;
protected TextWithLabelElement text_referenceDetail;
protected ICdmFormElement formElement;
+ protected int style;
/**
* <p>Constructor for AbstractTypeDesignationElement.</p>
public void createControls(ICdmFormElement formElement, int style) {
checkbox_notDesignated = formFactory.createCheckbox(formElement, "Not Designated", false, style);
this.formElement = formElement;
+ this.style = style;
}
@Override
removeNotDesignatedControls();
selection_reference = formFactory
.createSelectionElement(Reference.class, formElement, "Status Reference",
- entity.getCitation(), EntitySelectionElement.ALL, SWT.NULL);
+ entity.getCitation(), EntitySelectionElement.ALL, style);
text_referenceDetail = formFactory.createTextWithLabelElement(
- formElement, "Status Reference Detail", entity.getCitationMicroReference(), SWT.NULL);
- checkbox_notDesignated = formFactory.createCheckbox(formElement, "Not Designated", entity.isNotDesignated(), SWT.NONE);
+ formElement, "Reference Detail", entity.getCitationMicroReference(), style);
+ checkbox_notDesignated = formFactory.createCheckbox(formElement, "Not Designated", entity.isNotDesignated(), style);
}
}else{
if (selection_reference != null){