com.arsdigita.bebop
Class ConfirmPage
java.lang.Object
com.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.TextStylable
com.arsdigita.bebop.BlockStylable
com.arsdigita.bebop.Page
com.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:
- A confirmation message with variable name ConfirmPage.CONFIRM_MSG_VAR
- An OK URL with variable name ConfirmPage.OK_URL_VAR
- A Cancel URL with variable name ConfirmPage.CANCEL_URL_VAR
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
Fields inherited from class com.arsdigita.bebop.BlockStylable |
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP |
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.SimpleComponent |
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, register, register, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible |
Methods inherited from interface com.arsdigita.bebop.Component |
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, register, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible |
CONFIRM_URL
public static final String CONFIRM_URL
- See Also:
- Constant Field Values
ConfirmPage
public ConfirmPage()
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 pagesOkUrl
- the URL to which to redirect if the user hits OKsCancelUrl
- 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 20 2004:2337 UTC