public final class ConfirmComponent extends OneStepComponent
Component
that is provided as a parameter. The component
also offers static methods to retrieve an IRenderingEvent
that holds a message stating that the user canceled the operation or
clicked "No".Modifier and Type | Field and Description |
---|---|
static int |
OK_CANCEL
Deprecated.
|
static int |
OK_CANCEL_CBX
Deprecated.
|
static String |
RES_BTN_CANCEL
Deprecated.
|
static String |
RES_BTN_NO
Deprecated.
|
static String |
RES_BTN_OK
Deprecated.
|
static String |
RES_BTN_YES
Deprecated.
|
static int |
YES_NO
Deprecated.
|
static int |
YES_NO_CANCEL
Deprecated.
|
static int |
YES_NO_CANCEL_CBX
Deprecated.
|
static int |
YES_NO_CBX
Deprecated.
|
request
Constructor and Description |
---|
ConfirmComponent()
Deprecated.
As of NetWeaver 7.1
|
ConfirmComponent(int mode,
Locale locale,
com.sapportals.htmlb.Component comp)
Deprecated.
As of NetWeaver 7.1
|
ConfirmComponent(int mode,
Locale locale,
com.sapportals.htmlb.Component title,
com.sapportals.htmlb.Component body,
com.sapportals.htmlb.enums.GroupDesign design)
Deprecated.
As of NetWeaver 7.1
|
ConfirmComponent(int mode,
Locale locale,
com.sapportals.htmlb.Component title,
com.sapportals.htmlb.Component body,
com.sapportals.htmlb.enums.GroupDesign design,
String checkText,
boolean checkStatus)
Deprecated.
As of NetWeaver 7.1
|
Modifier and Type | Method and Description |
---|---|
protected com.sapportals.htmlb.Component |
buildContent()
Deprecated.
As of NetWeaver 7.1
|
protected void |
initFromPageContextImpl(com.sapportals.htmlb.rendering.IPageContext pc,
String baseId)
Deprecated.
As of NetWeaver 7.1
|
static IRenderingEvent |
onCancel(com.sapportals.htmlb.event.Event event,
Locale locale)
Deprecated.
As of NetWeaver 7.1
|
com.sapportals.htmlb.event.Event |
onClick(com.sapportals.htmlb.event.Event event)
Deprecated.
As of NetWeaver 7.1
|
static IRenderingEvent |
onNo(com.sapportals.htmlb.event.Event event,
Locale locale)
Deprecated.
As of NetWeaver 7.1
|
void |
setActiontarget(String string)
Deprecated.
As of NetWeaver 7.1
|
void |
setRendererID(String string)
Deprecated.
As of NetWeaver 7.1
|
buildComposition, buildIntoForm, createContextFactory, createModel, createState, getBaseBundleName, getBundles, getBundleString, getBundleString, getBundleString, getComponentForId, getCompositeModel, getDataForComponentId, getDataForComponentId, getDefaultButton, getHTTPServletRequest, getImage, getImagePath, getLocale, getModelPersistenceID, getOnClick, getOnPopupReturn, getPaddingBottom, getPaddingTop, getPageContext, getPopup_height, getPopup_width, getPopupCloseParameter, getPopupUrl, getRequest, getRequestParameter, getRequestParameters, getResourceContext, getState, getUI, initFromPageContext, is508, isCloseScript, isEnabled, isPersistent, onPopupClose, render, renderIntoForm, setCloseScript, setCompositeModel, setDefaultButton, setEnabled, setOnClick, setOnPopupReturn, setPaddingBottom, setPaddingTop, setPersistent, setPopup_height, setPopup_width, setPopupOpenButton, setRequest, setRequestPageContext, setState
createCompositeComponentId, preRender, unEscape
public static final int YES_NO_CANCEL
public static final int YES_NO
public static final int OK_CANCEL
public static final int YES_NO_CANCEL_CBX
public static final int YES_NO_CBX
public static final int OK_CANCEL_CBX
public static final String RES_BTN_CANCEL
public static final String RES_BTN_NO
public static final String RES_BTN_YES
public static final String RES_BTN_OK
public ConfirmComponent()
public ConfirmComponent(int mode, Locale locale, com.sapportals.htmlb.Component title, com.sapportals.htmlb.Component body, com.sapportals.htmlb.enums.GroupDesign design)
mode
- - the mode stating what set of buttons should be used. Use the
int-constants provided in this class.locale
- - the locale of the user. Must not be null
title
- the title component for the screen. If it is null
, the complete
dialog will be rendered without a GroupBox
around itbody
- the component describing what the user has to confirm. Must not be null
design
- the design for the groupbox, if it is rendered. Might be null
public ConfirmComponent(int mode, Locale locale, com.sapportals.htmlb.Component title, com.sapportals.htmlb.Component body, com.sapportals.htmlb.enums.GroupDesign design, String checkText, boolean checkStatus)
mode
- - the mode stating what set of buttons should be used. Use the
int-constants provided in this class.locale
- - the locale of the user. Must not be null
title
- the title component for the screen. If it is null
, the complete
dialog will be rendered without a GroupBox
around itbody
- the component describing what the user has to confirm. Must not be null
design
- the design for the groupbox, if it is rendered. Might be null
checkText
- explaining text beside check box, in case CBX (additional check box) is enabledcheckStatus
- initial value of check boxpublic ConfirmComponent(int mode, Locale locale, com.sapportals.htmlb.Component comp)
mode
- - the mode stating what set of buttons should be used. Use the
int-constants provided in this class.locale
- - the locale of the user. Must not be null
comp
- the component describing what the user has to confirm. Must not be null
protected com.sapportals.htmlb.Component buildContent()
BaseCompositeComponent
buildContent
in class BaseCompositeComponent
public com.sapportals.htmlb.event.Event onClick(com.sapportals.htmlb.event.Event event)
event
- received from the htmlb-frameworkConfirmEvent
protected void initFromPageContextImpl(com.sapportals.htmlb.rendering.IPageContext pc, String baseId)
BaseCompositeComponent
initFromPageContextImpl
in class BaseCompositeComponent
public void setActiontarget(String string)
setActiontarget
in class OneStepComponent
string
- the action to be taken when a link has been clicked.
Method is called by the control that renders this component. It is the
components job to persist this information so it can be retrieved after
the user has clicked a link in this class.public void setRendererID(String string)
setRendererID
in class OneStepComponent
string
- the receiver of the fired event. Method is called by
the control that renders this component. It is the components job to
persist this information so it can be retrieved after the user has
clicked a link in this class.public static IRenderingEvent onNo(com.sapportals.htmlb.event.Event event, Locale locale)
event
- currently not evaluatedlocale
- the locale of the user, must not be null
InfoEvent
. It holds the
translated text to be displayed when a user clicked the cancel-buttonpublic static IRenderingEvent onCancel(com.sapportals.htmlb.event.Event event, Locale locale)
event
- currently not evaluatedlocale
- the locale of the user, must not be null
InfoEvent
. It holds the
translated text to be displayed when a user clicked the cancel-buttonAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice