<jvdf:diagrammerView [...] > <jvf:contextualMenu [...]/> </jvdf:diagrammerView>
<jvf:view [...] > <jvf:contextualMenu [...]> </jvf:view>
<jvf:contextualMenu <jv:menu label="root"> <jv:menuItem label="Zoom ..." onclick="zoomButton.doClick()" image="images/zoomrect.gif" /> <jv:menuItem label="Pan ..." onclick="panButton.doClick()" image="images/pan.gif"/> <jv:menuSeparator/> <jv:menuItem label="Zoom In" onclick="viewID.zoomIn()" image="images/zoom.gif" /> <jv:menuItem label="Zoom Out" onclick="viewID.zoomOut()" image="images/unzoom.gif"/> <jv:menuItem label="Zoom to Fit" onclick="viewID.showAll()" image="images/zoomfit.gif"/> <jv:menuSeparator/> <jv:menuItem label="Select" actionListener="#{diagrammerBean.action}" actionListener="#{ganttBean.action}" image="images/arrow.gif" invocationContext="IMAGE_SERVLET_CONTEXT" /> </jv:menu> </jvf:contextualMenu>
<jvf:contextualMenu <jv:menu label="root"> <jv:menuItem label="Zoom ..." onclick="zoomButton.doClick()" image="images/zoomrect.gif" /> <jv:menuItem label="Pan ..." onclick="panButton.doClick()" image="images/pan.gif"/> <jv:menuSeparator/> <jv:menuItem label="Zoom In" onclick="viewID.zoomIn()" image="images/zoom.gif" /> <jv:menuItem label="Zoom Out" onclick="viewID.zoomOut()" image="images/unzoom.gif"/> <jv:menuItem label="Zoom to Fit" onclick="viewID.showAll()" image="images/zoomfit.gif"/> <jv:menuSeparator/> <jv:menuItem label="Select" actionListener="#{frameworkBean.action}" actionListener="#{ganttBean.action}" image="images/arrow.gif" invocationContext="IMAGE_SERVLET_CONTEXT" /> </jv:menu> </jvf:contextualMenu>
menuModelId
property
of the current interactor set on the view.<jvf:contextualMenu factory="#{bean.factory}"/> <jvf:contextualMenu factoryClass="com.xyz.demo.DemoFactory"/>
<jvf:contextualMenu factory="#{bean.factory}"/> <jvf:contextualMenu factoryClass="com.xyz.demo.DemoFactory"/>