--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at http://groups.google.com/group/cytoscape-helpdesk.
For more options, visit https://groups.google.com/groups/opt_out.
When implementing CyEdgeViewContextMenuFactory, create a JMenu in the createMenuItem function instead of a JMenuItem. You can then add both JMenuItems and JMenus (to which you can add JMenuItems to create submenus) to this menu as desired.After you have finished constructing your menu as desired, you would create the CyMenuItem to be returned by passing the parent JMenu into CyMenuItem's constructor (JMenu is accepted as a child class of JMenuItem).Hope this helps...Tim
On Tue, Aug 13, 2013 at 12:02 PM, Corinna Vehlow <corinna...@gmail.com> wrote:
Hi,
I'm currently working on an App for Cytopscape 3 that can be called over the context menu. So far, I have created a menu-option under Apps that shows up (lets name it "MyEdgeAction"), if the right-click was performed on an edge.
Therefore I used the sample app CreateNetworkViewContextMenu.
Instead of having one single menu option (Apps/MyEdgeAction), my app should have several submenu-options that depend on the clicked edge, similar to the ExternalLinks context-menu-option of Cytoscape (see attached screenshot). So I want to create I context-menu structure, such as:
Apps/MyEdgeAction/action1
Apps/MyEdgeAction/action2
Apps/MyEdgeAction/action3
Where the number and type of available actions depends on the edge the user clicked on.
These could be even split into further submenu, e.g.,
Apps/MyEdgeAction/action1/action1.1
Apps/MyEdgeAction/action1/action1.2
Does anyone know, how to set up a context menu like this?
Corinna
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsubscribe@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at http://groups.google.com/group/cytoscape-helpdesk.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cytoscape-helpdesk/gjlTvJlibwE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cytoscape-helpd...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cytoscape-helpdesk/gjlTvJlibwE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cytoscape-helpdesk/gjlTvJlibwE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at http://groups.google.com/group/cytoscape-helpdesk.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at http://groups.google.com/group/cytoscape-helpdesk.
For more options, visit https://groups.google.com/d/optout.