You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Greg Brown (JIRA)" <ji...@apache.org> on 2010/06/02 19:35:44 UTC

[jira] Created: (PIVOT-512) Add support for line item tooltips in data-driven components

Add support for line item tooltips in data-driven components
------------------------------------------------------------

                 Key: PIVOT-512
                 URL: https://issues.apache.org/jira/browse/PIVOT-512
             Project: Pivot
          Issue Type: New Feature
          Components: wtk
            Reporter: Greg Brown
            Priority: Minor
             Fix For: 1.6


When enabled, the skin would use the toString() method of the renderer to determine an appropriate tooltip for the item.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIVOT-512) Fire tooltipTriggered() event from Component

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

Greg Brown updated PIVOT-512:
-----------------------------

    Description: 
This will make it easier for applications to use custom tooltips.


  was:
When enabled, the skin would use the toString() method of the renderer to determine an appropriate tooltip for the item.


        Summary: Fire tooltipTriggered() event from Component  (was: Add support for line item tooltips in data-driven components)

> Fire tooltipTriggered() event from Component
> --------------------------------------------
>
>                 Key: PIVOT-512
>                 URL: https://issues.apache.org/jira/browse/PIVOT-512
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Greg Brown
>            Priority: Minor
>             Fix For: 2.0
>
>
> This will make it easier for applications to use custom tooltips.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIVOT-512) Add support for line item tooltips in data-driven components

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

Chris Bartlett commented on PIVOT-512:
--------------------------------------

It might be worth considering a different tooltip strategy for these components.  

Currently the tooltip will display after X milliseconds and disappear once the mouse/cursor is moved.

Perhaps the tooltip value should change as the mouse moves, but the tootlip itself should remain visible until the cursor exits the bounds of the component (or button press etc).  This will allow verbose item based tooltip data to be viewed quickly and easily without waiting for tooltips to repeatedly show & hide.

> Add support for line item tooltips in data-driven components
> ------------------------------------------------------------
>
>                 Key: PIVOT-512
>                 URL: https://issues.apache.org/jira/browse/PIVOT-512
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Greg Brown
>            Priority: Minor
>             Fix For: 2.1
>
>
> When enabled, the skin would use the toString() method of the renderer to determine an appropriate tooltip for the item.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIVOT-512) Add support for line item tooltips in data-driven components

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

Greg Brown commented on PIVOT-512:
----------------------------------

Sorry, I should have been more specific. I meant the toString(Object) method of the renderer. This method is used to convert items to a string representation (i.e. it "renders" the item as text). It is currently used to facilitate keyboard navigation (e.g. by jumping to the first item beginning with a given letter) but also seems like a natural fit here.

I think adding some sort of conversion interface would simply muddy the API, since converting items to strings is the primary purpose of the existing toString(Object) method. If you are using someone else's renderer, why not just extend it and override that method? Seems easy enough.



> Add support for line item tooltips in data-driven components
> ------------------------------------------------------------
>
>                 Key: PIVOT-512
>                 URL: https://issues.apache.org/jira/browse/PIVOT-512
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Greg Brown
>            Priority: Minor
>             Fix For: 1.6
>
>
> When enabled, the skin would use the toString() method of the renderer to determine an appropriate tooltip for the item.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PIVOT-512) Add support for line item tooltips in data-driven components

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

Greg Brown resolved PIVOT-512.
------------------------------

    Fix Version/s: 2.0
                       (was: 2.1)
       Resolution: Fixed

Component now fires a tooltipTriggered() event that application developers can use to invoke custom tooltips. See the following for an example:

http://svn.apache.org/repos/asf/pivot/trunk/examples/src/org/apache/pivot/examples/tooltips/



> Add support for line item tooltips in data-driven components
> ------------------------------------------------------------
>
>                 Key: PIVOT-512
>                 URL: https://issues.apache.org/jira/browse/PIVOT-512
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Greg Brown
>            Priority: Minor
>             Fix For: 2.0
>
>
> When enabled, the skin would use the toString() method of the renderer to determine an appropriate tooltip for the item.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIVOT-512) Add support for line item tooltips in data-driven components

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

Noel Grandin commented on PIVOT-512:
------------------------------------

I find toString() tricky to use because it's not always possible to override the renderer's method, particularly if you're using someone else's renderer.

I would prefer if we used some kind of function object to convert data items to strings for use in the tooltips.


> Add support for line item tooltips in data-driven components
> ------------------------------------------------------------
>
>                 Key: PIVOT-512
>                 URL: https://issues.apache.org/jira/browse/PIVOT-512
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Greg Brown
>            Priority: Minor
>             Fix For: 1.6
>
>
> When enabled, the skin would use the toString() method of the renderer to determine an appropriate tooltip for the item.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIVOT-512) Add support for line item tooltips in data-driven components

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

Greg Brown updated PIVOT-512:
-----------------------------

    Fix Version/s: 2.1
                       (was: 2.0)

> Add support for line item tooltips in data-driven components
> ------------------------------------------------------------
>
>                 Key: PIVOT-512
>                 URL: https://issues.apache.org/jira/browse/PIVOT-512
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Greg Brown
>            Priority: Minor
>             Fix For: 2.1
>
>
> When enabled, the skin would use the toString() method of the renderer to determine an appropriate tooltip for the item.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIVOT-512) Add support for line item tooltips in data-driven components

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

Noel Grandin commented on PIVOT-512:
------------------------------------

Aaah, I seem what you mean. Yes, that does sound better.

However, I still think we're going to need a way of generating tooltip text that is separate from toString(Object), even if it falls back to toString(Object) in the default case.

My tooltips are frequently quite a lot more verbose than the items that they are associated with.

> Add support for line item tooltips in data-driven components
> ------------------------------------------------------------
>
>                 Key: PIVOT-512
>                 URL: https://issues.apache.org/jira/browse/PIVOT-512
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Greg Brown
>            Priority: Minor
>             Fix For: 1.6
>
>
> When enabled, the skin would use the toString() method of the renderer to determine an appropriate tooltip for the item.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIVOT-512) Fire tooltipTriggered() event from Component

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

Greg Brown updated PIVOT-512:
-----------------------------

    Description: 
This will make it easier for applications to use custom tooltips.

(Note - previously this issue was entitled "Add support for line item tooltips in data-driven components" and the first comment read:

"When enabled, the skin would use the toString() method of the renderer to determine an appropriate tooltip for the item."

 


  was:
This will make it easier for applications to use custom tooltips.



> Fire tooltipTriggered() event from Component
> --------------------------------------------
>
>                 Key: PIVOT-512
>                 URL: https://issues.apache.org/jira/browse/PIVOT-512
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Greg Brown
>            Priority: Minor
>             Fix For: 2.0
>
>
> This will make it easier for applications to use custom tooltips.
> (Note - previously this issue was entitled "Add support for line item tooltips in data-driven components" and the first comment read:
> "When enabled, the skin would use the toString() method of the renderer to determine an appropriate tooltip for the item."
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.