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 2010/09/03 18:25:32 UTC

[jira] Created: (PIVOT-626) Add "userData" member to TreeNode to facilitate right-click menu handling (among other things)

Add "userData" member to TreeNode to facilitate right-click menu handling (among other things)
----------------------------------------------------------------------------------------------

                 Key: PIVOT-626
                 URL: https://issues.apache.org/jira/browse/PIVOT-626
             Project: Pivot
          Issue Type: Wish
          Components: wtk
    Affects Versions: 1.5.1
         Environment: WIndows XP SP3
            Reporter: Roger Whitcomb
            Priority: Minor
             Fix For: 1.5.2


This wish/enhancement would be useful for those using the default TreeNode/TreeBranch as the data model for a TreeView -- the use case is the situation where an icon and/or string is sufficient for rendering in the tree but another type of object is more appropriate for determining (for instance) the right-click menu behavior, or the selection behavior of the tree node.

The "String" override for "setUserData" also allows setting this property via WTKX/BXML files.

Diff file attached to the issue I have running already.

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


[jira] Updated: (PIVOT-626) Add "userData" member to TreeNode to facilitate right-click menu handling (among other things)

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

Roger Whitcomb updated PIVOT-626:
---------------------------------

    Attachment: userdata.diff

This is an SVN diff that implements this change.  It builds fine and seems to work in practice -- I'm using it right now.

> Add "userData" member to TreeNode to facilitate right-click menu handling (among other things)
> ----------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-626
>                 URL: https://issues.apache.org/jira/browse/PIVOT-626
>             Project: Pivot
>          Issue Type: Wish
>          Components: wtk
>    Affects Versions: 1.5.1
>         Environment: WIndows XP SP3
>            Reporter: Roger Whitcomb
>            Priority: Minor
>             Fix For: 1.5.2
>
>         Attachments: userdata.diff
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> This wish/enhancement would be useful for those using the default TreeNode/TreeBranch as the data model for a TreeView -- the use case is the situation where an icon and/or string is sufficient for rendering in the tree but another type of object is more appropriate for determining (for instance) the right-click menu behavior, or the selection behavior of the tree node.
> The "String" override for "setUserData" also allows setting this property via WTKX/BXML files.
> Diff file attached to the issue I have running already.

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


[jira] Commented: (PIVOT-626) Add "userData" member to TreeNode to facilitate right-click menu handling (among other things)

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

Roger Whitcomb commented on PIVOT-626:
--------------------------------------

Cool. Thank you.

Yeah, I added the "String" setter just to make sure it would work, but if it's not necessary, then that's great.

> Add "userData" member to TreeNode to facilitate right-click menu handling (among other things)
> ----------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-626
>                 URL: https://issues.apache.org/jira/browse/PIVOT-626
>             Project: Pivot
>          Issue Type: Wish
>          Components: wtk
>    Affects Versions: 1.5.1
>         Environment: WIndows XP SP3
>            Reporter: Roger Whitcomb
>            Priority: Minor
>             Fix For: 1.5.2, 2.0
>
>         Attachments: userdata.diff
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> This wish/enhancement would be useful for those using the default TreeNode/TreeBranch as the data model for a TreeView -- the use case is the situation where an icon and/or string is sufficient for rendering in the tree but another type of object is more appropriate for determining (for instance) the right-click menu behavior, or the selection behavior of the tree node.
> The "String" override for "setUserData" also allows setting this property via WTKX/BXML files.
> Diff file attached to the issue I have running already.

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


[jira] Resolved: (PIVOT-626) Add "userData" member to TreeNode to facilitate right-click menu handling (among other things)

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

Greg Brown resolved PIVOT-626.
------------------------------

    Fix Version/s: 2.0
       Resolution: Fixed

Patch applied (I removed the redundant String setter, though).



> Add "userData" member to TreeNode to facilitate right-click menu handling (among other things)
> ----------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-626
>                 URL: https://issues.apache.org/jira/browse/PIVOT-626
>             Project: Pivot
>          Issue Type: Wish
>          Components: wtk
>    Affects Versions: 1.5.1
>         Environment: WIndows XP SP3
>            Reporter: Roger Whitcomb
>            Priority: Minor
>             Fix For: 1.5.2, 2.0
>
>         Attachments: userdata.diff
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> This wish/enhancement would be useful for those using the default TreeNode/TreeBranch as the data model for a TreeView -- the use case is the situation where an icon and/or string is sufficient for rendering in the tree but another type of object is more appropriate for determining (for instance) the right-click menu behavior, or the selection behavior of the tree node.
> The "String" override for "setUserData" also allows setting this property via WTKX/BXML files.
> Diff file attached to the issue I have running already.

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