Package org.primefaces.model.menu
Interface MenuItem
- All Superinterfaces:
Confirmable,MenuElement
- All Known Implementing Classes:
DefaultMenuItem,UIMenuItem,UIMenuItemBase
-
Method Summary
Modifier and TypeMethodDescriptiongetBadge()AMethodExpressionin the form of a string which is called after the menu item has been clicked.Lambda alternative to thegetCommand().getIcon()The JSF outcome of a navigation case which is resolved by the configuredNavigationHandler.getRel()getStyle()getTitle()getUrl()The URL to redirect to after the menu item has been clicked.getValue()booleanisAjax()booleanbooleanbooleanisEscape()booleanbooleanvoidvoidsetStyleClass(String styleClass) booleanMethods inherited from interface org.primefaces.component.api.Confirmable
getConfirmationScript, requiresConfirmation, setConfirmationScriptMethods inherited from interface org.primefaces.model.menu.MenuElement
getId, isRendered, setId
-
Method Details
-
getIcon
String getIcon() -
getIconPos
String getIconPos() -
getTitle
String getTitle() -
shouldRenderChildren
boolean shouldRenderChildren() -
isDisabled
boolean isDisabled() -
getOnclick
String getOnclick() -
getStyle
String getStyle() -
getStyleClass
String getStyleClass() -
getUrl
String getUrl()The 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.- Returns:
- the URL.
-
getTarget
String getTarget() -
getOutcome
String getOutcome()The JSF outcome of a navigation case which is resolved by the configuredNavigationHandler. Similar tourl, buturlallows to specify fully qualified URLs.- Returns:
- the outcome.
-
getFragment
String getFragment() -
isIncludeViewParams
boolean isIncludeViewParams() -
isAjax
boolean isAjax() -
getValue
Object getValue() -
setStyleClass
-
getParams
-
setParam
-
isDynamic
boolean isDynamic() -
getCommand
String getCommand()AMethodExpressionin the form of a string which is called after the menu item has been clicked. It is ignored whenurlis notnull.- Returns:
- The outcome, which will be used for navigation.
-
getFunction
SerializableFunction<MenuItem,String> getFunction()Lambda alternative to thegetCommand().- Returns:
- The outcome, which will be used for navigation.
-
isImmediate
boolean isImmediate() -
getClientId
String getClientId() -
getContainerStyle
String getContainerStyle() -
getContainerStyleClass
String getContainerStyleClass() -
isEscape
boolean isEscape() -
getRel
String getRel() -
getAriaLabel
String getAriaLabel() -
getBadge
Object getBadge()
-