public abstract class OneStepComponent extends BaseCompositeComponent
htmlb-Event
that is understood by the command.
An implementation must ensure that the fired event is sent to the
renderer and its actiontarget as defined in the two methods of this
class.
To do so, the fired event must call its super constructor and provide the
rendererID as parameter. In a second step, the action target must be set
as action-parameter of the fired event.
public class MyEvent extends Event {
public MyEvent(String rendererID) {
super(rendererID);
}
...
}
public class MyComponent extends OneStepComponent {
...
public Event onClick(Event event) {
...
MyEvent result = new MyEvent(this.getRendererID());
...
result.setAction(this.getActiontarget());
...
return result;
}
...
}
request
Constructor and Description |
---|
OneStepComponent()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
setActiontarget(String actiontarget)
Deprecated.
As of NetWeaver 7.1
|
abstract void |
setRendererID(String renderer)
Deprecated.
As of NetWeaver 7.1
|
buildComposition, buildContent, 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, initFromPageContextImpl, 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 abstract void setRendererID(String renderer)
renderer
- 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 abstract void setActiontarget(String actiontarget)
actiontarget
- 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.Access 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