com.sapportals.wcm.rendering.screenflow

Class AbstractScreenflow

java.lang.Object
  extended bycom.sapportals.wcm.rendering.screenflow.AbstractScreenflow
All Implemented Interfaces:
IScreenflow
Direct Known Subclasses:
OneStepMassScreenflow, OneStepScreenflow

public abstract class AbstractScreenflow
extends Object
implements IScreenflow

Description of the Interface


Nested Class Summary
static class AbstractScreenflow.Layout
           
 
Field Summary
static ResourceBundles resBundle
           
static AbstractScreenflow.Layout STANDARD
           
 
Fields inherited from interface com.sapportals.wcm.rendering.screenflow.IScreenflow
LAYOUT_HORIZ, LAYOUT_VERTI, RENDERINGBACKEVENT, WDFBACKEVENT
 
Constructor Summary
AbstractScreenflow()
           
AbstractScreenflow(IScreenflowData sd)
           
AbstractScreenflow(PaneElement startPane, ControllerDynPage dynpage)
          Creates an IScreenflow instance that holds the needed elements of the Wdf to modify
 
Method Summary
protected  boolean addScreenflowToStartPane(NextScreenElement nse)
          adds the navigation from the given startpane to the first pane of this dynamic screenflow to the given startpane.
protected  NextScreenElement createBackScreenElement(String event, String producerID, int popCount)
           
protected  NextScreenElement createNextScreenElement(String event, String producerID, String pane, boolean push)
           
protected  boolean createUniqueControlElement(String id, String classname, ParameterElement[] pre)
           
protected  boolean createUniqueControlElement(String id, String classname, ParameterElement[] pre, EventFilterElement[] efe)
           
protected static String createUniqueID(String id, Class cl)
           
protected  boolean createUniquePaneElement(String id, AbstractScreenflow.Layout layout, PaneReferenceElement pre, NextScreenElement nse)
           
protected  boolean createUniquePaneElement(String id, String layout, String width, String height, ControlReferenceElement[] cre, NextScreenElement[] nse)
           
 IRenderingEvent execute()
           
 WdfEvent execute(boolean pushStack)
           
protected  ControllerDynPage getDynPage()
           
protected  PageElement getPage()
           
protected  String getParamterValue(ControlElement control, String paramterKey)
           
protected  IScreenflowData getScreenflowData()
           
protected  PaneElement getStartPane()
           
protected  void initialize(PaneElement startPane, ControllerDynPage dynpage)
           
protected  void writeDebugInformation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resBundle

public static ResourceBundles resBundle

STANDARD

public static final AbstractScreenflow.Layout STANDARD
Constructor Detail

AbstractScreenflow

public AbstractScreenflow(PaneElement startPane,
                          ControllerDynPage dynpage)
Creates an IScreenflow instance that holds the needed elements of the Wdf to modify

Parameters:
startPane - this is the pane that has to be replaced by the first pane of the new dynamic screenflow
dynpage - the dynpage that holds the complete information about the user's iView. If the given startPane is not yet an element of the dynamic screenflow, it is added to it.

AbstractScreenflow

public AbstractScreenflow(IScreenflowData sd)

AbstractScreenflow

public AbstractScreenflow()
Method Detail

initialize

protected void initialize(PaneElement startPane,
                          ControllerDynPage dynpage)

execute

public WdfEvent execute(boolean pushStack)
                 throws WdfException
Specified by:
execute in interface IScreenflow
Throws:
WdfException

execute

public IRenderingEvent execute()
                        throws WcmException
Specified by:
execute in interface IScreenflow
Throws:
WcmException

getScreenflowData

protected IScreenflowData getScreenflowData()

addScreenflowToStartPane

protected final boolean addScreenflowToStartPane(NextScreenElement nse)
                                          throws WdfException
adds the navigation from the given startpane to the first pane of this dynamic screenflow to the given startpane. If a NextScreenElement with the triggering event is already defined for this startpane, it is overwritten with the given NextScreenElement.

Parameters:
nse - The feature to be added to the ScreenflowToStartPane attribute
Returns:
true, when a NextScreenElement with this triggering event is already defined for the startpane, false otherwise.
Throws:
WdfException - when null has been given as parameter

getPage

protected final PageElement getPage()
Returns:
the current PageElement of the dynamic screenflow

getDynPage

protected final ControllerDynPage getDynPage()
Returns:
the current PageElement of the dynamic screenflow

getStartPane

protected final PaneElement getStartPane()
Returns:
the PaneElement that is to be replaced with the first PaneElement of this Screenflow

createUniqueID

protected static final String createUniqueID(String id,
                                             Class cl)

createUniqueControlElement

protected final boolean createUniqueControlElement(String id,
                                                   String classname,
                                                   ParameterElement[] pre)
Parameters:
id - Description of the param
classname - Description of the param
pre - Description of the param
Returns:
Description of the Return Value

createUniqueControlElement

protected final boolean createUniqueControlElement(String id,
                                                   String classname,
                                                   ParameterElement[] pre,
                                                   EventFilterElement[] efe)

createUniquePaneElement

protected final boolean createUniquePaneElement(String id,
                                                String layout,
                                                String width,
                                                String height,
                                                ControlReferenceElement[] cre,
                                                NextScreenElement[] nse)
Parameters:
id - - the id of the PaneElement to create. Please note, that this method will not modify this id. If the calling IScreenflow class wants to participate in the namespace concept of the Screenflow package, the id for the pane can be obtained by calling #method createUniqueElementID, giving the id in question as a parameter for that method. adds a pane with the given id to the given PageElement.
layout - Description of the param
width - Description of the param
height - Description of the param
cre - Description of the param
nse - Description of the param
Returns:
true, when the element was created, false , if a pane with this name already existed before

createUniquePaneElement

protected final boolean createUniquePaneElement(String id,
                                                AbstractScreenflow.Layout layout,
                                                PaneReferenceElement pre,
                                                NextScreenElement nse)

createNextScreenElement

protected final NextScreenElement createNextScreenElement(String event,
                                                          String producerID,
                                                          String pane,
                                                          boolean push)

createBackScreenElement

protected final NextScreenElement createBackScreenElement(String event,
                                                          String producerID,
                                                          int popCount)

writeDebugInformation

protected void writeDebugInformation()

getParamterValue

protected String getParamterValue(ControlElement control,
                                  String paramterKey)


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. 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.