Class UIMenuItem

java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UICommand
org.primefaces.component.menuitem.UIMenuItemBase
org.primefaces.component.menuitem.UIMenuItem
All Implemented Interfaces:
EventListener, javax.faces.component.ActionSource, javax.faces.component.ActionSource2, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, AjaxSource, Confirmable, DialogReturnAware, PrimeClientBehaviorHolder, UIOutcomeTarget, MenuElement, MenuItem

public class UIMenuItem extends UIMenuItemBase implements DialogReturnAware
  • Field Details

  • Constructor Details

    • UIMenuItem

      public UIMenuItem()
  • Method Details

    • getBehaviorEventMapping

      public Map<String,Class<? extends javax.faces.event.BehaviorEvent>> getBehaviorEventMapping()
      Specified by:
      getBehaviorEventMapping in interface PrimeClientBehaviorHolder
    • getEventNames

      public Collection<String> getEventNames()
      Specified by:
      getEventNames in interface javax.faces.component.behavior.ClientBehaviorHolder
      Overrides:
      getEventNames in class javax.faces.component.UIComponentBase
    • getDefaultEventName

      public String getDefaultEventName()
      Specified by:
      getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHolder
      Overrides:
      getDefaultEventName in class javax.faces.component.UIComponentBase
    • decode

      public void decode(javax.faces.context.FacesContext facesContext)
      Overrides:
      decode in class javax.faces.component.UIComponentBase
    • queueEvent

      public void queueEvent(javax.faces.event.FacesEvent e)
      Overrides:
      queueEvent in class javax.faces.component.UICommand
    • shouldRenderChildren

      public boolean shouldRenderChildren()
      Specified by:
      shouldRenderChildren in interface MenuItem
    • isPartialSubmitSet

      public boolean isPartialSubmitSet()
      Specified by:
      isPartialSubmitSet in interface AjaxSource
    • isResetValuesSet

      public boolean isResetValuesSet()
      Specified by:
      isResetValuesSet in interface AjaxSource
    • getHref

      public String getHref()
      Specified by:
      getHref in interface UIOutcomeTarget
    • isDynamic

      public boolean isDynamic()
      Specified by:
      isDynamic in interface MenuItem
    • getParams

      public Map<String,List<String>> getParams()
      Specified by:
      getParams in interface MenuItem
      Specified by:
      getParams in interface UIOutcomeTarget
    • getCommand

      public String getCommand()
      Description copied from interface: MenuItem
      A MethodExpression in the form of a string which is called after the menu item has been clicked. It is ignored when url is not null.
      Specified by:
      getCommand in interface MenuItem
      Returns:
      The outcome, which will be used for navigation.
    • isAjaxified

      public boolean isAjaxified()
      Specified by:
      isAjaxified in interface AjaxSource
    • setParam

      public void setParam(String key, Object value)
      Specified by:
      setParam in interface MenuItem
    • getConfirmationScript

      public String getConfirmationScript()
      Specified by:
      getConfirmationScript in interface Confirmable
    • setConfirmationScript

      public void setConfirmationScript(String confirmationScript)
      Specified by:
      setConfirmationScript in interface Confirmable
    • requiresConfirmation

      public boolean requiresConfirmation()
      Specified by:
      requiresConfirmation in interface Confirmable