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

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

Since:
1.1.7
Author:
Hazem Saleh

Field Summary
static String ATTRIBUTE_CAPTCHA_SESSION_KEY_NAME
           
static String ATTRIBUTE_IMAGE_HEIGHT
           
static String ATTRIBUTE_IMAGE_WIDTH
           
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
static String DEFAULT_RENDERER_TYPE
           
 
Constructor Summary
AbstractCAPTCHAComponent()
           
 
Method Summary
abstract  String getCaptchaSessionKeyName()
          Determines the CAPTCHA session key name.
abstract  String getImageHeight()
          Integer to indicate the CAPTCHA height.
abstract  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, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, 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
getFamily
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static String COMPONENT_TYPE

COMPONENT_FAMILY

public static String COMPONENT_FAMILY

DEFAULT_RENDERER_TYPE

public static String DEFAULT_RENDERER_TYPE

ATTRIBUTE_CAPTCHA_SESSION_KEY_NAME

public static final String ATTRIBUTE_CAPTCHA_SESSION_KEY_NAME
See Also:
Constant Field Values

ATTRIBUTE_IMAGE_WIDTH

public static final String ATTRIBUTE_IMAGE_WIDTH
See Also:
Constant Field Values

ATTRIBUTE_IMAGE_HEIGHT

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

AbstractCAPTCHAComponent

public AbstractCAPTCHAComponent()
Method Detail

getCaptchaSessionKeyName

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

Returns:

getImageWidth

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


getImageHeight

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



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