com.sapportals.admin.wizardframework.components

Class MultiSelectionComponent

java.lang.Object
  extended bycom.sapportals.admin.wizardframework.components.AbstractWizardComponent
      extended bycom.sapportals.admin.wizardframework.components.GridContainer
          extended bycom.sapportals.admin.wizardframework.components.MultiSelectionComponent
All Implemented Interfaces:
IDependencyObject, IWizardComponent, IWizardComponentContainer

public class MultiSelectionComponent
extends GridContainer


Field Summary
static String VALUE
           
static String VALUE_TITLES
           
 
Fields inherited from class com.sapportals.admin.wizardframework.components.GridContainer
GRID
 
Fields inherited from class com.sapportals.admin.wizardframework.components.AbstractWizardComponent
HORIZONTAL_LAYOUT, VERTICAL_LAYOUT
 
Constructor Summary
MultiSelectionComponent(String iPathOfListToChooseFrom, int iWidth)
          Sorry, no documentation comment here
MultiSelectionComponent(String iPathOfListToChooseFrom, int iWidth, int iHeight)
          Deprecated.  
MultiSelectionComponent(String iPathOfListToChooseFrom, int iWidth, int iHeight, String iChoiceCaption, String iSelectionCaption)
          Deprecated.  
MultiSelectionComponent(String iPathOfListToChooseFrom, int iWidth, String iChoiceCaption, String iSelectionCaption)
          Sorry, no documentation comment here
MultiSelectionComponent(String iPathOfListToChooseFrom, String iPathOfChoiceTitles, int iWidth, int iHeight, String iChoiceCaption, String iSelectionCaption)
          Deprecated.  
MultiSelectionComponent(String iPathOfListToChooseFrom, String iPathOfChoiceTitles, int iWidth, String iChoiceCaption, String iSelectionCaption)
          Sorry, no documentation comment here
 
Method Summary
 void clearIfInconsistent(String changedObjectKey, IWizardContext ctx)
          the default implementtion clears all values from this component's branch in the session.
 void doAfterProcess(IWizardContext ctx)
           
 Component getDisplay(IWizardContext ctx)
          Sorry, no documentation comment here
 List getErrorMessages(IWizardContext context)
          Get the error messages for this component.
 boolean isComplete(IWizardContext context)
          the default implemention returns true
 void myProcessInput(IWizardContext ctx)
          Store the value from the htmlb display in the session.
 void mySetupComponent(IWizardContext ctx)
           
 void setCustomErrorMessage(String errorMessage)
          Deprecated. - use of this function will cause inconsistencies in the error handling of different wizards - it will be removed for MS1 Sorry, no documentation comment here
 void setDefaultValue(List defaultValue)
           
 
Methods inherited from class com.sapportals.admin.wizardframework.components.GridContainer
addComponent, addComponent, delegateDoBeforeDisplay, delegateProcessInput, delegateSetupComponent, doAfterSubmit, doBeforeDisplay, getCell, getComponent, getControlInFocus, getGrid, getPath, init, isInitialized, myDoBeforeDisplay, processInput, setPath, setSize, setupComponent, wasChanged
 
Methods inherited from class com.sapportals.admin.wizardframework.components.AbstractWizardComponent
getDescription, getProperty, getTitle, isMandatory, setMandatory, setProperty, setTempProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE

public static final String VALUE
See Also:
Constant Field Values

VALUE_TITLES

public static final String VALUE_TITLES
See Also:
Constant Field Values
Constructor Detail

MultiSelectionComponent

public MultiSelectionComponent(String iPathOfListToChooseFrom,
                               int iWidth,
                               int iHeight)
Deprecated.  


MultiSelectionComponent

public MultiSelectionComponent(String iPathOfListToChooseFrom,
                               int iWidth,
                               int iHeight,
                               String iChoiceCaption,
                               String iSelectionCaption)
Deprecated.  


MultiSelectionComponent

public MultiSelectionComponent(String iPathOfListToChooseFrom,
                               String iPathOfChoiceTitles,
                               int iWidth,
                               int iHeight,
                               String iChoiceCaption,
                               String iSelectionCaption)
Deprecated.  


MultiSelectionComponent

public MultiSelectionComponent(String iPathOfListToChooseFrom,
                               int iWidth)
Sorry, no documentation comment here


MultiSelectionComponent

public MultiSelectionComponent(String iPathOfListToChooseFrom,
                               int iWidth,
                               String iChoiceCaption,
                               String iSelectionCaption)
Sorry, no documentation comment here


MultiSelectionComponent

public MultiSelectionComponent(String iPathOfListToChooseFrom,
                               String iPathOfChoiceTitles,
                               int iWidth,
                               String iChoiceCaption,
                               String iSelectionCaption)
Sorry, no documentation comment here

Method Detail

mySetupComponent

public void mySetupComponent(IWizardContext ctx)
Overrides:
mySetupComponent in class GridContainer

setDefaultValue

public void setDefaultValue(List defaultValue)

getDisplay

public Component getDisplay(IWizardContext ctx)
Sorry, no documentation comment here

Specified by:
getDisplay in interface IWizardComponent
Overrides:
getDisplay in class GridContainer
Parameters:
ctx - public void myDoBeforeDisplay (IWizardContext ctx) { //context.log("choices:"+ctx.getProperty(this.pathOfListToChooseFrom)); //context.log("titles:"+ctx.getProperty(this.pathOfChoiceTitles)); if (getProperty(VALUE, ctx) == null) { this.setProperty(VALUE, new StoreableList(), ctx); } if (getProperty(VALUE_TITLES, ctx) == null) { this.setProperty(VALUE_TITLES, new StoreableList(), ctx); //context.log("SEEE:"+getProperty(VALUE_TITLES,ctx)); } //super.doBeforeDisplay(ctx); }

myProcessInput

public void myProcessInput(IWizardContext ctx)
Store the value from the htmlb display in the session.

Overrides:
myProcessInput in class GridContainer

doAfterProcess

public void doAfterProcess(IWizardContext ctx)

isComplete

public boolean isComplete(IWizardContext context)
Description copied from class: AbstractWizardComponent
the default implemention returns true

Overrides:
isComplete in class AbstractWizardComponent

getErrorMessages

public List getErrorMessages(IWizardContext context)
Get the error messages for this component.

Specified by:
getErrorMessages in interface IWizardComponent
Overrides:
getErrorMessages in class GridContainer
Returns:
the list of error messages for this component or null if the component was filled properly

setCustomErrorMessage

public void setCustomErrorMessage(String errorMessage)
Deprecated. - use of this function will cause inconsistencies in the error handling of different wizards - it will be removed for MS1 Sorry, no documentation comment here

Parameters:
errorMessage -

clearIfInconsistent

public void clearIfInconsistent(String changedObjectKey,
                                IWizardContext ctx)
Description copied from class: AbstractWizardComponent
the default implementtion clears all values from this component's branch in the session.

Specified by:
clearIfInconsistent in interface IDependencyObject
Overrides:
clearIfInconsistent in class GridContainer


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.