com.primix.vlib.pages
Class EditProfile

java.lang.Object
  |
  +--com.primix.tapestry.AbstractComponent
        |
        +--com.primix.tapestry.BaseComponent
              |
              +--com.primix.tapestry.AbstractPage
                    |
                    +--com.primix.tapestry.BasePage
                          |
                          +--com.primix.vlib.Protected
                                |
                                +--com.primix.vlib.pages.EditProfile
All Implemented Interfaces:
IComponent, IErrorProperty, IPage, IRender

public class EditProfile
extends Protected

Edit's a user's profile: names, email and password.

Version:
$Id: EditProfile.java,v 1.14 2001/06/22 20:40:09 hship Exp $
Author:
Howard Ship

Fields inherited from class com.primix.tapestry.AbstractPage
engine, name
 
Fields inherited from class com.primix.tapestry.BaseComponent
outer, OUTER_INIT_SIZE, outerCount
 
Fields inherited from class com.primix.tapestry.AbstractComponent
id, page, specification, wrapped, wrappedCount
 
Constructor Summary
EditProfile()
           
 
Method Summary
 void beginEdit(IRequestCycle cycle)
          Invoked (from MyLibrary) to begin editting the user's profile.
 void detach()
          Prepares the page to be returned to the pool.
 java.util.Map getAttributes()
           
 boolean getCancel()
           
 IActionListener getFormListener()
          Invoked when the form is submitted, validates the form and updates the IPerson for the user, before returning to MyLibrary.
 java.lang.String getPassword1()
           
 java.lang.String getPassword2()
           
 void setCancel(boolean value)
           
 void setPassword1(java.lang.String value)
           
 void setPassword2(java.lang.String value)
           
 
Methods inherited from class com.primix.vlib.Protected
getError, getValidationDelegate, setError, setErrorField, validate
 
Methods inherited from class com.primix.tapestry.BasePage
getResponseWriter
 
Methods inherited from class com.primix.tapestry.AbstractPage
addPageCleanupListener, addPageDetachListener, addPageRenderListener, attach, beginResponse, cleanupPage, firePageBeginRender, firePageCleanup, firePageDetached, firePageEndRender, getChangeObserver, getEngine, getExtendedId, getIdPath, getLocale, getName, getNestedComponent, getPage, getRequestCycle, getVisit, renderPage, setChangeObserver, setLocale, setName, setRequestCycle
 
Methods inherited from class com.primix.tapestry.BaseComponent
addOuter, finishLoad, readTemplate, render
 
Methods inherited from class com.primix.tapestry.AbstractComponent
addAsset, addComponent, addWrapped, cleanupAfterRender, cleanupComponent, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getId, getListeners, getSpecification, prepareForRender, renderWrapped, reset, setBinding, setContainer, setId, setPage, setSpecification, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.primix.tapestry.IComponent
addAsset, addComponent, addWrapped, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getId, getSpecification, renderWrapped, setBinding, setContainer, setId, setPage, setSpecification
 
Methods inherited from interface com.primix.tapestry.IRender
render
 

Constructor Detail

EditProfile

public EditProfile()
Method Detail

detach

public void detach()
Description copied from class: AbstractPage
Prepares the page to be returned to the pool.

Subclasses may override this method, but must invoke this implementation (usually, last).

Overrides:
detach in class Protected
Following copied from interface: com.primix.tapestry.IPage
See Also:
IPageSource.releasePage(IPage)

getPassword1

public java.lang.String getPassword1()

setPassword1

public void setPassword1(java.lang.String value)

getPassword2

public java.lang.String getPassword2()

setPassword2

public void setPassword2(java.lang.String value)

getCancel

public boolean getCancel()

setCancel

public void setCancel(boolean value)

getAttributes

public java.util.Map getAttributes()

beginEdit

public void beginEdit(IRequestCycle cycle)
Invoked (from MyLibrary) to begin editting the user's profile. We get the entity attributes from the IPerson, and store them in the attributes page property, ready to provide default values to the ValidatingTextField components.

getFormListener

public IActionListener getFormListener()
Invoked when the form is submitted, validates the form and updates the IPerson for the user, before returning to MyLibrary.