org.apache.myfaces.custom.inputAjax
Class HtmlCommandButtonAjax

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.apache.myfaces.component.html.ext.HtmlCommandButton
                      extended by org.apache.myfaces.custom.inputAjax.HtmlCommandButtonAjax
All Implemented Interfaces:
javax.faces.component.ActionSource, javax.faces.component.StateHolder, UserRoleAware, AjaxCallbacks, AjaxComponent, DeprecatedAjaxComponent

public class HtmlCommandButtonAjax
extends HtmlCommandButton
implements DeprecatedAjaxComponent, AjaxCallbacks

User: Travis Reeder Date: Mar 22, 2006 Time: 4:37:53 PM


Field Summary
static java.lang.String COMPONENT_TYPE
           
static java.lang.String DEFAULT_RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UICommand
COMPONENT_FAMILY
 
Fields inherited from interface org.apache.myfaces.component.UserRoleAware
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR
 
Constructor Summary
HtmlCommandButtonAjax()
           
 
Method Summary
 void decodeAjax(javax.faces.context.FacesContext context)
          Decode ajax request and apply value changes
 void encodeAjax(javax.faces.context.FacesContext context)
           
 java.lang.String getErrorStyle()
           
 java.lang.String getErrorStyleClass()
           
 java.lang.String getOnFailure()
           
 java.lang.String getOnStart()
           
 java.lang.String getOnSuccess()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setErrorStyle(java.lang.String errorStyle)
           
 void setErrorStyleClass(java.lang.String errorStyleClass)
           
 void setOnFailure(java.lang.String onFailure)
           
 void setOnStart(java.lang.String onStart)
           
 void setOnSuccess(java.lang.String onSuccess)
           
 
Methods inherited from class org.apache.myfaces.component.html.ext.HtmlCommandButton
getActionFor, getClientId, getEnabledOnUserRole, getVisibleOnUserRole, isRendered, setActionFor, setEnabledOnUserRole, setVisibleOnUserRole
 
Methods inherited from class javax.faces.component.html.HtmlCommandButton
getAccesskey, getAlt, getDir, getImage, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getStyle, getStyleClass, getTabindex, getTitle, getType, isDisabled, isReadonly, setAccesskey, setAlt, setDir, setDisabled, setImage, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setTabindex, setTitle, setType
 
Methods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getAction, getActionListener, getActionListeners, getFamily, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionListener, setImmediate, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

DEFAULT_RENDERER_TYPE

public static final java.lang.String DEFAULT_RENDERER_TYPE
See Also:
Constant Field Values
Constructor Detail

HtmlCommandButtonAjax

public HtmlCommandButtonAjax()
Method Detail

decodeAjax

public void decodeAjax(javax.faces.context.FacesContext context)
Decode ajax request and apply value changes

Specified by:
decodeAjax in interface AjaxComponent
Parameters:
context -

encodeAjax

public void encodeAjax(javax.faces.context.FacesContext context)
                throws java.io.IOException
Specified by:
encodeAjax in interface AjaxComponent
Throws:
java.io.IOException

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class HtmlCommandButton

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class HtmlCommandButton

getOnSuccess

public java.lang.String getOnSuccess()
Specified by:
getOnSuccess in interface AjaxCallbacks

setOnSuccess

public void setOnSuccess(java.lang.String onSuccess)
Specified by:
setOnSuccess in interface AjaxCallbacks

getOnFailure

public java.lang.String getOnFailure()
Specified by:
getOnFailure in interface AjaxCallbacks

setOnFailure

public void setOnFailure(java.lang.String onFailure)
Specified by:
setOnFailure in interface AjaxCallbacks

getOnStart

public java.lang.String getOnStart()
Specified by:
getOnStart in interface AjaxCallbacks

setOnStart

public void setOnStart(java.lang.String onStart)
Specified by:
setOnStart in interface AjaxCallbacks

getErrorStyleClass

public java.lang.String getErrorStyleClass()

setErrorStyleClass

public void setErrorStyleClass(java.lang.String errorStyleClass)

getErrorStyle

public java.lang.String getErrorStyle()

setErrorStyle

public void setErrorStyle(java.lang.String errorStyle)


Copyright © 2011. All Rights Reserved.