JViews Chart
Tag chartContextualMenu


Contextual Menu Faces Component

The contextual menu faces component allows you to create a popup menu on a chart view faces component. The tag should be nested in a chartView tag.

The contextual menu faces component exposes a menu model that can be specified in two ways:

Usage

<jvcf:chartView
      id="chart"
      chart="#{bean.chart}">
  <jvcf:chartContextualMenu>
    <jv:menu
        label="root">
      <jv:menuItem
          label="Zoom In"
          onclick="chart.zoomInX()"
          image="images/zoom.gif"/>
      <jv:menuItem
          label="Zoom Out"
          onclick="chart.zoomOutX()"
          image="images/unzoom.gif"/>
      <jv:menuItem
          label="Zoom to Fit"
          onclick="chart.zoomToFit()"
          image="images/zoomfit.gif"/>
      <jv:menuSeparator/>
      <jv:menuItem 
          label="Select"
          actionListener="#{bean.pointSelected}"
          image="images/arrow.gif"
          invocationContext="IMAGE_SERVLET_CONTEXT"/>
    </jv:menu>
  </jvcf:chartContextualMenu>
</jvcf:chartView>

DHTML - JavaScript Types

IlvFacesChartContextualMenuProxy

JSF Component Class

IlvFacesContextualMenu



Tag Information
Tag Classilog.views.chart.faces.dhtml.taglib.IlvChartContextualMenuTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameContextual Menu

Attributes
NameRequiredRequest-timeTypeDescription
bindingfalsefalsejava.lang.StringThe value binding expression linking this component to a property in a backing bean. If this attribute is set, the tag does not create the component itself but retrieves it from the bean property. This attribute must be a value binding.
factoryfalsefalsejava.lang.StringThe factory that will dynamically generate the popup menu depending on the graphic object clicked.
factoryClassfalsefalsejava.lang.StringThe popup menu factory class name. This property is used if and only if the factory property is not set.
idfalsefalsejava.lang.StringThe ID of this component.
itemDisabledStyleClassfalsefalsejava.lang.StringThe CSS class name of a disabled menu item.
itemHighlightedStyleClassfalsefalsejava.lang.StringThe CSS class name of a highlighted menu item.
itemStyleClassfalsefalsejava.lang.StringThe CSS class name of a menu item.
pickingModefalsefalsejava.lang.StringThe picking mode. The picking mode defines how a point is retrieved.
  • If the mode is ITEM_PICKING, the interactor searches the display point that contains the picking point.
  • If the mode is NEAREST_POINT_PICKING, the interactor searches the display point closest to the picking point.
The default value is NEAREST_POINT_PICKING.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.   Documentation homepage.