You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Roger Whitcomb (JIRA)" <ji...@apache.org> on 2012/11/16 19:28:12 UTC

[jira] [Commented] (PIVOT-696) TextPane support for entering tab characters and tab stops

    [ https://issues.apache.org/jira/browse/PIVOT-696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13498994#comment-13498994 ] 

Roger Whitcomb commented on PIVOT-696:
--------------------------------------

I am going to make a small revision to TextArea to at least convert tabs to spaces in "setText" according to the current "tabWidth" style in the skin.  This will involve adding "getTabWidth" to the TextArea.Skin interface, and putting a bit of code into "setText" to convert tabs to spaces according to this width.

I'm doing this from a user request with our application.  And since Ctrl-Tab already does the same thing, it only seems reasonable to support this in "setText".  Other places could use it also, but this seems the least impact and most useful.

But, of course, the full functionality could still be done in TextPane at some point.
                
> TextPane support for entering tab characters and tab stops
> ----------------------------------------------------------
>
>                 Key: PIVOT-696
>                 URL: https://issues.apache.org/jira/browse/PIVOT-696
>             Project: Pivot
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Taro App
>            Assignee: Noel Grandin
>            Priority: Minor
>             Fix For: 2.1
>
>
> Currently, if you press Ctrl+Tab in a TextArea, series of space characters entered. (The number of space characters can be specified with tabWidth property.) Text containing tabs can be set by TextArea.setText, but then tab characters are not displayed. It is desirable that TextArea supports tab stops so users can enter and see tab characters.

--
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