abstract sclass ELESuggester > DynSCP { start { ele_onInputAndNow(lambda1 process); } Pt minimumSize() { ret pt(300, 300); } // override me void process_impl(S input) {} void process(S input) q { process_impl(input); } void showSuggestions(S madeFromInput, Iterable l) { setComponent(jscroll_trackWidth(vstackWithSpacing(map(l, s -> withSideMargin(jLabelWithButtons(s, "+", rThread { logFeedback(true, s, madeFromInput) }, "-", rThread { logFeedback(false, s, madeFromInput) }, "Say", rThread { logFeedback(true, s, madeFromInput); dm_say(s) })))))); } void logFeedback(bool plus, S item, S madeFromInput) { ele_logUserFeedback(plus, +item, moduleID := dm_moduleSnippetID(), moduleName := dm_moduleName(), +madeFromInput); } }