public class DefaultMenuItem extends Object implements MenuItem, UIOutcomeTarget, AjaxSource, Serializable
Constructor and Description |
---|
DefaultMenuItem()
Creates a new menu item without value.
|
DefaultMenuItem(Object value)
Creates a new menu item with the specified
|
DefaultMenuItem(Object value,
String icon)
Creates a new menu item with the specified
|
DefaultMenuItem(Object value,
String icon,
String url)
Creates a menu item with the specified
|
public DefaultMenuItem()
public DefaultMenuItem(Object value)
value
- the value of the item used as labelpublic DefaultMenuItem(Object value, String icon)
value
- the value of the item used as labelicon
- the icon to be displayed next to the labelpublic DefaultMenuItem(Object value, String icon, String url)
value
- the value of the item used as labelicon
- the icon to be displayed next to the labelurl
- a URL to redirect to after the menu item has been clicked
(specifying a url
which is not null
causes
command
to be ignored) (another form of redirection is provided
by the outcome
property)public String getId()
MenuElement
id
attribute in the generated
XHTML.getId
in interface MenuElement
public void setId(String id)
MenuElement
MenuElement.getId()
. You should
have a good reason to call this if you're not extending, but only using
Primefaces.
The property is unrelated to the id
attribute in the generated
XHTML.setId
in interface MenuElement
id
- the id valuepublic String getIconPos()
getIconPos
in interface MenuItem
public void setIconPos(String iconPos)
public void setIcon(String icon)
public void setTitle(String title)
public boolean isDisabled()
isDisabled
in interface MenuItem
public void setDisabled(boolean disabled)
public String getOnclick()
getOnclick
in interface MenuItem
public void setOnclick(String onclick)
public void setStyle(String style)
public String getStyleClass()
getStyleClass
in interface MenuItem
public void setStyleClass(String styleClass)
setStyleClass
in interface MenuItem
public String getHref()
getHref
in interface UIOutcomeTarget
public void setHref(String href)
public void setUrl(String url)
public void setTarget(String target)
public String getOutcome()
getOutcome
in interface UIOutcomeTarget
getOutcome
in interface MenuItem
public void setOutcome(String outcome)
public void setAjax(boolean ajax)
public void setValue(Object value)
public boolean isIncludeViewParams()
isIncludeViewParams
in interface UIOutcomeTarget
isIncludeViewParams
in interface MenuItem
public void setIncludeViewParams(boolean includeViewParams)
public String getFragment()
getFragment
in interface UIOutcomeTarget
getFragment
in interface MenuItem
public void setFragment(String fragment)
public Map<String,List<String>> getParams()
getParams
in interface UIOutcomeTarget
getParams
in interface MenuItem
public boolean shouldRenderChildren()
shouldRenderChildren
in interface MenuItem
public List<javax.faces.component.UIComponent> getChildren()
getChildren
in interface UIOutcomeTarget
public String getCommand()
getCommand
in interface MenuItem
public void setCommand(String command)
public boolean isRendered()
isRendered
in interface MenuElement
public void setRendered(boolean rendered)
public String getOnstart()
getOnstart
in interface AjaxSource
public void setOnstart(String onstart)
public String getOnerror()
getOnerror
in interface AjaxSource
public void setOnerror(String onerror)
public String getOnsuccess()
getOnsuccess
in interface AjaxSource
public void setOnsuccess(String onsuccess)
public String getOncomplete()
getOncomplete
in interface AjaxSource
public void setOncomplete(String oncomplete)
public String getUpdate()
getUpdate
in interface AjaxSource
public void setUpdate(String update)
public String getProcess()
getProcess
in interface AjaxSource
public void setProcess(String process)
public boolean isPartialSubmit()
isPartialSubmit
in interface AjaxSource
public void setPartialSubmit(boolean partialSubmit)
public boolean isResetValues()
isResetValues
in interface AjaxSource
public void setResetValues(boolean resetValues)
public boolean isGlobal()
isGlobal
in interface AjaxSource
public void setGlobal(boolean global)
public boolean isAsync()
isAsync
in interface AjaxSource
public void setAsync(boolean async)
public boolean isPartialSubmitSet()
isPartialSubmitSet
in interface AjaxSource
public boolean isResetValuesSet()
isResetValuesSet
in interface AjaxSource
public boolean isIgnoreAutoUpdate()
isIgnoreAutoUpdate
in interface AjaxSource
public void setIgnoreAutoUpdate(boolean ignoreAutoUpdate)
public boolean isImmediate()
isImmediate
in interface MenuItem
public void setImmediate(boolean immediate)
public boolean isAjaxified()
isAjaxified
in interface AjaxSource
public String getDelay()
getDelay
in interface AjaxSource
public void setDelay(String delay)
public boolean isDisableClientWindow()
isDisableClientWindow
in interface UIOutcomeTarget
public void setDisableClientWindow(boolean disableClientWindow)
public String getContainerStyle()
getContainerStyle
in interface MenuItem
public void setContainerStyle(String containerStyle)
public String getContainerStyleClass()
getContainerStyleClass
in interface MenuItem
public void setContainerStyleClass(String containerStyleClass)
public String getClientId()
getClientId
in interface MenuItem
public int getTimeout()
getTimeout
in interface AjaxSource
public void setTimeout(int timeout)
public String getPartialSubmitFilter()
getPartialSubmitFilter
in interface AjaxSource
public void setPartialSubmitFilter(String partialSubmitFilter)
public String getForm()
getForm
in interface AjaxSource
public void setForm(String form)
public String getConfirmationScript()
getConfirmationScript
in interface Confirmable
public void setConfirmationScript(String confirmationScript)
setConfirmationScript
in interface Confirmable
public boolean requiresConfirmation()
requiresConfirmation
in interface Confirmable
public void setEscape(boolean escape)
public void setRel(String rel)
Copyright © 2019. All rights reserved.