com.arsdigita.ui.login
Class RecoverPasswordPanel

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.TextStylable
              extended bycom.arsdigita.bebop.BlockStylable
                  extended bycom.arsdigita.bebop.SimpleContainer
                      extended bycom.arsdigita.ui.login.RecoverPasswordPanel
All Implemented Interfaces:
Cloneable, Component, Container, Lockable, LoginConstants

public class RecoverPasswordPanel
extends SimpleContainer
implements LoginConstants

A sequence of Forms and Panels that allows a user to recover from a forgotten password. First form requests the user's email address, and is pre-filled if the user is logged in. Second form presents the user's password question and requires the correct answer. Third panel informs the user that a mail has been sent that will allow them to change their password.

Author:
Sameer Ajmani

Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.bebop.BlockStylable
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.ui.login.LoginConstants
ADDITIONAL_EMAIL, BIO, ERROR_BAD_ANSWER, ERROR_BAD_EMAIL, ERROR_BAD_PASSWORD, ERROR_DUPLICATE_EMAIL, ERROR_DUPLICATE_SN, ERROR_LOGIN_FAIL, ERROR_MISMATCH_PASSWORD, FIRST_NAME, FORM_ADDITIONAL_EMAIL, FORM_BIO, FORM_EMAIL, FORM_FIRST_NAME, FORM_LAST_NAME, FORM_LOGIN, FORM_PASSWORD, FORM_PASSWORD_ANSWER, FORM_PASSWORD_CONFIRMATION, FORM_PASSWORD_QUESTION, FORM_PERSISTENT_LOGIN_P, FORM_PERSISTENT_LOGIN_P_DEFAULT, FORM_SCREEN_NAME, FORM_TIMESTAMP, FORM_URL, FORM_URL_DEFAULT, LAST_NAME, MAX_NAME_LEN, PASSWORD, PASSWORD_ANSWER, PASSWORD_CONFIRMATION, PASSWORD_QUESTION, PRIMARY_EMAIL, SCREEN_NAME, SUBMIT, TIMESTAMP_LIFETIME_SECS, URL
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
RecoverPasswordPanel()
           
 
Method Summary
 void register(Page p)
          Registers state parameters for the page with its model.
 
Methods inherited from class com.arsdigita.bebop.SimpleContainer
add, add, children, contains, generateChildrenXML, generateParent, generateXML, get, getNamespace, getTag, indexOf, isEmpty, setNamespace, setTag, size
 
Methods inherited from class com.arsdigita.bebop.BlockStylable
setBorder, setBorder, setBorderColor, setHorizontalAlignment, setMargin, setMargin, setPadding, setPadding, setVerticalAlignment
 
Methods inherited from class com.arsdigita.bebop.TextStylable
setBackgroundColor, setColor
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, respond, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible
 
Methods inherited from class com.arsdigita.bebop.Completable
addCompletionListener, fireCompletionEvent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.bebop.Component
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked, lock
 

Field Detail

versionId

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

RecoverPasswordPanel

public RecoverPasswordPanel()
Method Detail

register

public void register(Page p)
Description copied from interface: Component
Registers state parameters for the page with its model. A simple component with a state parameter param would do the following in the body of this method:
   p.addComponent(this);
   p.addComponentStateParam(this, param);
 
You should override this method to set the default visibility of your component:
 public void register(Page p) {
     super.register(p);
     p.setVisibleDefault(childNotInitiallyShown,false);
     p.setVisibleDefault(anotherChild, false);
 }
 
Always call super.register when you override register. Otherwise your component may malfunction and produce errors like "Widget ... isn't associated with any Form"

Specified by:
register in interface Component
Overrides:
register in class SimpleComponent


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC