org.apache.myfaces.custom.inputAjax
Class HtmlInputTextAjax

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by javax.faces.component.UIInput
                  extended by javax.faces.component.html.HtmlInputText
                      extended by org.apache.myfaces.component.html.ext.AbstractHtmlInputText
                          extended by org.apache.myfaces.component.html.ext.HtmlInputText
                              extended by org.apache.myfaces.custom.inputAjax.AbstractHtmlInputTextAjax
                                  extended by org.apache.myfaces.custom.inputAjax.HtmlInputTextAjax
All Implemented Interfaces:
javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder, org.apache.myfaces.component.AlignProperty, org.apache.myfaces.component.DataProperties, org.apache.myfaces.component.DisplayValueOnlyAware, org.apache.myfaces.component.ForceIdAware, org.apache.myfaces.component.UserRoleAware, AjaxCallbacks, AjaxComponent, DeprecatedAjaxComponent, org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable

public class HtmlInputTextAjax
extends AbstractHtmlInputTextAjax


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String DEFAULT_RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIInput
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
 
Fields inherited from interface org.apache.myfaces.component.UserRoleAware
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR
 
Fields inherited from interface org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable
DISPLAY_VALUE_ONLY_ATTR, DISPLAY_VALUE_ONLY_STYLE_ATTR, DISPLAY_VALUE_ONLY_STYLE_CLASS_ATTR
 
Constructor Summary
HtmlInputTextAjax()
           
 
Method Summary
 java.lang.String getCancelText()
          Text for cancel
 java.lang.String getErrorStyle()
          Style for the input field where the error occures.
 java.lang.String getErrorStyleClass()
          StyleClass for the input field where the error occures.
 java.lang.String getFamily()
           
 java.lang.String getOkText()
          Test for button
 java.lang.String getOnFailure()
          Javascript method to call on failed ajax update
 java.lang.String getOnStart()
          Javascript method to call on start of ajax update
 java.lang.String getOnSuccess()
          Javascript method to call on successful ajax update
 java.lang.Boolean getShowCancelButton()
          Whether to show cancel button
 java.lang.Boolean getShowOkButton()
          Whether to show an ok button before sending update.
 void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setCancelText(java.lang.String cancelText)
           
 void setErrorStyle(java.lang.String errorStyle)
           
 void setErrorStyleClass(java.lang.String errorStyleClass)
           
 void setOkText(java.lang.String okText)
           
 void setOnFailure(java.lang.String onFailure)
           
 void setOnStart(java.lang.String onStart)
           
 void setOnSuccess(java.lang.String onSuccess)
           
 void setShowCancelButton(java.lang.Boolean showCancelButton)
           
 void setShowOkButton(java.lang.Boolean showOkButton)
           
 
Methods inherited from class org.apache.myfaces.custom.inputAjax.AbstractHtmlInputTextAjax
decodeAjax, encodeAjax
 
Methods inherited from class org.apache.myfaces.component.html.ext.HtmlInputText
getAlign, getAutocomplete, getDatafld, getDataformatas, getDatasrc, getDisplayValueOnly, getDisplayValueOnlyStyle, getDisplayValueOnlyStyleClass, getEnabledOnUserRole, getVisibleOnUserRole, isDisabledOnClientSide, isForceId, isForceIdIndex, setAlign, setAutocomplete, setDatafld, setDataformatas, setDatasrc, setDisabledOnClientSide, setDisplayValueOnly, setDisplayValueOnlyStyle, setDisplayValueOnlyStyleClass, setEnabledOnUserRole, setForceId, setForceIdIndex, setVisibleOnUserRole
 
Methods inherited from class org.apache.myfaces.component.html.ext.AbstractHtmlInputText
getClientId, isDisplayValueOnly, isRendered, isSetDisplayValueOnly, setDisplayValueOnly
 
Methods inherited from class javax.faces.component.html.HtmlInputText
getAccesskey, getAlt, getDir, getLang, getMaxlength, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getSize, getStyle, getStyleClass, getTabindex, getTitle, isDisabled, isReadonly, setAccesskey, setAlt, setDir, setDisabled, setLang, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setSize, setStyle, setStyleClass, setTabindex, setTitle
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, broadcast, compareValues, decode, getConvertedValue, getSubmittedValue, getValidator, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validate, validateValue
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, setConverter
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isTransient, processRestoreState, processSaveState, queueEvent, 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
 
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, setConverter
 

Field Detail

COMPONENT_FAMILY

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

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

HtmlInputTextAjax

public HtmlInputTextAjax()
Method Detail

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class org.apache.myfaces.component.html.ext.HtmlInputText

getOnSuccess

public java.lang.String getOnSuccess()
Description copied from class: AbstractHtmlInputTextAjax
Javascript method to call on successful ajax update

Specified by:
getOnSuccess in interface AjaxCallbacks
Specified by:
getOnSuccess in class AbstractHtmlInputTextAjax

setOnSuccess

public void setOnSuccess(java.lang.String onSuccess)

getOnFailure

public java.lang.String getOnFailure()
Description copied from class: AbstractHtmlInputTextAjax
Javascript method to call on failed ajax update

Specified by:
getOnFailure in interface AjaxCallbacks
Specified by:
getOnFailure in class AbstractHtmlInputTextAjax

setOnFailure

public void setOnFailure(java.lang.String onFailure)

getOnStart

public java.lang.String getOnStart()
Description copied from class: AbstractHtmlInputTextAjax
Javascript method to call on start of ajax update

Specified by:
getOnStart in interface AjaxCallbacks
Specified by:
getOnStart in class AbstractHtmlInputTextAjax

setOnStart

public void setOnStart(java.lang.String onStart)

getShowOkButton

public java.lang.Boolean getShowOkButton()
Description copied from class: AbstractHtmlInputTextAjax
Whether to show an ok button before sending update.

Specified by:
getShowOkButton in class AbstractHtmlInputTextAjax

setShowOkButton

public void setShowOkButton(java.lang.Boolean showOkButton)

getOkText

public java.lang.String getOkText()
Description copied from class: AbstractHtmlInputTextAjax
Test for button

Specified by:
getOkText in class AbstractHtmlInputTextAjax

setOkText

public void setOkText(java.lang.String okText)

getShowCancelButton

public java.lang.Boolean getShowCancelButton()
Description copied from class: AbstractHtmlInputTextAjax
Whether to show cancel button

Specified by:
getShowCancelButton in class AbstractHtmlInputTextAjax

setShowCancelButton

public void setShowCancelButton(java.lang.Boolean showCancelButton)

getCancelText

public java.lang.String getCancelText()
Description copied from class: AbstractHtmlInputTextAjax
Text for cancel

Specified by:
getCancelText in class AbstractHtmlInputTextAjax

setCancelText

public void setCancelText(java.lang.String cancelText)

getErrorStyleClass

public java.lang.String getErrorStyleClass()
Description copied from class: AbstractHtmlInputTextAjax
StyleClass for the input field where the error occures. Useful if there is only one messages area for a few inputTextAjax fields

Specified by:
getErrorStyleClass in class AbstractHtmlInputTextAjax

setErrorStyleClass

public void setErrorStyleClass(java.lang.String errorStyleClass)

getErrorStyle

public java.lang.String getErrorStyle()
Description copied from class: AbstractHtmlInputTextAjax
Style for the input field where the error occures. Useful if there is only one messages area for a few inputTextAjax fields

Specified by:
getErrorStyle in class AbstractHtmlInputTextAjax

setErrorStyle

public void setErrorStyle(java.lang.String errorStyle)

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class org.apache.myfaces.component.html.ext.HtmlInputText

restoreState

public void restoreState(javax.faces.context.FacesContext facesContext,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class org.apache.myfaces.component.html.ext.HtmlInputText


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.