com.arsdigita.bebop
Class ConfirmPage

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.Page
                      extended bycom.arsdigita.bebop.ConfirmPage
All Implemented Interfaces:
Cloneable, Component, Container, Lockable

public class ConfirmPage
extends Page

A Bebop Confirmation Page which should be mounted at ConfirmPage.CONFIRM_URL by the BebopMapDispatcher. This page takes three URL parameters:

The page displays a form asking the confirmation message passed in. If the user hits OK, Then the page redirects to the OK URL. Otherwise, if the user hits Cancel, The page redirects to the Cancel URL.

Author:
Bryan Che

Field Summary
static String CONFIRM_URL
           
 
Fields inherited from class com.arsdigita.bebop.Page
m_invisible, m_panel, 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.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
ConfirmPage()
           
 
Method Summary
protected  void buildTitle()
           
static String getConfirmUrl(String sConfirmMsg, String sOkUrl, String sCancelUrl)
          Returns a URL (minus "http://" string and server name) at which to access the ConfirmPage with the given Confirmation Message, OK URL, and Cancel URL.
 
Methods inherited from class com.arsdigita.bebop.Page
add, add, addActionListener, addClientStylesheet, addComponent, addComponentStateParam, addGlobalStateParam, addRequestListener, buildDocument, children, contains, fireActionEvent, fireRequestEvent, generateXML, generateXML, generateXMLHelper, get, getComponent, getComponentParameters, getErrorDisplay, getPanel, getParameters, getStateModel, getTitle, getTitle, indexOf, isEmpty, isUsingHttpSession, isVisibleDefault, lock, parameterName, parameterName, prepare, process, process, removeActionListener, removeRequestListener, respond, setErrorDisplay, setPanel, setStyleSheet, setTitle, setTitle, setUsingHttpSession, setVisibleDefault, size, stateContains, stateIndex, stateSize
 
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, register, register, 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, register, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked
 

Field Detail

CONFIRM_URL

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

ConfirmPage

public ConfirmPage()
Method Detail

getConfirmUrl

public static String getConfirmUrl(String sConfirmMsg,
                                   String sOkUrl,
                                   String sCancelUrl)
Returns a URL (minus "http://" string and server name) at which to access the ConfirmPage with the given Confirmation Message, OK URL, and Cancel URL.

Parameters:
sConfirmMsg - the Confirmation message to display on the page
sOkUrl - the URL to which to redirect if the user hits OK
sCancelUrl - the URL to which to redirect if the user hits Cancel
Returns:
URL at which to access the ConfirmPage

buildTitle

protected void buildTitle()


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