SAP NetWeaver '04

com.sapportals.wcm.rendering.screenflow.os
Class OneStepComponent

[contained in: com.sap.km.cm.ui.flex.par - km.shared.ui.flex.screenflow_api.jar]
com.sapportals.wcm.rendering.screenflow.os.OneStepComponent
Direct Known Subclasses:
ConfirmComponent

public abstract class OneStepComponent

Since:
NW04, SPS4 base class for components that are rendered in the screenflows defined for commands. These components must be able to read out the user input and fire an 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; } ... }

Constructor Summary
OneStepComponent()
           
 
Method Summary
abstract  void setActiontarget(java.lang.String actiontarget)
           
abstract  void setRendererID(java.lang.String renderer)
           
 

Constructor Detail

OneStepComponent

public OneStepComponent()
Method Detail

setRendererID

public abstract void setRendererID(java.lang.String renderer)
Parameters:
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.

setActiontarget

public abstract void setActiontarget(java.lang.String actiontarget)
Parameters:
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.

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.