com.sapportals.admin.wizardframework.components

Class AbstractInputComponent

java.lang.Object
  extended bycom.sapportals.admin.wizardframework.components.AbstractWizardComponent
      extended bycom.sapportals.admin.wizardframework.components.AbstractInputComponent
All Implemented Interfaces:
IDependencyObject, IWizardComponent
Direct Known Subclasses:
AbstractInputComponent, AbstractSelectionComponent, CheckboxChoiceComponent, MultilineInputComponent, TableViewComponent, TextInputComponent

public abstract class AbstractInputComponent
extends AbstractWizardComponent


Field Summary
protected  String captionWidth
           
static int DEFAULT_PADDING
           
protected  String defaultCaption
           
protected  String defaultTooltip
           
protected  Object defaultValue
           
protected  boolean filledIncompletely
           
static String INPUT_COMPONENT
           
protected  Component inputComponent
           
protected  Label label
           
protected  int layout
           
protected  int padding
           
static String VALUE
           
protected  String valueTargetPath
           
 
Fields inherited from class com.sapportals.admin.wizardframework.components.AbstractWizardComponent
HORIZONTAL_LAYOUT, VERTICAL_LAYOUT
 
Constructor Summary
AbstractInputComponent()
           
 
Method Summary
 void clear()
           
 void clearIfInconsistent(String changedObject, IWizardContext ctx)
          the default implementtion clears all values from this component's branch in the session.
protected abstract  Component createInputComponent(IBasicEditingContext ctx)
           
 String getCaption(IBasicEditingContext context)
           
 Label getCaptionComponent(IWizardContext context)
           
 Component getDisplay(IWizardContext context)
          the default implementation returns null - if your component has a display it should inherit AbstractDisplayComponent or AbstractInputComponent.
 List getErrorMessages(IWizardContext context)
          Get the error messages for this component.
 Component getInputComponentGeneric(IBasicEditingContext ctx)
           
 String getMissingFieldErrorMessage(IBasicEditingContext context)
           
 String getTooltip(IWizardContext context)
           
 Object getValueGeneric(IBasicEditingContext context)
           
 boolean isComplete(IWizardContext ctx)
          the default implemention returns true
abstract  void processInput(IWizardContext ctx)
          the default implemention does no input processing.
 void setCaption(String caption, IWizardContext context)
           
 void setCaptionWidth(String iCaptionWidth)
           
 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 Define the error message to be displayed if this component was not filled
 void setLayout(int iLayout)
           
 void setPath(String iPath)
          set the path of this component. e.g. it's position in the wizard hierarchy.
 void setTooltip(String tooltip, IWizardContext ctx)
           
 void setupComponent(IWizardContext ctx)
          setup the component here. if this component is a container add all subcomponents here
 void setValueGeneric(Object newValue, IWizardContext context)
           
 void setValueTargetPath(String iValueTargetPath)
          Set the path of the property underlying this input control
 
Methods inherited from class com.sapportals.admin.wizardframework.components.AbstractWizardComponent
doAfterSubmit, doBeforeDisplay, getControlInFocus, getDescription, getPath, getProperty, getTitle, init, isInitialized, isMandatory, setMandatory, setProperty, setTempProperty, wasChanged
 
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

valueTargetPath

protected String valueTargetPath

INPUT_COMPONENT

public static final String INPUT_COMPONENT
See Also:
Constant Field Values

DEFAULT_PADDING

public static final int DEFAULT_PADDING
See Also:
Constant Field Values

defaultCaption

protected String defaultCaption

defaultTooltip

protected String defaultTooltip

inputComponent

protected Component inputComponent

filledIncompletely

protected boolean filledIncompletely

label

protected Label label

layout

protected int layout

padding

protected int padding

captionWidth

protected String captionWidth

defaultValue

protected Object defaultValue
Constructor Detail

AbstractInputComponent

public AbstractInputComponent()
Method Detail

clear

public void clear()

setupComponent

public void setupComponent(IWizardContext ctx)
Description copied from interface: IWizardComponent
setup the component here. if this component is a container add all subcomponents here

Specified by:
setupComponent in interface IWizardComponent
Overrides:
setupComponent in class AbstractWizardComponent

getValueGeneric

public Object getValueGeneric(IBasicEditingContext context)

setValueGeneric

public void setValueGeneric(Object newValue,
                            IWizardContext context)

setPath

public void setPath(String iPath)
Description copied from class: AbstractWizardComponent
set the path of this component. e.g. it's position in the wizard hierarchy. path components are seperated by IWizardSession.PATH_DELIMITER. example: "pane1.nameComponent.firstNameInputField". If this component contains other components it will set their path in this function.

Specified by:
setPath in interface IWizardComponent
Overrides:
setPath in class AbstractWizardComponent

setValueTargetPath

public void setValueTargetPath(String iValueTargetPath)
Set the path of the property underlying this input control


getCaption

public String getCaption(IBasicEditingContext context)

getTooltip

public String getTooltip(IWizardContext context)

setCaption

public void setCaption(String caption,
                       IWizardContext context)

setTooltip

public void setTooltip(String tooltip,
                       IWizardContext ctx)

getCaptionComponent

public Label getCaptionComponent(IWizardContext context)

getInputComponentGeneric

public Component getInputComponentGeneric(IBasicEditingContext ctx)

getDisplay

public Component getDisplay(IWizardContext context)
Description copied from class: AbstractWizardComponent
the default implementation returns null - if your component has a display it should inherit AbstractDisplayComponent or AbstractInputComponent.

Specified by:
getDisplay in interface IWizardComponent
Overrides:
getDisplay in class AbstractWizardComponent

setLayout

public void setLayout(int iLayout)

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 Define the error message to be displayed if this component was not filled


getMissingFieldErrorMessage

public String getMissingFieldErrorMessage(IBasicEditingContext context)

getErrorMessages

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

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

setCaptionWidth

public void setCaptionWidth(String iCaptionWidth)

clearIfInconsistent

public void clearIfInconsistent(String changedObject,
                                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 AbstractWizardComponent

isComplete

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

Overrides:
isComplete in class AbstractWizardComponent

createInputComponent

protected abstract Component createInputComponent(IBasicEditingContext ctx)

processInput

public abstract void processInput(IWizardContext ctx)
Description copied from class: AbstractWizardComponent
the default implemention does no input processing.

Specified by:
processInput in interface IWizardComponent
Overrides:
processInput in class AbstractWizardComponent


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.