[ https://issues.apache.org/jira/browse/PIVOT-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Martini updated PIVOT-844: --------------------------------- Fix Version/s: (was: 2.0.2) 2.1 Moved to 2.1 because to have a good working solution I should add a method to the public API of TextInput. For example otherwise I'm not able to move the caret (cursor) to the end of the text and have all text de-selected. Brendan, my current proposal is to make a custom component extending ours and in the meantime implement something like my second patch here in attach (based on current trunk). Brendan (and others), be free to reopen and reassign to 2.0.2 (or later 2.0.x if any) in case you need some small change in Pivot sources to make your component work with this feature. > SuggestionPopup Allow replacing selected text to the beginning index until > current cursor of TextInput or TextArea Component > ----------------------------------------------------------------------------------------------------------------------------- > > Key: PIVOT-844 > URL: https://issues.apache.org/jira/browse/PIVOT-844 > Project: Pivot > Issue Type: Improvement > Components: wtk, wtk-terra > Reporter: Brendan > Assignee: Sandro Martini > Priority: Minor > Fix For: 2.1 > > Original Estimate: 96h > Remaining Estimate: 96h > > SuggestionPopup used to replacing whole content of TextInput once user make a > selection. This creates difficulties in implementing, for example, a list of > comma separated email addresses in recipients column. > I suggest to modify the replacing methodology to allow additional parameter > of Index of the beginning word to input so that the SuggestionPopup will > replace from the beginning index to the current caret (text cursor) with user > selection. Additionally, allow not only TextInput but also TextArea to be > served with, which we can build a typing assistant like function. > The finding the beginning index is user code responsibility which opens up > the choice of usages, like email address assistant where ";" is the separator > and space as separator when general typing assistant. The user code just > need to use Java String Split to locate the closet word to the caret for > SuggestionPopup. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira