setSentenceAndCloze method
- JidoujishoTextSelection selection
Set the sentence and cloze fields with a new selection.
Implementation
void setSentenceAndCloze(JidoujishoTextSelection selection) {
getFieldController(SentenceField.instance).text = selection.text;
getFieldController(ClozeBeforeField.instance).text = selection.textBefore;
getFieldController(ClozeInsideField.instance).text = selection.textInside;
getFieldController(ClozeAfterField.instance).text = selection.textAfter;
}