com.sapportals.admin.wizardframework.components
Class AbstractInputComponent
java.lang.Object
|
+--com.sapportals.admin.wizardframework.components.AbstractWizardComponent
|
+--com.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
| 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 |
VALUE
public static final java.lang.String VALUE
valueTargetPath
protected java.lang.String valueTargetPath
INPUT_COMPONENT
public static final java.lang.String INPUT_COMPONENT
DEFAULT_PADDING
public static final int DEFAULT_PADDING
defaultCaption
protected java.lang.String defaultCaption
defaultTooltip
protected java.lang.String defaultTooltip
inputComponent
protected com.sapportals.htmlb.Component inputComponent
filledIncompletely
protected boolean filledIncompletely
label
protected com.sapportals.htmlb.Label label
layout
protected int layout
padding
protected int padding
captionWidth
protected java.lang.String captionWidth
defaultValue
protected java.lang.Object defaultValue
AbstractInputComponent
public AbstractInputComponent()
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
- Overrides:
setupComponent in class AbstractWizardComponent
getValueGeneric
public java.lang.Object getValueGeneric(IBasicEditingContext context)
setValueGeneric
public void setValueGeneric(java.lang.Object newValue,
IWizardContext context)
setPath
public void setPath(java.lang.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.
- Overrides:
setPath in class AbstractWizardComponent
setValueTargetPath
public void setValueTargetPath(java.lang.String iValueTargetPath)
- Set the path of the property underlying this input control
- Parameters:
valueTargetPath - the path of this control's value in the session
getCaption
public java.lang.String getCaption(IBasicEditingContext context)
getTooltip
public java.lang.String getTooltip(IWizardContext context)
setCaption
public void setCaption(java.lang.String caption,
IWizardContext context)
setTooltip
public void setTooltip(java.lang.String tooltip,
IWizardContext ctx)
getCaptionComponent
public com.sapportals.htmlb.Label getCaptionComponent(IWizardContext context)
getInputComponentGeneric
public com.sapportals.htmlb.Component getInputComponentGeneric(IBasicEditingContext ctx)
getDisplay
public com.sapportals.htmlb.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.
- Overrides:
getDisplay in class AbstractWizardComponent
setLayout
public void setLayout(int iLayout)
setCustomErrorMessage
public void setCustomErrorMessage(java.lang.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 java.lang.String getMissingFieldErrorMessage(IBasicEditingContext context)
getErrorMessages
public java.util.List getErrorMessages(IWizardContext context)
- Get the error messages for this component.
- 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(java.lang.String iCaptionWidth)
clearIfInconsistent
public void clearIfInconsistent(java.lang.String changedObject,
IWizardContext ctx)
- Description copied from class:
AbstractWizardComponent
- the default implementtion clears all values from this component's branch in the session.
- 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 com.sapportals.htmlb.Component createInputComponent(IBasicEditingContext ctx)
processInput
public abstract void processInput(IWizardContext ctx)
- Description copied from class:
AbstractWizardComponent
- the default implemention does no input processing.
- Overrides:
processInput in class AbstractWizardComponent