JViews Gantt
Tag ganttContextualMenu


Contextual Menu Faces Component

The contextual menu faces component allows you to create a pop-up menu on a Gantt or schedule view faces component. The tag should be nested in a ganttView or scheduleView tag.

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

Usage

<jvgf:ganttView
      id="gantt"
      chart="#{bean.gantt}">
  <jvgf:ganttContextualMenu>
    <jv:menu
        label="root">
      <jv:menuItem
          label="Zoom In"
          onclick="gantt.zoomIn()"
          image="images/zoom.gif"/>
      <jv:menuItem
          label="Zoom Out"
          onclick="gantt.zoomOut()"
          image="images/unzoom.gif"/>
      <jv:menuItem
          label="Zoom to Fit"
          onclick="gantt.zoomToFit()"
          image="images/zoomfit.gif"/>
      <jv:menuSeparator/>
      <jv:menuItem 
          label="Expand All"
          actionListener="#{bean.expandAllRows}"
          image="images/arrow.gif"
          invocationContext="IMAGE_SERVLET_CONTEXT"/>
    </jv:menu>
  </jvgf:ganttContextualMenu>
</jvgf:ganttView>

DHTML - JavaScript Types

IlvGanttContextualMenuProxy

JSF Component Class

IlvFacesContextualMenu



Tag Information
Tag Classilog.views.gantt.faces.dhtml.taglib.IlvFacesGanttContextualMenuTag
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 generates the pop-up menu depending on the clicked graphic object. \ The factory must be an instance of ilog.views.util.servlet.IlvMenuFactory.
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.
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.