void evidencePhraseTextArea_focusLost(FocusEvent e)
{ addEvidence(e);
}
private void addEvidence(AWTEvent e)
{ ExplanationPhrase explanationPhrase = new ExplanationPhrase();
explanationPhrase.setNode(evidenceNodeComboBox.getSelectedItem().toString());
if (triggerRadioButton.isSelected())
{ explanationPhrase.setEvidenceType(ExplanationPhrase.TRIGGER_EVIDENCE_TYPE);
}
else if (necessaryRadioButton.isSelected())
{ explanationPhrase.setEvidenceType(ExplanationPhrase.NECESSARY_EVIDENCE_TYPE);
}
else if (complementaryRadioButton.isSelected())
{ explanationPhrase.setEvidenceType(ExplanationPhrase.COMPLEMENTARY_EVIDENCE_TYPE);
}
else if (exclusiveRadioButton.isSelected())
{ explanationPhrase.setEvidenceType(ExplanationPhrase.EXCLUSIVE_EVIDENCE_TYPE);
}
else
{ explanationPhrase.setEvidenceType(ExplanationPhrase.NA_EVIDENCE_TYPE);
}
explanationPhrase.setPhrase(evidencePhraseTextArea.getText());
node.addExplanationPhrase(explanationPhrase);
}