org.primefaces.component.commandbutton
Class CommandButton

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UICommand
              extended by javax.faces.component.html.HtmlCommandButton
                  extended by 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, Widget

public class CommandButton
extends javax.faces.component.html.HtmlCommandButton
implements AjaxSource, Widget, Confirmable


Nested Class Summary
protected static class CommandButton.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
CommandButton()
           
 
Method Summary
 String getConfirmationScript()
           
 String getDefaultEventName()
           
 Collection<String> getEventNames()
           
 String getFamily()
           
 String getIcon()
           
 String getIconPos()
           
 String getOncomplete()
           
 String getOnerror()
           
 String getOnstart()
           
 String getOnsuccess()
           
 String getProcess()
           
 String getUpdate()
           
 String getWidgetVar()
           
 boolean isAjax()
           
 boolean isAjaxified()
           
 boolean isAsync()
           
 boolean isEscape()
           
 boolean isGlobal()
           
 boolean isIgnoreAutoUpdate()
           
 boolean isInline()
           
 boolean isPartialSubmit()
           
 boolean isPartialSubmitSet()
           
 boolean isResetValues()
           
 boolean isResetValuesSet()
           
 boolean isValidateClient()
           
 void queueEvent(javax.faces.event.FacesEvent event)
           
 boolean requiresConfirmation()
           
 String resolveIcon()
           
 String resolveStyleClass()
           
 String resolveWidgetVar()
           
 void setAjax(boolean _ajax)
           
 void setAsync(boolean _async)
           
 void setConfirmationScript(String confirmationScript)
           
 void setEscape(boolean _escape)
           
 void setGlobal(boolean _global)
           
 void setIcon(String _icon)
           
 void setIconPos(String _iconPos)
           
 void setIgnoreAutoUpdate(boolean _ignoreAutoUpdate)
           
 void setInline(boolean _inline)
           
 void setOncomplete(String _oncomplete)
           
 void setOnerror(String _onerror)
           
 void setOnstart(String _onstart)
           
 void setOnsuccess(String _onsuccess)
           
 void setPartialSubmit(boolean _partialSubmit)
           
 void setProcess(String _process)
           
 void setResetValues(boolean _resetValues)
           
 void setUpdate(String _update)
           
 void setValidateClient(boolean _validateClient)
           
 void setWidgetVar(String _widgetVar)
           
 
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
 

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

CommandButton

public CommandButton()
Method Detail

getFamily

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

getWidgetVar

public String getWidgetVar()

setWidgetVar

public void setWidgetVar(String _widgetVar)

isAjax

public boolean isAjax()

setAjax

public void setAjax(boolean _ajax)

isAsync

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

setAsync

public void setAsync(boolean _async)

getProcess

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

setProcess

public void setProcess(String _process)

getUpdate

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

setUpdate

public void setUpdate(String _update)

getOnstart

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

setOnstart

public void setOnstart(String _onstart)

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)

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)

getIcon

public String getIcon()

setIcon

public void setIcon(String _icon)

getIconPos

public String getIconPos()

setIconPos

public void setIconPos(String _iconPos)

isInline

public boolean isInline()

setInline

public void setInline(boolean _inline)

isEscape

public boolean isEscape()

setEscape

public void setEscape(boolean _escape)

isValidateClient

public boolean isValidateClient()

setValidateClient

public void setValidateClient(boolean _validateClient)

getEventNames

public Collection<String> getEventNames()
Specified by:
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
getEventNames in class javax.faces.component.html.HtmlCommandButton

getDefaultEventName

public String getDefaultEventName()
Specified by:
getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
getDefaultEventName in class javax.faces.component.html.HtmlCommandButton

queueEvent

public void queueEvent(javax.faces.event.FacesEvent event)
Overrides:
queueEvent in class javax.faces.component.UICommand

resolveIcon

public String resolveIcon()

resolveStyleClass

public String resolveStyleClass()

isPartialSubmitSet

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

isResetValuesSet

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

getConfirmationScript

public String getConfirmationScript()
Specified by:
getConfirmationScript in interface Confirmable

setConfirmationScript

public void setConfirmationScript(String confirmationScript)
Specified by:
setConfirmationScript in interface Confirmable

requiresConfirmation

public boolean requiresConfirmation()
Specified by:
requiresConfirmation in interface Confirmable

isAjaxified

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

resolveWidgetVar

public String resolveWidgetVar()
Specified by:
resolveWidgetVar in interface Widget


Copyright © 2013. All rights reserved.