You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Imbue Lab (Created) (JIRA)" <ji...@apache.org> on 2012/02/01 16:26:58 UTC
[jira] [Created] (PIVOT-838) TextArea - removed text event, unable
to retrieve removed text
TextArea - removed text event, unable to retrieve removed text
--------------------------------------------------------------
Key: PIVOT-838
URL: https://issues.apache.org/jira/browse/PIVOT-838
Project: Pivot
Issue Type: Bug
Components: wtk
Affects Versions: 2.0.1
Reporter: Imbue Lab
There is no possibility to get information about text removed from TextArea component. In the ParagraphListener there are two methods:
- void textInserted(Paragraph paragraph, int index, int count) - this one is OK, information about inserted text can be retrieved from the paragraph's CharSequence (using getCharacters() method), there is everything what is needed: index and count
- void textRemoved(Paragraph paragraph, int index, int count) - here the problem begins, paragraph received as parameter has no text that was removed because it has been already removed.
Of course one can make a deep copy of paragraph's characters (every time it changed) and search for removed text using previously created copy, but is it really too expensive.
I checked the source and in the TextArea.Paragraph class in the method void removeText(int index, int count) there is a line where real text removal operation takes place: characters.delete(index, index + count), but removed text is not stored or passed to any of the listeners.
--
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
[jira] [Updated] (PIVOT-838) TextArea - removed text event, unable
to retrieve removed text
Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Martini updated PIVOT-838:
---------------------------------
Fix Version/s: (was: 2.0.3)
2.0.4
> TextArea - removed text event, unable to retrieve removed text
> --------------------------------------------------------------
>
> Key: PIVOT-838
> URL: https://issues.apache.org/jira/browse/PIVOT-838
> Project: Pivot
> Issue Type: Bug
> Components: wtk
> Affects Versions: 2.0.1, 2.0.2
> Reporter: Imbue Lab
> Assignee: Noel Grandin
> Priority: Minor
> Fix For: 2.0.4
>
>
> There is no possibility to get information about text removed from TextArea component. In the ParagraphListener there are two methods:
> - void textInserted(Paragraph paragraph, int index, int count) - this one is OK, information about inserted text can be retrieved from the paragraph's CharSequence (using getCharacters() method), there is everything what is needed: index and count
> - void textRemoved(Paragraph paragraph, int index, int count) - here the problem begins, paragraph received as parameter has no text that was removed because it has been already removed.
> Of course one can make a deep copy of paragraph's characters (every time it changed) and search for removed text using previously created copy, but is it really too expensive.
> I checked the source and in the TextArea.Paragraph class in the method void removeText(int index, int count) there is a line where real text removal operation takes place: characters.delete(index, index + count), but removed text is not stored or passed to any of the listeners.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PIVOT-838) TextArea - removed text event, unable
to retrieve removed text
Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Martini updated PIVOT-838:
---------------------------------
Affects Version/s: 2.0.2
Fix Version/s: (was: 2.0.2)
2.0.3
> TextArea - removed text event, unable to retrieve removed text
> --------------------------------------------------------------
>
> Key: PIVOT-838
> URL: https://issues.apache.org/jira/browse/PIVOT-838
> Project: Pivot
> Issue Type: Bug
> Components: wtk
> Affects Versions: 2.0.1, 2.0.2
> Reporter: Imbue Lab
> Assignee: Noel Grandin
> Priority: Minor
> Fix For: 2.0.3
>
>
> There is no possibility to get information about text removed from TextArea component. In the ParagraphListener there are two methods:
> - void textInserted(Paragraph paragraph, int index, int count) - this one is OK, information about inserted text can be retrieved from the paragraph's CharSequence (using getCharacters() method), there is everything what is needed: index and count
> - void textRemoved(Paragraph paragraph, int index, int count) - here the problem begins, paragraph received as parameter has no text that was removed because it has been already removed.
> Of course one can make a deep copy of paragraph's characters (every time it changed) and search for removed text using previously created copy, but is it really too expensive.
> I checked the source and in the TextArea.Paragraph class in the method void removeText(int index, int count) there is a line where real text removal operation takes place: characters.delete(index, index + count), but removed text is not stored or passed to any of the listeners.
--
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
[jira] [Commented] (PIVOT-838) TextArea - removed text event,
unable to retrieve removed text
Posted by "Sandro Martini (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211863#comment-13211863 ]
Sandro Martini commented on PIVOT-838:
--------------------------------------
some discussion here:
http://apache-pivot-users.399431.n3.nabble.com/2-0-1-TextArea-ParagraphListener-textInserted-method-question-td3753868.html
> TextArea - removed text event, unable to retrieve removed text
> --------------------------------------------------------------
>
> Key: PIVOT-838
> URL: https://issues.apache.org/jira/browse/PIVOT-838
> Project: Pivot
> Issue Type: Bug
> Components: wtk
> Affects Versions: 2.0.1
> Reporter: Imbue Lab
> Assignee: Noel Grandin
> Priority: Minor
> Fix For: 2.0.2
>
>
> There is no possibility to get information about text removed from TextArea component. In the ParagraphListener there are two methods:
> - void textInserted(Paragraph paragraph, int index, int count) - this one is OK, information about inserted text can be retrieved from the paragraph's CharSequence (using getCharacters() method), there is everything what is needed: index and count
> - void textRemoved(Paragraph paragraph, int index, int count) - here the problem begins, paragraph received as parameter has no text that was removed because it has been already removed.
> Of course one can make a deep copy of paragraph's characters (every time it changed) and search for removed text using previously created copy, but is it really too expensive.
> I checked the source and in the TextArea.Paragraph class in the method void removeText(int index, int count) there is a line where real text removal operation takes place: characters.delete(index, index + count), but removed text is not stored or passed to any of the listeners.
--
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
[jira] [Commented] (PIVOT-838) TextArea - removed text event,
unable to retrieve removed text
Posted by "Sandro Martini (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211861#comment-13211861 ]
Sandro Martini commented on PIVOT-838:
--------------------------------------
add a minimal test case: Pivot838, in the usual project (tests) and package: org.apache.pivot.tests.issues
> TextArea - removed text event, unable to retrieve removed text
> --------------------------------------------------------------
>
> Key: PIVOT-838
> URL: https://issues.apache.org/jira/browse/PIVOT-838
> Project: Pivot
> Issue Type: Bug
> Components: wtk
> Affects Versions: 2.0.1
> Reporter: Imbue Lab
> Assignee: Noel Grandin
> Priority: Minor
> Fix For: 2.0.2
>
>
> There is no possibility to get information about text removed from TextArea component. In the ParagraphListener there are two methods:
> - void textInserted(Paragraph paragraph, int index, int count) - this one is OK, information about inserted text can be retrieved from the paragraph's CharSequence (using getCharacters() method), there is everything what is needed: index and count
> - void textRemoved(Paragraph paragraph, int index, int count) - here the problem begins, paragraph received as parameter has no text that was removed because it has been already removed.
> Of course one can make a deep copy of paragraph's characters (every time it changed) and search for removed text using previously created copy, but is it really too expensive.
> I checked the source and in the TextArea.Paragraph class in the method void removeText(int index, int count) there is a line where real text removal operation takes place: characters.delete(index, index + count), but removed text is not stored or passed to any of the listeners.
--
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
[jira] [Updated] (PIVOT-838) TextArea - removed text event, unable
to retrieve removed text
Posted by "Sandro Martini (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Martini updated PIVOT-838:
---------------------------------
Comment: was deleted
(was: add a minimal test case: Pivot838, in the usual project (tests) and package: org.apache.pivot.tests.issues
)
> TextArea - removed text event, unable to retrieve removed text
> --------------------------------------------------------------
>
> Key: PIVOT-838
> URL: https://issues.apache.org/jira/browse/PIVOT-838
> Project: Pivot
> Issue Type: Bug
> Components: wtk
> Affects Versions: 2.0.1
> Reporter: Imbue Lab
> Assignee: Noel Grandin
> Priority: Minor
> Fix For: 2.0.2
>
>
> There is no possibility to get information about text removed from TextArea component. In the ParagraphListener there are two methods:
> - void textInserted(Paragraph paragraph, int index, int count) - this one is OK, information about inserted text can be retrieved from the paragraph's CharSequence (using getCharacters() method), there is everything what is needed: index and count
> - void textRemoved(Paragraph paragraph, int index, int count) - here the problem begins, paragraph received as parameter has no text that was removed because it has been already removed.
> Of course one can make a deep copy of paragraph's characters (every time it changed) and search for removed text using previously created copy, but is it really too expensive.
> I checked the source and in the TextArea.Paragraph class in the method void removeText(int index, int count) there is a line where real text removal operation takes place: characters.delete(index, index + count), but removed text is not stored or passed to any of the listeners.
--
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
[jira] [Issue Comment Edited] (PIVOT-838) TextArea - removed text
event, unable to retrieve removed text
Posted by "Sandro Martini (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211863#comment-13211863 ]
Sandro Martini edited comment on PIVOT-838 at 2/20/12 4:58 PM:
---------------------------------------------------------------
some discussion (but not strictly related to this issue) here:
http://apache-pivot-users.399431.n3.nabble.com/2-0-1-TextArea-ParagraphListener-textInserted-method-question-td3753868.html
was (Author: smartini):
some discussion here:
http://apache-pivot-users.399431.n3.nabble.com/2-0-1-TextArea-ParagraphListener-textInserted-method-question-td3753868.html
> TextArea - removed text event, unable to retrieve removed text
> --------------------------------------------------------------
>
> Key: PIVOT-838
> URL: https://issues.apache.org/jira/browse/PIVOT-838
> Project: Pivot
> Issue Type: Bug
> Components: wtk
> Affects Versions: 2.0.1
> Reporter: Imbue Lab
> Assignee: Noel Grandin
> Priority: Minor
> Fix For: 2.0.2
>
>
> There is no possibility to get information about text removed from TextArea component. In the ParagraphListener there are two methods:
> - void textInserted(Paragraph paragraph, int index, int count) - this one is OK, information about inserted text can be retrieved from the paragraph's CharSequence (using getCharacters() method), there is everything what is needed: index and count
> - void textRemoved(Paragraph paragraph, int index, int count) - here the problem begins, paragraph received as parameter has no text that was removed because it has been already removed.
> Of course one can make a deep copy of paragraph's characters (every time it changed) and search for removed text using previously created copy, but is it really too expensive.
> I checked the source and in the TextArea.Paragraph class in the method void removeText(int index, int count) there is a line where real text removal operation takes place: characters.delete(index, index + count), but removed text is not stored or passed to any of the listeners.
--
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
[jira] [Updated] (PIVOT-838) TextArea - removed text event, unable
to retrieve removed text
Posted by "Sandro Martini (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Martini updated PIVOT-838:
---------------------------------
Priority: Minor (was: Major)
Fix Version/s: 2.0.2
Assignee: Noel Grandin
> TextArea - removed text event, unable to retrieve removed text
> --------------------------------------------------------------
>
> Key: PIVOT-838
> URL: https://issues.apache.org/jira/browse/PIVOT-838
> Project: Pivot
> Issue Type: Bug
> Components: wtk
> Affects Versions: 2.0.1
> Reporter: Imbue Lab
> Assignee: Noel Grandin
> Priority: Minor
> Fix For: 2.0.2
>
>
> There is no possibility to get information about text removed from TextArea component. In the ParagraphListener there are two methods:
> - void textInserted(Paragraph paragraph, int index, int count) - this one is OK, information about inserted text can be retrieved from the paragraph's CharSequence (using getCharacters() method), there is everything what is needed: index and count
> - void textRemoved(Paragraph paragraph, int index, int count) - here the problem begins, paragraph received as parameter has no text that was removed because it has been already removed.
> Of course one can make a deep copy of paragraph's characters (every time it changed) and search for removed text using previously created copy, but is it really too expensive.
> I checked the source and in the TextArea.Paragraph class in the method void removeText(int index, int count) there is a line where real text removal operation takes place: characters.delete(index, index + count), but removed text is not stored or passed to any of the listeners.
--
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