[
https://issues.apache.org/jira/browse/PIVOT-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734133#action_12734133
]
Noel Grandin commented on PIVOT-181:
------------------------------------
I'm not sure that context-menu handling is sufficiently standardized that you
can do ALL of that. (I'm in general agreement with need for some framework
level support).
Specifically, I don't think you can walk down the tree and accumulate context
menu entries, because some components are going to want to do radically
different things on right-mouse-click.
For example, some people might want to implement radial context menus, or
simply do something else altogether on right-mouse-click.
But I can definitely see the need for some utility code that makes implementing
context menus easier.
> Context menu handler
> --------------------
>
> Key: PIVOT-181
> URL: https://issues.apache.org/jira/browse/PIVOT-181
> Project: Pivot
> Issue Type: New Feature
> Components: wtk
> Reporter: Todd Volkert
> Assignee: Todd Volkert
> Fix For: 1.3
>
>
> Create framework-level support for context menus by creating a
> Component.ContextMenuHandler interface. When the display host detects a
> right click, it will:
> 1) Get a reference to the lowest-level component that the mouse is over, and
> if that's non-null...
> 2) Construct the path from the display to that component, instantiate a
> MenuPopup
> 3) Walk the path, passing the menu popup's menu to each ContextMenuHandler
> that is found along the path
> 4) Open the menu popup if the menu is non-empty after the path has been walked
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.