|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
To be used as the "page wrapper" for pages accessed via ModalWindowLink. This displays the Ok and Cancel buttons, provides a place for your content, and title and will take care of clearing the "action blocking cover" which is created by ModalWindowLink before opening the modal window in which this wrapper appears.
Bindings | |||
---|---|---|---|
hasForm
|
See BasicPageWrapper |
boolean (get) |
|
title
*
|
TBD |
String (get) |
|
okLabel
|
TBD |
String (get) |
|
cancelLabel
|
TBD |
String (get) |
|
okAction
*
|
The action which is fired when the user clicks "Ok". Users may return a "ModalWindowClose" to allow the window to close or null in the event the current page has errors and needs to be displayed again for user interaction, or possibly even a new page (eg Confirmation). If there are no errors and you're ready to return to the original page, you must return pageWithName("ModalWindowClose"). |
AWComponent (get) |
|
cancelAction
*
|
Same as okAction above, but invoked when the user clicks "Cancel". You may still prevent a Cancel from occurring by returning null or even a new page, but you must return pageWithName("ModalWindowClose") to allow the window to close. |
AWComponent (get) |
|
windowClosed
|
When the user closes the window, this action is invoked. Your method should be of type void. |
void (get) |
|
refreshParent
|
If set to true, this binding is an indicator to the ModalWindowWrapper to send a refresh request to the parent window. Note, as a convenience, this binding acts as a toggle -- if the value of the binding is initially true, then after renderResponse, the value will be set to false. |
boolean (both) |
|
showTopButtons
|
By default buttons are shown on the top and the bottom. Use this binding to disable the top buttons. |
boolean (get) |
|
disableCancelButton
|
By default both ok and cancel buttons are shown. Use this binding to disable the cancel button. |
boolean (get) |
Named Content | |
---|---|
titleArea |
TBD |
buttons |
TBD |
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWComponent
ariba.ui.widgets.ModalWindowWrapper
public final class ModalWindowWrapper
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ariba.ui.aribaweb.core.AWComponent |
---|
AWComponent.RenderingFilter, AWComponent.RenderingListener |
Nested classes/interfaces inherited from interface ariba.ui.aribaweb.core.AWResponseGenerating |
---|
AWResponseGenerating.ResponseSubstitution |
Constructor Summary | |
---|---|
ModalWindowWrapper()
|
Method Summary | |
---|---|
void |
applyValues(AWRequestContext requestContext,
AWComponent component)
The receiver should take any form values (or query string parameters) that it owns from the AWRequestContext.request() . |
AWComponent |
cancelClicked()
|
static AWComponent |
closeModalWindowPage(AWRequestContext requestContext)
|
AWResponseGenerating |
invokeAction(AWRequestContext requestContext,
AWComponent component)
The receiver should determine if it is the intended recipient of the current action (by checking the AWRequestContext.request() AWRequest.senderId() ) and,
if so, handle the action and return the result. |
static boolean |
isInModalWindow(AWComponent component)
|
boolean |
isStateless()
Overridden by AWComponent subclasses to indicate whether component instances should be preserved with the page/session (i.e. |
AWComponent |
okClicked()
|
boolean |
refreshParent()
|
void |
renderResponse(AWRequestContext requestContext,
AWComponent component)
The receiver should render its content to the AWRequestContext.response() |
java.lang.String |
stackTrace()
|
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject |
---|
debugString, getFieldValue, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
---|
getFieldValue, isKindOfClass, setFieldValue |
Field Detail |
---|
public static final java.lang.String EnvironmentKey
public java.lang.RuntimeException _runtimeException
Constructor Detail |
---|
public ModalWindowWrapper()
Method Detail |
---|
public boolean isStateless()
AWComponent
isStateless
in class AWComponent
public static AWComponent closeModalWindowPage(AWRequestContext requestContext)
public AWComponent okClicked()
public AWComponent cancelClicked()
public void applyValues(AWRequestContext requestContext, AWComponent component)
AWCycleable
AWRequestContext.request()
.
applyValues
in interface AWCycleable
applyValues
in class AWComponent
requestContext
- the context for the current request.component
- the current parent componentpublic AWResponseGenerating invokeAction(AWRequestContext requestContext, AWComponent component)
AWCycleable
AWRequestContext.request()
AWRequest.senderId()
) and,
if so, handle the action and return the result.
invokeAction
in interface AWCycleable
invokeAction
in class AWComponent
requestContext
- the context for the current request.component
- the current parent component
public void renderResponse(AWRequestContext requestContext, AWComponent component)
AWCycleable
AWRequestContext.response()
renderResponse
in interface AWCycleable
renderResponse
in class AWComponent
requestContext
- the context for the current request.component
- the current parent componentpublic java.lang.String stackTrace()
public boolean refreshParent()
public static boolean isInModalWindow(AWComponent component)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |