*/
package eu.etaxonomy.taxeditor.ui.section.occurrence;
+import eu.etaxonomy.cdm.model.agent.AgentBase;
+import eu.etaxonomy.cdm.model.common.DefinedTerm;
import eu.etaxonomy.cdm.model.molecular.Amplification;
+import eu.etaxonomy.cdm.model.reference.Reference;
import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;
+import eu.etaxonomy.taxeditor.ui.combo.TermComboElement;
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
+import eu.etaxonomy.taxeditor.ui.element.NumberWithLabelElement;
+import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement;
+import eu.etaxonomy.taxeditor.ui.element.TimePeriodElement;
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
+import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
/**
* @author pplitzner
*/
public class AmplificationGeneralDetailElement extends AbstractCdmDetailElement<Amplification> {
+ private TermComboElement<DefinedTerm> comboMarker;
+ private TimePeriodElement dateAmplification;
+ private EntitySelectionElement<AgentBase> selectionAmplificationStaff;
+ private TextWithLabelElement textAmplificationSuccess;
+ private TextWithLabelElement textAmplificationSuccessDetails;
+ private TermComboElement<DefinedTerm> comboAmplificationMaterialOrMethod;
+
+ private NumberWithLabelElement numberGelVoltage;
+ private NumberWithLabelElement numberGelConcentration;
+ private NumberWithLabelElement numberGelRunningTime;
+ private TextWithLabelElement textLadderUsed;
+ private TextWithLabelElement textGelPhoto;
+
+ private TermComboElement<DefinedTerm> comboPurificationMaterialOrMethod;
+ //first Primer
+ private TextWithLabelElement textPrimer1Direction;
+ private TextWithLabelElement textPrimer1Name;
+ private TextWithLabelElement textPrimer1Sequence;
+ private EntitySelectionElement<Reference> selectionPrimer1Reference;
+ //second Primer
+ private TextWithLabelElement textPrimer2Direction;
+ private TextWithLabelElement textPrimer2Name;
+ private TextWithLabelElement textPrimer2Sequence;
+ private EntitySelectionElement<Reference> selectionPrimer2Reference;
+ //cloning
+ private TextWithLabelElement textCloningStrain;
+ private TimePeriodElement dateCloning;
+ private EntitySelectionElement<AgentBase> selectionCloningStaff;
+ private TermComboElement<DefinedTerm> comboCloningMaterialOrMethod;
+
/**
* @param formFactory
*/
@Override
protected void createControls(ICdmFormElement formElement, Amplification entity, int style) {
+ comboMarker = formFactory.createTermComboElement(DefinedTerm.class, formElement, "Marker", entity.getDnaMarker(), style);
+ dateAmplification = formFactory.createTimePeriodElement(formElement, "Amplification Date", entity.getTimeperiod(), style);
+ selectionAmplificationStaff = formFactory.createSelectionElement(AgentBase.class, getConversationHolder(), formElement, "Amplification staff", entity.getActor(), EntitySelectionElement.ALL, style);
+ textAmplificationSuccess = formFactory.createTextWithLabelElement(formElement, "Amplification Success", entity.getSuccessful().toString(), style);
+ textAmplificationSuccessDetails = formFactory.createTextWithLabelElement(formElement, "Ampl. Success Details", entity.getSuccessText(), style);
+// comboAmplificationMaterialOrMethod = formFactory.createTermComboElement(DefinedTerm.class, formElement, "Ampl. Mat. & Meth.", entity.get, style)
+ numberGelVoltage = formFactory.createNumberTextWithLabelElement(formElement, "Gel Voltage (V)", entity.getElectrophoresisVoltage(), style);
+ numberGelConcentration = formFactory.createNumberTextWithLabelElement(formElement, "Gel Concentration", entity.getGelConcentration(), style);
+ numberGelRunningTime = formFactory.createNumberTextWithLabelElement(formElement, "Gel Ruinning Time (Min)", entity.getGelRunningTime(), style);
+ textLadderUsed = formFactory.createTextWithLabelElement(formElement, "Ladder Used", entity.getLadderUsed(), style);
+
+ comboPurificationMaterialOrMethod = formFactory.createTermComboElement(DefinedTerm.class, formElement, "Purification Mat. & Meth.", entity.getPurification().getDefinedMaterialOrMethod(), style);
+
+ //first primer
+
+ //second primer
+
+ textCloningStrain = formFactory.createTextWithLabelElement(formElement, "Cloning Strain", entity.getCloning().getStrain(), style);
+ dateCloning = formFactory.createTimePeriodElement(formElement, "Cloning Date", entity.getCloning().getTimeperiod(), style);
+ selectionCloningStaff = formFactory.createSelectionElement(AgentBase.class, getConversationHolder(), formElement, "Cloning Staff", entity.getCloning().getActor(), EntitySelectionElement.ALL, style);
+ comboCloningMaterialOrMethod = formFactory.createTermComboElement(DefinedTerm.class, formElement, "Cloning Mat. & Meth.", entity.getCloning().getDefinedMaterialOrMethod(), style);
}
/*