You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Bill van Melle (JIRA)" <ji...@apache.org> on 2011/03/01 20:56:36 UTC

[jira] Created: (PIVOT-709) Want a single-line text input component that wraps

Want a single-line text input component that wraps
--------------------------------------------------

                 Key: PIVOT-709
                 URL: https://issues.apache.org/jira/browse/PIVOT-709
             Project: Pivot
          Issue Type: New Feature
          Components: wtk
            Reporter: Bill van Melle
            Priority: Minor


TextInput accepts a single line of text, but it also displays as only a single line on the screen, with no provision for wrapping text instead of clumsily horizontally scrolling.  TextArea happily wraps text, but it also accepts the Enter key to insert newlines into the content.

I would like a control that wraps its text, but also only accepts a single line of input, i.e., it does not accept Enter to produce multiple lines, and in fact allows Enter to be handled by its container (e.g., a Sheet).  Whether this means a wrapText attribute on a TextInput, or a multiLine or acceptsEnter attribute on a TextArea makes little difference to me.  A quick glance at the TextAreaSkin suggests the latter would be straightforward.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-709) Want a single-line text input component that wraps

Posted by "Noel Grandin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078613#comment-13078613 ] 

Noel Grandin commented on PIVOT-709:
------------------------------------

Just added an "acceptsEnter" skin property for TextArea. Bill, let me know how this works out for you.

> Want a single-line text input component that wraps
> --------------------------------------------------
>
>                 Key: PIVOT-709
>                 URL: https://issues.apache.org/jira/browse/PIVOT-709
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Bill van Melle
>            Priority: Minor
>
> TextInput accepts a single line of text, but it also displays as only a single line on the screen, with no provision for wrapping text instead of clumsily horizontally scrolling.  TextArea happily wraps text, but it also accepts the Enter key to insert newlines into the content.
> I would like a control that wraps its text, but also only accepts a single line of input, i.e., it does not accept Enter to produce multiple lines, and in fact allows Enter to be handled by its container (e.g., a Sheet).  Whether this means a wrapText attribute on a TextInput, or a multiLine or acceptsEnter attribute on a TextArea makes little difference to me.  A quick glance at the TextAreaSkin suggests the latter would be straightforward.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-709) Want a single-line text input component that wraps

Posted by "Bill van Melle (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078426#comment-13078426 ] 

Bill van Melle commented on PIVOT-709:
--------------------------------------

Here's the mailing list thread that discusses why your solution is inadequate:

http://apache-pivot-users.399431.n3.nabble.com/How-to-get-a-wrapped-TextInput-td2571202.html

> Want a single-line text input component that wraps
> --------------------------------------------------
>
>                 Key: PIVOT-709
>                 URL: https://issues.apache.org/jira/browse/PIVOT-709
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Bill van Melle
>            Priority: Minor
>
> TextInput accepts a single line of text, but it also displays as only a single line on the screen, with no provision for wrapping text instead of clumsily horizontally scrolling.  TextArea happily wraps text, but it also accepts the Enter key to insert newlines into the content.
> I would like a control that wraps its text, but also only accepts a single line of input, i.e., it does not accept Enter to produce multiple lines, and in fact allows Enter to be handled by its container (e.g., a Sheet).  Whether this means a wrapText attribute on a TextInput, or a multiLine or acceptsEnter attribute on a TextArea makes little difference to me.  A quick glance at the TextAreaSkin suggests the latter would be straightforward.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-709) Want a single-line text input component that wraps

Posted by "Noel Grandin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078597#comment-13078597 ] 

Noel Grandin commented on PIVOT-709:
------------------------------------

OK, good point Bill. I think an "acceptEnter" skin property on TextArea would be pretty straightforward. Will look at it later.

> Want a single-line text input component that wraps
> --------------------------------------------------
>
>                 Key: PIVOT-709
>                 URL: https://issues.apache.org/jira/browse/PIVOT-709
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Bill van Melle
>            Priority: Minor
>
> TextInput accepts a single line of text, but it also displays as only a single line on the screen, with no provision for wrapping text instead of clumsily horizontally scrolling.  TextArea happily wraps text, but it also accepts the Enter key to insert newlines into the content.
> I would like a control that wraps its text, but also only accepts a single line of input, i.e., it does not accept Enter to produce multiple lines, and in fact allows Enter to be handled by its container (e.g., a Sheet).  Whether this means a wrapText attribute on a TextInput, or a multiLine or acceptsEnter attribute on a TextArea makes little difference to me.  A quick glance at the TextAreaSkin suggests the latter would be straightforward.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-709) Want a single-line text input component that wraps

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13076256#comment-13076256 ] 

Sandro Martini commented on PIVOT-709:
--------------------------------------

Hi all,
this means that this ticket could be associated to 2.0.1, and closed as "Won't fix" ?

Bye


> Want a single-line text input component that wraps
> --------------------------------------------------
>
>                 Key: PIVOT-709
>                 URL: https://issues.apache.org/jira/browse/PIVOT-709
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Bill van Melle
>            Priority: Minor
>
> TextInput accepts a single line of text, but it also displays as only a single line on the screen, with no provision for wrapping text instead of clumsily horizontally scrolling.  TextArea happily wraps text, but it also accepts the Enter key to insert newlines into the content.
> I would like a control that wraps its text, but also only accepts a single line of input, i.e., it does not accept Enter to produce multiple lines, and in fact allows Enter to be handled by its container (e.g., a Sheet).  Whether this means a wrapText attribute on a TextInput, or a multiLine or acceptsEnter attribute on a TextArea makes little difference to me.  A quick glance at the TextAreaSkin suggests the latter would be straightforward.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (PIVOT-709) Want a single-line text input component that wraps

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001081#comment-13001081 ] 

Greg Brown commented on PIVOT-709:
----------------------------------

FYI, "wrapText" and "multiline" are actually potentially distinct concepts. "wrapText" (which is currently supported) dictates whether text should wrap at component boundaries (true) or clip (false). "multiline" might mean "allow the user to create multiple paragraphs separated by line feeds" (true) or not (false). I think I prefer this to "accepts enter", because it may not be entirely clear to a user what "accepts" means in this context.


> Want a single-line text input component that wraps
> --------------------------------------------------
>
>                 Key: PIVOT-709
>                 URL: https://issues.apache.org/jira/browse/PIVOT-709
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Bill van Melle
>            Priority: Minor
>
> TextInput accepts a single line of text, but it also displays as only a single line on the screen, with no provision for wrapping text instead of clumsily horizontally scrolling.  TextArea happily wraps text, but it also accepts the Enter key to insert newlines into the content.
> I would like a control that wraps its text, but also only accepts a single line of input, i.e., it does not accept Enter to produce multiple lines, and in fact allows Enter to be handled by its container (e.g., a Sheet).  Whether this means a wrapText attribute on a TextInput, or a multiLine or acceptsEnter attribute on a TextArea makes little difference to me.  A quick glance at the TextAreaSkin suggests the latter would be straightforward.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-709) Want a single-line text input component that wraps

Posted by "Noel Grandin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13076209#comment-13076209 ] 

Noel Grandin commented on PIVOT-709:
------------------------------------

You could solve this by installing your own key event handler on a TextArea, which makes "enter" mean "commit the text".



> Want a single-line text input component that wraps
> --------------------------------------------------
>
>                 Key: PIVOT-709
>                 URL: https://issues.apache.org/jira/browse/PIVOT-709
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Bill van Melle
>            Priority: Minor
>
> TextInput accepts a single line of text, but it also displays as only a single line on the screen, with no provision for wrapping text instead of clumsily horizontally scrolling.  TextArea happily wraps text, but it also accepts the Enter key to insert newlines into the content.
> I would like a control that wraps its text, but also only accepts a single line of input, i.e., it does not accept Enter to produce multiple lines, and in fact allows Enter to be handled by its container (e.g., a Sheet).  Whether this means a wrapText attribute on a TextInput, or a multiLine or acceptsEnter attribute on a TextArea makes little difference to me.  A quick glance at the TextAreaSkin suggests the latter would be straightforward.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-709) Want a single-line text input component that wraps

Posted by "Bill van Melle (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081364#comment-13081364 ] 

Bill van Melle commented on PIVOT-709:
--------------------------------------

Thanks, it works fine.

> Want a single-line text input component that wraps
> --------------------------------------------------
>
>                 Key: PIVOT-709
>                 URL: https://issues.apache.org/jira/browse/PIVOT-709
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Bill van Melle
>            Assignee: Noel Grandin
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> TextInput accepts a single line of text, but it also displays as only a single line on the screen, with no provision for wrapping text instead of clumsily horizontally scrolling.  TextArea happily wraps text, but it also accepts the Enter key to insert newlines into the content.
> I would like a control that wraps its text, but also only accepts a single line of input, i.e., it does not accept Enter to produce multiple lines, and in fact allows Enter to be handled by its container (e.g., a Sheet).  Whether this means a wrapText attribute on a TextInput, or a multiLine or acceptsEnter attribute on a TextArea makes little difference to me.  A quick glance at the TextAreaSkin suggests the latter would be straightforward.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-709) Want a single-line text input component that wraps

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-709:
---------------------------------

    Fix Version/s: 2.0.1
         Assignee: Noel Grandin

> Want a single-line text input component that wraps
> --------------------------------------------------
>
>                 Key: PIVOT-709
>                 URL: https://issues.apache.org/jira/browse/PIVOT-709
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Bill van Melle
>            Assignee: Noel Grandin
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> TextInput accepts a single line of text, but it also displays as only a single line on the screen, with no provision for wrapping text instead of clumsily horizontally scrolling.  TextArea happily wraps text, but it also accepts the Enter key to insert newlines into the content.
> I would like a control that wraps its text, but also only accepts a single line of input, i.e., it does not accept Enter to produce multiple lines, and in fact allows Enter to be handled by its container (e.g., a Sheet).  Whether this means a wrapText attribute on a TextInput, or a multiLine or acceptsEnter attribute on a TextArea makes little difference to me.  A quick glance at the TextAreaSkin suggests the latter would be straightforward.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-709) Want a single-line text input component that wraps

Posted by "Bill van Melle (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078321#comment-13078321 ] 

Bill van Melle commented on PIVOT-709:
--------------------------------------

My recollection is the key handler approach doesn't work, because the skin grabs "enter" before the user's key handler has a crack at it.  Let me have a look at my earlier attempts and I'll let you know more.

> Want a single-line text input component that wraps
> --------------------------------------------------
>
>                 Key: PIVOT-709
>                 URL: https://issues.apache.org/jira/browse/PIVOT-709
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Bill van Melle
>            Priority: Minor
>
> TextInput accepts a single line of text, but it also displays as only a single line on the screen, with no provision for wrapping text instead of clumsily horizontally scrolling.  TextArea happily wraps text, but it also accepts the Enter key to insert newlines into the content.
> I would like a control that wraps its text, but also only accepts a single line of input, i.e., it does not accept Enter to produce multiple lines, and in fact allows Enter to be handled by its container (e.g., a Sheet).  Whether this means a wrapText attribute on a TextInput, or a multiLine or acceptsEnter attribute on a TextArea makes little difference to me.  A quick glance at the TextAreaSkin suggests the latter would be straightforward.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PIVOT-709) Want a single-line text input component that wraps

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini resolved PIVOT-709.
----------------------------------

    Resolution: Fixed

Resolved, but in case of problems be free to reopen and assign to 2.0.2


> Want a single-line text input component that wraps
> --------------------------------------------------
>
>                 Key: PIVOT-709
>                 URL: https://issues.apache.org/jira/browse/PIVOT-709
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Bill van Melle
>            Assignee: Noel Grandin
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> TextInput accepts a single line of text, but it also displays as only a single line on the screen, with no provision for wrapping text instead of clumsily horizontally scrolling.  TextArea happily wraps text, but it also accepts the Enter key to insert newlines into the content.
> I would like a control that wraps its text, but also only accepts a single line of input, i.e., it does not accept Enter to produce multiple lines, and in fact allows Enter to be handled by its container (e.g., a Sheet).  Whether this means a wrapText attribute on a TextInput, or a multiLine or acceptsEnter attribute on a TextArea makes little difference to me.  A quick glance at the TextAreaSkin suggests the latter would be straightforward.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira