Class CommandButton
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UICommand
-
- javax.faces.component.html.HtmlCommandButton
-
- org.primefaces.component.commandbutton.CommandButtonBase
-
- org.primefaces.component.commandbutton.CommandButton
-
- 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,Widget
public class CommandButton extends CommandButtonBase implements DialogReturnAware
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.primefaces.component.commandbutton.CommandButtonBase
CommandButtonBase.PropertyKeys
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMPONENT_TYPE-
Fields inherited from class org.primefaces.component.commandbutton.CommandButtonBase
COMPONENT_FAMILY, DEFAULT_RENDERER
-
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
-
Fields inherited from interface org.primefaces.component.api.DialogReturnAware
ATTRIBUTE_DIALOG_RETURN_SCRIPT, EVENT_DIALOG_RETURN
-
Fields inherited from interface org.primefaces.component.api.Widget
ATTR_WIDGET_VAR_PATTERN, CALLBACK_POST_CONSTRUCT, CALLBACK_POST_REFRESH, CALLBACK_PRE_DESTROY
-
-
Constructor Summary
Constructors Constructor Description CommandButton()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Class<? extends javax.faces.event.BehaviorEvent>>getBehaviorEventMapping()StringgetConfirmationScript()StringgetDefaultEventName()Collection<String>getEventNames()booleanisAjaxified()booleanisPartialSubmitSet()booleanisResetValuesSet()voidqueueEvent(javax.faces.event.FacesEvent event)booleanrequiresConfirmation()StringresolveStyleClass()voidsetConfirmationScript(String confirmationScript)-
Methods inherited from class org.primefaces.component.commandbutton.CommandButtonBase
getAriaLabel, getDelay, getFamily, getForm, getIcon, getIconPos, getOncomplete, getOnerror, getOnstart, getOnsuccess, getPartialSubmitFilter, getProcess, getTimeout, getUpdate, getWidgetVar, isAjax, isAsync, isEscape, isGlobal, isIgnoreAutoUpdate, isIgnoreComponentNotFound, isInline, isPartialSubmit, isRenderDisabledClick, isResetValues, isValidateClient, setAjax, setAriaLabel, setAsync, setDelay, setEscape, setForm, setGlobal, setIcon, setIconPos, setIgnoreAutoUpdate, setIgnoreComponentNotFound, setInline, setOncomplete, setOnerror, setOnstart, setOnsuccess, setPartialSubmit, setPartialSubmitFilter, setProcess, setRenderDisabledClick, setResetValues, setTimeout, setUpdate, setValidateClient, setWidgetVar
-
Methods inherited from class javax.faces.component.html.HtmlCommandButton
getAccesskey, getAlt, getDir, getImage, getLabel, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRole, getStyle, getStyleClass, getTabindex, getTitle, getType, isDisabled, isReadonly, setAccesskey, setAlt, setDir, setDisabled, setImage, setLabel, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setRole, setStyle, setStyleClass, setTabindex, setTitle, setType
-
Methods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, 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, 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 javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors
-
Methods inherited from interface org.primefaces.component.api.DialogReturnAware
isDialogReturnEvent, queueDialogReturnEvent
-
Methods inherited from interface org.primefaces.component.api.Widget
resolveWidgetVar, resolveWidgetVar
-
-
-
-
Field Detail
-
COMPONENT_TYPE
public static final String COMPONENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBehaviorEventMapping
public Map<String,Class<? extends javax.faces.event.BehaviorEvent>> getBehaviorEventMapping()
- Specified by:
getBehaviorEventMappingin interfacePrimeClientBehaviorHolder
-
getEventNames
public Collection<String> getEventNames()
- Specified by:
getEventNamesin interfacejavax.faces.component.behavior.ClientBehaviorHolder- Overrides:
getEventNamesin classjavax.faces.component.html.HtmlCommandButton
-
getDefaultEventName
public String getDefaultEventName()
- Specified by:
getDefaultEventNamein interfacejavax.faces.component.behavior.ClientBehaviorHolder- Overrides:
getDefaultEventNamein classjavax.faces.component.html.HtmlCommandButton
-
queueEvent
public void queueEvent(javax.faces.event.FacesEvent event)
- Overrides:
queueEventin classjavax.faces.component.UICommand
-
resolveStyleClass
public String resolveStyleClass()
-
isPartialSubmitSet
public boolean isPartialSubmitSet()
- Specified by:
isPartialSubmitSetin interfaceAjaxSource
-
isResetValuesSet
public boolean isResetValuesSet()
- Specified by:
isResetValuesSetin interfaceAjaxSource
-
getConfirmationScript
public String getConfirmationScript()
- Specified by:
getConfirmationScriptin interfaceConfirmable
-
setConfirmationScript
public void setConfirmationScript(String confirmationScript)
- Specified by:
setConfirmationScriptin interfaceConfirmable
-
requiresConfirmation
public boolean requiresConfirmation()
- Specified by:
requiresConfirmationin interfaceConfirmable
-
isAjaxified
public boolean isAjaxified()
- Specified by:
isAjaxifiedin interfaceAjaxSource
-
-