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_FAMILYFields 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_KEYFields inherited from interface org.primefaces.component.api.DialogReturnAware
ATTRIBUTE_DIALOG_RETURN_SCRIPT, EVENT_DIALOG_RETURNFields inherited from interface org.primefaces.component.api.PrimeClientBehaviorHolder
DEFAULT_SELECT_EVENT_NAMES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(javax.faces.context.FacesContext facesContext) AMethodExpressionin the form of a string which is called after the menu item has been clicked.getHref()booleanbooleanbooleanbooleanvoidqueueEvent(javax.faces.event.FacesEvent e) booleanvoidsetConfirmationScript(String confirmationScript) voidbooleanMethods 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, setUrlMethods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValueMethods 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, unsubscribeFromEventMethods 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, visitTreeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviorsMethods inherited from interface org.primefaces.component.api.DialogReturnAware
isDialogReturnEvent, queueDialogReturnEventMethods inherited from interface org.primefaces.model.menu.MenuElement
getId, isRendered, setIdMethods inherited from interface org.primefaces.model.menu.MenuItem
getClientId, getValue, isImmediateMethods 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:
getBehaviorEventMappingin interfacePrimeClientBehaviorHolder
-
getEventNames
- Specified by:
getEventNamesin interfacejavax.faces.component.behavior.ClientBehaviorHolder- Overrides:
getEventNamesin classjavax.faces.component.UIComponentBase
-
getDefaultEventName
- Specified by:
getDefaultEventNamein interfacejavax.faces.component.behavior.ClientBehaviorHolder- Overrides:
getDefaultEventNamein classjavax.faces.component.UIComponentBase
-
decode
public void decode(javax.faces.context.FacesContext facesContext) - Overrides:
decodein classjavax.faces.component.UIComponentBase
-
queueEvent
public void queueEvent(javax.faces.event.FacesEvent e) - Overrides:
queueEventin classjavax.faces.component.UICommand
-
shouldRenderChildren
public boolean shouldRenderChildren()- Specified by:
shouldRenderChildrenin interfaceMenuItem
-
isPartialSubmitSet
public boolean isPartialSubmitSet()- Specified by:
isPartialSubmitSetin interfaceAjaxSource
-
isResetValuesSet
public boolean isResetValuesSet()- Specified by:
isResetValuesSetin interfaceAjaxSource
-
getHref
- Specified by:
getHrefin interfaceUIOutcomeTarget
-
isDynamic
public boolean isDynamic() -
getParams
- Specified by:
getParamsin interfaceMenuItem- Specified by:
getParamsin interfaceUIOutcomeTarget
-
getCommand
Description copied from interface:MenuItemAMethodExpressionin the form of a string which is called after the menu item has been clicked. It is ignored whenurlis notnull.- Specified by:
getCommandin interfaceMenuItem- Returns:
- The outcome, which will be used for navigation.
-
isAjaxified
public boolean isAjaxified()- Specified by:
isAjaxifiedin interfaceAjaxSource
-
setParam
-
getConfirmationScript
- Specified by:
getConfirmationScriptin interfaceConfirmable
-
setConfirmationScript
- Specified by:
setConfirmationScriptin interfaceConfirmable
-
requiresConfirmation
public boolean requiresConfirmation()- Specified by:
requiresConfirmationin interfaceConfirmable
-