Class UIMenuItemBase
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UICommand
org.primefaces.component.menuitem.UIMenuItemBase
- 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,PrimeClientBehaviorHolder,UIOutcomeTarget,MenuElement,MenuItem
- Direct Known Subclasses:
UIMenuItem
public abstract class UIMenuItemBase
extends javax.faces.component.UICommand
implements AjaxSource, UIOutcomeTarget, MenuItem, Confirmable, javax.faces.component.behavior.ClientBehaviorHolder, PrimeClientBehaviorHolder
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class javax.faces.component.UICommand
COMPONENT_TYPEFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBadge()getDelay()getForm()Lambda alternative to theMenuItem.getCommand().getIcon()The JSF outcome of a navigation case which is resolved by the configuredNavigationHandler.getRel()getStyle()intgetTitle()getUrl()The URL to redirect to after the menu item has been clicked.booleanisAjax()booleanisAsync()booleanbooleanbooleanisEscape()booleanisGlobal()booleanbooleanbooleanbooleanbooleanvoidsetAjax(boolean ajax) voidsetAriaLabel(String ariaLabel) voidsetAsync(boolean async) voidvoidsetContainerStyle(String containerStyle) voidsetContainerStyleClass(String containerStyleClass) voidvoidsetDisableClientWindow(boolean disableClientWindow) voidsetDisabled(boolean disabled) voidsetEscape(boolean escape) voidvoidsetFragment(String fragment) voidsetGlobal(boolean global) voidvoidsetIconPos(String iconPos) voidsetIgnoreAutoUpdate(boolean ignoreAutoUpdate) voidsetIgnoreComponentNotFound(boolean ignoreComponentNotFound) voidsetIncludeViewParams(boolean includeViewParams) voidsetOnclick(String onclick) voidsetOncomplete(String oncomplete) voidsetOnerror(String onerror) voidsetOnstart(String onstart) voidsetOnsuccess(String onsuccess) voidsetOutcome(String outcome) voidsetPartialSubmit(boolean partialSubmit) voidsetPartialSubmitFilter(String partialSubmitFilter) voidsetProcess(String process) voidvoidsetResetValues(boolean resetValues) voidvoidsetStyleClass(String styleClass) voidvoidsetTimeout(int timeout) voidvoidvoidMethods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValueMethods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, 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 org.primefaces.component.api.AjaxSource
isAjaxified, isPartialSubmitSet, isResetValuesSetMethods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors, getDefaultEventName, getEventNamesMethods inherited from interface org.primefaces.component.api.Confirmable
getConfirmationScript, requiresConfirmation, setConfirmationScriptMethods inherited from interface org.primefaces.model.menu.MenuElement
getId, isRendered, setIdMethods inherited from interface org.primefaces.model.menu.MenuItem
getClientId, getCommand, getParams, getValue, isDynamic, isImmediate, setParam, shouldRenderChildrenMethods inherited from interface org.primefaces.component.api.PrimeClientBehaviorHolder
getBehaviorEventMappingMethods inherited from interface org.primefaces.component.api.UIOutcomeTarget
getChildren, getHref, getParams
-
Field Details
-
COMPONENT_FAMILY
- See Also:
-
-
Constructor Details
-
UIMenuItemBase
public UIMenuItemBase()
-
-
Method Details
-
getFamily
- Overrides:
getFamilyin classjavax.faces.component.UICommand
-
getUrl
Description copied from interface:MenuItemThe URL to redirect to after the menu item has been clicked. Similar tooutcomewhich allows to specify a navigation case, but the value is not touched (no prepending of the contextPath, not appending the sessionId or windowId), just encoded. Specifying aurlwhich is notnullcausescommandto be ignored. -
setUrl
-
getTarget
-
setTarget
-
getStyle
-
setStyle
-
getStyleClass
- Specified by:
getStyleClassin interfaceMenuItem
-
setStyleClass
- Specified by:
setStyleClassin interfaceMenuItem
-
getOnclick
- Specified by:
getOnclickin interfaceMenuItem
-
setOnclick
-
getUpdate
- Specified by:
getUpdatein interfaceAjaxSource
-
setUpdate
-
getProcess
- Specified by:
getProcessin interfaceAjaxSource
-
setProcess
-
getOnstart
- Specified by:
getOnstartin interfaceAjaxSource
-
setOnstart
-
isDisabled
public boolean isDisabled()- Specified by:
isDisabledin interfaceMenuItem
-
setDisabled
public void setDisabled(boolean disabled) -
getOncomplete
- Specified by:
getOncompletein interfaceAjaxSource
-
setOncomplete
-
getOnerror
- Specified by:
getOnerrorin interfaceAjaxSource
-
setOnerror
-
getOnsuccess
- Specified by:
getOnsuccessin interfaceAjaxSource
-
setOnsuccess
-
isGlobal
public boolean isGlobal()- Specified by:
isGlobalin interfaceAjaxSource
-
setGlobal
public void setGlobal(boolean global) -
getDelay
- Specified by:
getDelayin interfaceAjaxSource
-
setDelay
-
getTimeout
public int getTimeout()- Specified by:
getTimeoutin interfaceAjaxSource
-
setTimeout
public void setTimeout(int timeout) -
isAsync
public boolean isAsync()- Specified by:
isAsyncin interfaceAjaxSource
-
setAsync
public void setAsync(boolean async) -
isAjax
public boolean isAjax() -
setAjax
public void setAjax(boolean ajax) -
getIcon
-
setIcon
-
getIconPos
- Specified by:
getIconPosin interfaceMenuItem
-
setIconPos
-
isPartialSubmit
public boolean isPartialSubmit()- Specified by:
isPartialSubmitin interfaceAjaxSource
-
setPartialSubmit
public void setPartialSubmit(boolean partialSubmit) -
isResetValues
public boolean isResetValues()- Specified by:
isResetValuesin interfaceAjaxSource
-
setResetValues
public void setResetValues(boolean resetValues) -
isIgnoreAutoUpdate
public boolean isIgnoreAutoUpdate()- Specified by:
isIgnoreAutoUpdatein interfaceAjaxSource
-
setIgnoreAutoUpdate
public void setIgnoreAutoUpdate(boolean ignoreAutoUpdate) -
getTitle
-
setTitle
-
getOutcome
Description copied from interface:MenuItemThe JSF outcome of a navigation case which is resolved by the configuredNavigationHandler. Similar tourl, buturlallows to specify fully qualified URLs.- Specified by:
getOutcomein interfaceMenuItem- Specified by:
getOutcomein interfaceUIOutcomeTarget- Returns:
- the outcome.
-
setOutcome
-
isIncludeViewParams
public boolean isIncludeViewParams()- Specified by:
isIncludeViewParamsin interfaceMenuItem- Specified by:
isIncludeViewParamsin interfaceUIOutcomeTarget
-
setIncludeViewParams
public void setIncludeViewParams(boolean includeViewParams) -
getFragment
- Specified by:
getFragmentin interfaceMenuItem- Specified by:
getFragmentin interfaceUIOutcomeTarget
-
setFragment
-
isDisableClientWindow
public boolean isDisableClientWindow()- Specified by:
isDisableClientWindowin interfaceUIOutcomeTarget
-
setDisableClientWindow
public void setDisableClientWindow(boolean disableClientWindow) -
getContainerStyle
- Specified by:
getContainerStylein interfaceMenuItem
-
setContainerStyle
-
getContainerStyleClass
- Specified by:
getContainerStyleClassin interfaceMenuItem
-
setContainerStyleClass
-
getPartialSubmitFilter
- Specified by:
getPartialSubmitFilterin interfaceAjaxSource
-
setPartialSubmitFilter
-
getForm
- Specified by:
getFormin interfaceAjaxSource
-
setForm
-
isEscape
public boolean isEscape() -
setEscape
public void setEscape(boolean escape) -
getRel
-
setRel
-
getFunction
Description copied from interface:MenuItemLambda alternative to theMenuItem.getCommand().- Specified by:
getFunctionin interfaceMenuItem- Returns:
- The outcome, which will be used for navigation.
-
isIgnoreComponentNotFound
public boolean isIgnoreComponentNotFound()- Specified by:
isIgnoreComponentNotFoundin interfaceAjaxSource
-
setIgnoreComponentNotFound
public void setIgnoreComponentNotFound(boolean ignoreComponentNotFound) -
getAriaLabel
- Specified by:
getAriaLabelin interfaceMenuItem
-
setAriaLabel
-
getBadge
-
setBadge
-