JViews Chart
Tag chartContextualMenu


Contextual Menu Faces Component

The contextual menu faces component allows you to create a pop-up 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

IlvChartFacesContextualMenu



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

Attributes
NameRequiredRequest-timeTypeDescription
partialSubmitfalsefalsejava.lang.StringThe partial submit mode. If true, and autoSubmit is also true, this interactor will do a partial submit on the enclosing form on a click event. The partial submit mode is set to false by default. This property is used when the invocation context value is JSF_CONTEXT.
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 pop-up menu depending on the graphic object clicked.
factoryClassfalsefalsejava.lang.StringThe pop-up 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, the interactor searches the display point that contains the picking point.
  • If the mode is NEAREST_ITEM, the interactor searches the display point whose renderer drawing is closest to the picking point.
  • If the mode is NEAREST_POINT, the interactor searches the display point closest to the picking point.
The default value is NEAREST_POINT.
baseTextDirectionfalsefalsejava.lang.StringThis attribute controls the direction of the text. supported values: LTR, RTL , Contextual

Variables
No Variables Defined.


© Copyright Rogue Wave Software Inc. 1997, 2018. All Rights Reserved.