com.primix.vlib.pages
Class ConfirmBookDelete

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

public class ConfirmBookDelete
extends BasePage

Presents a confirmation page before deleting a book. If the user selects "yes", the book is deleted; otherwise the user is returned to the MyLibrary page.

Version:
$Id: ConfirmBookDelete.java,v 1.13 2001/07/05 22:28:43 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
ConfirmBookDelete()
           
 
Method Summary
 void deleteBook(java.lang.String[] context, IRequestCycle cycle)
          Hooked up to the yes component, this actually deletes the book.
 void detach()
          Prepares the page to be returned to the pool.
 java.lang.Integer getBookPrimaryKey()
           
 java.lang.String getBookTitle()
           
 void selectBook(java.lang.Integer bookPK, IRequestCycle cycle)
          Invoked (by MyLibrary) to select a book to be deleted.
 
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, validate
 
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

ConfirmBookDelete

public ConfirmBookDelete()
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 AbstractPage
Following copied from interface: com.primix.tapestry.IPage
See Also:
IPageSource.releasePage(IPage)

getBookTitle

public java.lang.String getBookTitle()

getBookPrimaryKey

public java.lang.Integer getBookPrimaryKey()

selectBook

public void selectBook(java.lang.Integer bookPK,
                       IRequestCycle cycle)
Invoked (by MyLibrary) to select a book to be deleted. This method sets the temporary page properties (bookPrimaryKey and bookTitle) and invoked IRequestCycle.setPage(IPage).

deleteBook

public void deleteBook(java.lang.String[] context,
                       IRequestCycle cycle)
Hooked up to the yes component, this actually deletes the book.