com.sapportals.admin.wizardframework.api

Interface IWizardComponent

All Known Implementing Classes:
AbstractWizardComponent

public interface IWizardComponent


Method Summary
 void doAfterSubmit(IWizardContext context)
          Actions performed after user input was collected should be placed into this function.
 void doBeforeDisplay(IWizardContext context)
          Do any preparations, that may be needed before display.
 Component getControlInFocus(IWizardContext ctx)
           
 String getDescription(IWizardContext ctx)
          Set the description of a pane - this function is relevant only for panes.
 Component getDisplay(IWizardContext context)
          get the htmlb display for this component.
 List getErrorMessages(IWizardContext context)
           
 String getPath()
          get the path of this component (internally used)
 String getTitle(IWizardContext ctx)
          Set the title of a pane - this function is relevant only for panes.
 void init(IWizardContext context)
          initialize this component.
 boolean isInitialized(IWizardContext context)
           
 boolean isMandatory()
           
 void processInput(IWizardContext context)
          read the user input from the submitted form here and store it in the session.
 void setMandatory(boolean mandatory)
           
 void setPath(String path)
          set the path of this component. e.g. it's position in the wizard hierarchy.
 void setupComponent(IWizardContext ctx)
          setup the component here. if this component is a container add all subcomponents here
 

Method Detail

getTitle

public String getTitle(IWizardContext ctx)
Set the title of a pane - this function is relevant only for panes. It won't have any effect if used in subcomponents.


getDescription

public String getDescription(IWizardContext ctx)
Set the description of a pane - this function is relevant only for panes. It won't have any effect if used in subcomponents.


setupComponent

public void setupComponent(IWizardContext ctx)
setup the component here. if this component is a container add all subcomponents here


isInitialized

public boolean isInitialized(IWizardContext context)
Returns:
- has this component already been initialized?

init

public void init(IWizardContext context)
initialize this component.


doBeforeDisplay

public void doBeforeDisplay(IWizardContext context)
Do any preparations, that may be needed before display. Note: don't keep the state of the component in member variables of the component between "beforeDisplay()" and "doForm()", since the component is a shared instance. keep it in the session. (the session can keep any object, stateful or not within the same request).


getDisplay

public Component getDisplay(IWizardContext context)
get the htmlb display for this component. in non-display components return null.


processInput

public void processInput(IWizardContext context)
read the user input from the submitted form here and store it in the session.


doAfterSubmit

public void doAfterSubmit(IWizardContext context)
Actions performed after user input was collected should be placed into this function.


getErrorMessages

public List getErrorMessages(IWizardContext context)
Returns:
- If this component was not propperly filled by the user return a list of error messages indicating the missing fields or inconsistencies, otherwise return null;

getPath

public String getPath()
get the path of this component (internally used)


setPath

public void setPath(String path)
set the path of this component. e.g. it's position in the wizard hierarchy. path components are seperated by IWizardSession.PATH_DELIMITER. example: "personalInfoPane.nameComponent.firstNameInputField"


isMandatory

public boolean isMandatory()

setMandatory

public void setMandatory(boolean mandatory)

getControlInFocus

public Component getControlInFocus(IWizardContext ctx)


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.