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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.primefaces.component.menuitem.UIMenuItemBase
UIMenuItemBase.PropertyKeys
-
Field Summary
FieldsFields inherited from class org.primefaces.component.menuitem.UIMenuItemBase
COMPONENT_FAMILY
Fields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
Fields inherited from interface org.primefaces.component.api.DialogReturnAware
ATTRIBUTE_DIALOG_RETURN_SCRIPT, EVENT_DIALOG_RETURN
Fields inherited from interface org.primefaces.component.api.PrimeClientBehaviorHolder
DEFAULT_SELECT_EVENT_NAMES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(javax.faces.context.FacesContext facesContext) AMethodExpression
in the form of a string which is called after the menu item has been clicked.getHref()
boolean
boolean
boolean
boolean
void
queueEvent
(javax.faces.event.FacesEvent e) boolean
void
setConfirmationScript
(String confirmationScript) void
boolean
Methods inherited from class org.primefaces.component.menuitem.UIMenuItemBase
getAriaLabel, getBadge, getContainerStyle, getContainerStyleClass, getDelay, getFamily, getForm, getFragment, getFunction, getIcon, getIconPos, getOnclick, getOncomplete, getOnerror, getOnstart, getOnsuccess, getOutcome, getPartialSubmitFilter, getProcess, getRel, getStyle, getStyleClass, getTarget, getTimeout, getTitle, getUpdate, getUrl, isAjax, isAsync, isDisableClientWindow, isDisabled, isEscape, isGlobal, isIgnoreAutoUpdate, isIgnoreComponentNotFound, isIncludeViewParams, isPartialSubmit, isResetValues, setAjax, setAriaLabel, setAsync, setBadge, setContainerStyle, setContainerStyleClass, setDelay, setDisableClientWindow, setDisabled, setEscape, setForm, setFragment, setGlobal, setIcon, setIconPos, setIgnoreAutoUpdate, setIgnoreComponentNotFound, setIncludeViewParams, setOnclick, setOncomplete, setOnerror, setOnstart, setOnsuccess, setOutcome, setPartialSubmit, setPartialSubmitFilter, setProcess, setRel, setResetValues, setStyle, setStyleClass, setTarget, setTimeout, setTitle, setUpdate, setUrl
Methods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors
Methods inherited from interface org.primefaces.component.api.DialogReturnAware
isDialogReturnEvent, queueDialogReturnEvent
Methods inherited from interface org.primefaces.model.menu.MenuElement
getId, isRendered, setId
Methods inherited from interface org.primefaces.model.menu.MenuItem
getClientId, getValue, isImmediate
Methods inherited from interface org.primefaces.component.api.UIOutcomeTarget
getChildren
-
Field Details
-
COMPONENT_TYPE
- See Also:
-
-
Constructor Details
-
UIMenuItem
public UIMenuItem()
-
-
Method Details
-
getBehaviorEventMapping
- Specified by:
getBehaviorEventMapping
in interfacePrimeClientBehaviorHolder
-
getEventNames
- Specified by:
getEventNames
in interfacejavax.faces.component.behavior.ClientBehaviorHolder
- Overrides:
getEventNames
in classjavax.faces.component.UIComponentBase
-
getDefaultEventName
- Specified by:
getDefaultEventName
in interfacejavax.faces.component.behavior.ClientBehaviorHolder
- Overrides:
getDefaultEventName
in classjavax.faces.component.UIComponentBase
-
decode
public void decode(javax.faces.context.FacesContext facesContext) - Overrides:
decode
in classjavax.faces.component.UIComponentBase
-
queueEvent
public void queueEvent(javax.faces.event.FacesEvent e) - Overrides:
queueEvent
in classjavax.faces.component.UICommand
-
shouldRenderChildren
public boolean shouldRenderChildren()- Specified by:
shouldRenderChildren
in interfaceMenuItem
-
isPartialSubmitSet
public boolean isPartialSubmitSet()- Specified by:
isPartialSubmitSet
in interfaceAjaxSource
-
isResetValuesSet
public boolean isResetValuesSet()- Specified by:
isResetValuesSet
in interfaceAjaxSource
-
getHref
- Specified by:
getHref
in interfaceUIOutcomeTarget
-
isDynamic
public boolean isDynamic() -
getParams
- Specified by:
getParams
in interfaceMenuItem
- Specified by:
getParams
in interfaceUIOutcomeTarget
-
getCommand
Description copied from interface:MenuItem
AMethodExpression
in the form of a string which is called after the menu item has been clicked. It is ignored whenurl
is notnull
.- Specified by:
getCommand
in interfaceMenuItem
- Returns:
- The outcome, which will be used for navigation.
-
isAjaxified
public boolean isAjaxified()- Specified by:
isAjaxified
in interfaceAjaxSource
-
setParam
-
getConfirmationScript
- Specified by:
getConfirmationScript
in interfaceConfirmable
-
setConfirmationScript
- Specified by:
setConfirmationScript
in interfaceConfirmable
-
requiresConfirmation
public boolean requiresConfirmation()- Specified by:
requiresConfirmation
in interfaceConfirmable
-