Return-Path: X-Original-To: apmail-pivot-dev-archive@www.apache.org Delivered-To: apmail-pivot-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4768B922A for ; Wed, 11 Apr 2012 16:45:39 +0000 (UTC) Received: (qmail 27912 invoked by uid 500); 11 Apr 2012 16:45:39 -0000 Delivered-To: apmail-pivot-dev-archive@pivot.apache.org Received: (qmail 27878 invoked by uid 500); 11 Apr 2012 16:45:39 -0000 Mailing-List: contact dev-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pivot.apache.org Delivered-To: mailing list dev@pivot.apache.org Received: (qmail 27869 invoked by uid 99); 11 Apr 2012 16:45:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 16:45:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 16:45:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D0487365611 for ; Wed, 11 Apr 2012 16:45:16 +0000 (UTC) Date: Wed, 11 Apr 2012 16:45:16 +0000 (UTC) From: "Sandro Martini (Updated) (JIRA)" To: dev@pivot.apache.org Message-ID: <719304873.13159.1334162716854.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1356401280.32035.1332178297825.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (PIVOT-844) SuggestionPopup Allow replacing selected text to the beginning index until current cursor of TextInput or TextArea Component MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PIVOT-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sandro Martini updated PIVOT-844: --------------------------------- Attachment: PIVOT-844_first_version_rough.patch First (rough) version of it (with many TODO inside and some things to see, like if use a property or a style for the appendMode), but just to give the idea to get some feedback. Apply this patch to latest trunk, then run SuggestionPopupTest.java to show it. Now it's missing a separator style Note that there is a problem: when I press some key and appendMode is true, no chars are deleted in the text field, so there are extra chars ... we have to see if/how to handle this. Feedback is welcome. > 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.0.2 > > Attachments: PIVOT-844_first_version_rough.patch > > 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