org.primefaces.component.menuitem
Class UIMenuItem

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UICommand
              extended by org.primefaces.component.menuitem.UIMenuItem
All Implemented Interfaces:
EventListener, javax.faces.component.ActionSource, javax.faces.component.ActionSource2, 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, UIOutcomeTarget, MenuElement, MenuItem

public class UIMenuItem
extends javax.faces.component.UICommand
implements AjaxSource, UIOutcomeTarget, MenuItem


Nested Class Summary
protected static class UIMenuItem.PropertyKeys
           
 
Field Summary
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
 
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
 
Constructor Summary
UIMenuItem()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext facesContext)
           
 String getCommand()
           
 String getFamily()
           
 String getFragment()
           
 String getHref()
           
 String getIcon()
           
 String getOnclick()
           
 String getOncomplete()
           
 String getOnerror()
           
 String getOnstart()
           
 String getOnsuccess()
           
 String getOutcome()
           
 Map<String,List<String>> getParams()
           
 String getProcess()
           
 String getStyle()
           
 String getStyleClass()
           
 String getTarget()
           
 String getTitle()
           
 String getUpdate()
           
 String getUrl()
           
 boolean isAjax()
           
 boolean isAjaxified()
           
 boolean isAsync()
           
 boolean isDisabled()
           
 boolean isDynamic()
           
 boolean isGlobal()
           
 boolean isIgnoreAutoUpdate()
           
 boolean isIncludeViewParams()
           
 boolean isPartialSubmit()
           
 boolean isPartialSubmitSet()
           
 boolean isResetValues()
           
 boolean isResetValuesSet()
           
 void setAjax(boolean _ajax)
           
 void setAsync(boolean _async)
           
 void setDisabled(boolean _disabled)
           
 void setFragment(String _fragment)
           
 void setGlobal(boolean _global)
           
 void setIcon(String _icon)
           
 void setIgnoreAutoUpdate(boolean _ignoreAutoUpdate)
           
 void setIncludeViewParams(boolean _includeViewParams)
           
 void setOnclick(String _onclick)
           
 void setOncomplete(String _oncomplete)
           
 void setOnerror(String _onerror)
           
 void setOnstart(String _onstart)
           
 void setOnsuccess(String _onsuccess)
           
 void setOutcome(String _outcome)
           
 void setParam(String key, Object value)
           
 void setPartialSubmit(boolean _partialSubmit)
           
 void setProcess(String _process)
           
 void setResetValues(boolean _resetValues)
           
 void setStyle(String _style)
           
 void setStyleClass(String _styleClass)
           
 void setTarget(String _target)
           
 void setTitle(String _title)
           
 void setUpdate(String _update)
           
 void setUrl(String _url)
           
 boolean shouldRenderChildren()
           
 
Methods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, queueEvent, 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, 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, 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 org.primefaces.component.api.UIOutcomeTarget
getChildren
 
Methods inherited from interface org.primefaces.model.menu.MenuItem
getValue, isImmediate
 
Methods inherited from interface org.primefaces.model.menu.MenuElement
getId, isRendered, setId
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY
See Also:
Constant Field Values
Constructor Detail

UIMenuItem

public UIMenuItem()
Method Detail

getFamily

public String getFamily()
Overrides:
getFamily in class javax.faces.component.UICommand

getUrl

public String getUrl()
Specified by:
getUrl in interface MenuItem

setUrl

public void setUrl(String _url)

getTarget

public String getTarget()
Specified by:
getTarget in interface MenuItem

setTarget

public void setTarget(String _target)

getStyle

public String getStyle()
Specified by:
getStyle in interface MenuItem

setStyle

public void setStyle(String _style)

getStyleClass

public String getStyleClass()
Specified by:
getStyleClass in interface MenuItem

setStyleClass

public void setStyleClass(String _styleClass)
Specified by:
setStyleClass in interface MenuItem

getOnclick

public String getOnclick()
Specified by:
getOnclick in interface MenuItem

setOnclick

public void setOnclick(String _onclick)

getUpdate

public String getUpdate()
Specified by:
getUpdate in interface AjaxSource

setUpdate

public void setUpdate(String _update)

getProcess

public String getProcess()
Specified by:
getProcess in interface AjaxSource

setProcess

public void setProcess(String _process)

getOnstart

public String getOnstart()
Specified by:
getOnstart in interface AjaxSource

setOnstart

public void setOnstart(String _onstart)

isDisabled

public boolean isDisabled()
Specified by:
isDisabled in interface MenuItem

setDisabled

public void setDisabled(boolean _disabled)

getOncomplete

public String getOncomplete()
Specified by:
getOncomplete in interface AjaxSource

setOncomplete

public void setOncomplete(String _oncomplete)

getOnerror

public String getOnerror()
Specified by:
getOnerror in interface AjaxSource

setOnerror

public void setOnerror(String _onerror)

getOnsuccess

public String getOnsuccess()
Specified by:
getOnsuccess in interface AjaxSource

setOnsuccess

public void setOnsuccess(String _onsuccess)

isGlobal

public boolean isGlobal()
Specified by:
isGlobal in interface AjaxSource

setGlobal

public void setGlobal(boolean _global)

isAsync

public boolean isAsync()
Specified by:
isAsync in interface AjaxSource

setAsync

public void setAsync(boolean _async)

isAjax

public boolean isAjax()
Specified by:
isAjax in interface MenuItem

setAjax

public void setAjax(boolean _ajax)

getIcon

public String getIcon()
Specified by:
getIcon in interface MenuItem

setIcon

public void setIcon(String _icon)

isPartialSubmit

public boolean isPartialSubmit()
Specified by:
isPartialSubmit in interface AjaxSource

setPartialSubmit

public void setPartialSubmit(boolean _partialSubmit)

isResetValues

public boolean isResetValues()
Specified by:
isResetValues in interface AjaxSource

setResetValues

public void setResetValues(boolean _resetValues)

isIgnoreAutoUpdate

public boolean isIgnoreAutoUpdate()
Specified by:
isIgnoreAutoUpdate in interface AjaxSource

setIgnoreAutoUpdate

public void setIgnoreAutoUpdate(boolean _ignoreAutoUpdate)

getTitle

public String getTitle()
Specified by:
getTitle in interface MenuItem

setTitle

public void setTitle(String _title)

getOutcome

public String getOutcome()
Specified by:
getOutcome in interface UIOutcomeTarget
Specified by:
getOutcome in interface MenuItem

setOutcome

public void setOutcome(String _outcome)

isIncludeViewParams

public boolean isIncludeViewParams()
Specified by:
isIncludeViewParams in interface UIOutcomeTarget
Specified by:
isIncludeViewParams in interface MenuItem

setIncludeViewParams

public void setIncludeViewParams(boolean _includeViewParams)

getFragment

public String getFragment()
Specified by:
getFragment in interface UIOutcomeTarget
Specified by:
getFragment in interface MenuItem

setFragment

public void setFragment(String _fragment)

decode

public void decode(javax.faces.context.FacesContext facesContext)
Overrides:
decode in class javax.faces.component.UIComponentBase

shouldRenderChildren

public boolean shouldRenderChildren()
Specified by:
shouldRenderChildren in interface MenuItem

isPartialSubmitSet

public boolean isPartialSubmitSet()
Specified by:
isPartialSubmitSet in interface AjaxSource

isResetValuesSet

public boolean isResetValuesSet()
Specified by:
isResetValuesSet in interface AjaxSource

getHref

public String getHref()
Specified by:
getHref in interface UIOutcomeTarget

isDynamic

public boolean isDynamic()
Specified by:
isDynamic in interface MenuItem

getParams

public Map<String,List<String>> getParams()
Specified by:
getParams in interface UIOutcomeTarget
Specified by:
getParams in interface MenuItem

getCommand

public String getCommand()
Specified by:
getCommand in interface MenuItem

isAjaxified

public boolean isAjaxified()
Specified by:
isAjaxified in interface AjaxSource

setParam

public void setParam(String key,
                     Object value)
Specified by:
setParam in interface MenuItem


Copyright © 2013. All rights reserved.