org.apache.myfaces.custom.captcha
Class CAPTCHAComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.custom.captcha.AbstractCAPTCHAComponent
              extended by org.apache.myfaces.custom.captcha.CAPTCHAComponent
All Implemented Interfaces:
javax.faces.component.StateHolder

public class CAPTCHAComponent
extends AbstractCAPTCHAComponent


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 org.apache.myfaces.custom.captcha.AbstractCAPTCHAComponent
ATTRIBUTE_CAPTCHA_SESSION_KEY_NAME, ATTRIBUTE_IMAGE_HEIGHT, ATTRIBUTE_IMAGE_WIDTH
 
Constructor Summary
CAPTCHAComponent()
           
 
Method Summary
 java.lang.String getCaptchaSessionKeyName()
          Determines the CAPTCHA session key name.
 java.lang.String getFamily()
           
 java.lang.String getImageHeight()
          Integer to indicate the CAPTCHA height.
 java.lang.String getImageWidth()
          Integer to indicate the CAPTCHA width.
 void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setCaptchaSessionKeyName(java.lang.String captchaSessionKeyName)
           
 void setImageHeight(java.lang.String imageHeight)
           
 void setImageWidth(java.lang.String imageWidth)
           
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, 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
 

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

CAPTCHAComponent

public CAPTCHAComponent()
Method Detail

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

getCaptchaSessionKeyName

public java.lang.String getCaptchaSessionKeyName()
Description copied from class: AbstractCAPTCHAComponent
Determines the CAPTCHA session key name.

Specified by:
getCaptchaSessionKeyName in class AbstractCAPTCHAComponent
Returns:

setCaptchaSessionKeyName

public void setCaptchaSessionKeyName(java.lang.String captchaSessionKeyName)

getImageWidth

public java.lang.String getImageWidth()
Description copied from class: AbstractCAPTCHAComponent
Integer to indicate the CAPTCHA width. default is 290.

Specified by:
getImageWidth in class AbstractCAPTCHAComponent

setImageWidth

public void setImageWidth(java.lang.String imageWidth)

getImageHeight

public java.lang.String getImageHeight()
Description copied from class: AbstractCAPTCHAComponent
Integer to indicate the CAPTCHA height. default is 81.

Specified by:
getImageHeight in class AbstractCAPTCHAComponent

setImageHeight

public void setImageHeight(java.lang.String imageHeight)

saveState

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

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 javax.faces.component.UIComponentBase


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