[
https://issues.apache.org/jira/browse/PIVOT-565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12886727#action_12886727
]
Greg Brown commented on PIVOT-565:
----------------------------------
When using setTooltipText(), a caller does not need to create the tooltip
directly - it is handled by ComponentSkin. So a Tooltip constructor that takes
a String argument would not help in this case. However, updating ComponentSkin
to use a TextArea instead of a Label might be OK. That would allow a caller to
embed CRs in the text to facilitate wrapping.
> New multiline text Tooltip constructor
> --------------------------------------
>
> Key: PIVOT-565
> URL: https://issues.apache.org/jira/browse/PIVOT-565
> Project: Pivot
> Issue Type: Improvement
> Components: wtk
> Reporter: André Thieme
> Fix For: 2.0
>
>
> Please add a third org.apache.pivot.wtk.Tooltip constructor that takes a
> string.
> This would then construct a tooltip that can potentially display multiline
> text.
> This solution offers greater compatibility and less breakage to earlier
> versions
> of Pivot, and at the same time probably covers 99% of all Tooltip usage.
> new Tooltip("This\nis\na\nmultiline\nTooltip\ntext");
> Also the setTooltipText of the Component class could use a TextArea under the
> hood by default, allowing for
> myButton.setTooltipText("Multiline\nTooltip\ntext");
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.