org.apache.myfaces.custom.captcha
Class AbstractCAPTCHAComponent

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

public abstract class AbstractCAPTCHAComponent
extends javax.faces.component.UIComponentBase

Since:
1.1.7
Author:
Hazem Saleh

Field Summary
static java.lang.String ATTRIBUTE_CAPTCHA_SESSION_KEY_NAME
           
static java.lang.String ATTRIBUTE_IMAGE_HEIGHT
           
static java.lang.String ATTRIBUTE_IMAGE_WIDTH
           
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.UIComponent
bindings
 
Constructor Summary
AbstractCAPTCHAComponent()
           
 
Method Summary
abstract  java.lang.String getCaptchaSessionKeyName()
          Determines the CAPTCHA session key name.
abstract  java.lang.String getImageHeight()
          Integer to indicate the CAPTCHA height.
abstract  java.lang.String getImageWidth()
          Integer to indicate the CAPTCHA width.
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getFamily, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static java.lang.String COMPONENT_TYPE

COMPONENT_FAMILY

public static java.lang.String COMPONENT_FAMILY

DEFAULT_RENDERER_TYPE

public static java.lang.String DEFAULT_RENDERER_TYPE

ATTRIBUTE_CAPTCHA_SESSION_KEY_NAME

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

ATTRIBUTE_IMAGE_WIDTH

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

ATTRIBUTE_IMAGE_HEIGHT

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

AbstractCAPTCHAComponent

public AbstractCAPTCHAComponent()
Method Detail

getCaptchaSessionKeyName

public abstract java.lang.String getCaptchaSessionKeyName()
Determines the CAPTCHA session key name.

Returns:

getImageWidth

public abstract java.lang.String getImageWidth()
Integer to indicate the CAPTCHA width. default is 290.


getImageHeight

public abstract java.lang.String getImageHeight()
Integer to indicate the CAPTCHA height. default is 81.



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