com.sapportals.admin.wizardframework.components
Class AbstractSelectionComponent

java.lang.Object
  |
  +--com.sapportals.admin.wizardframework.components.AbstractWizardComponent
        |
        +--com.sapportals.admin.wizardframework.components.AbstractInputComponent
              |
              +--com.sapportals.admin.wizardframework.components.AbstractSelectionComponent
All Implemented Interfaces:
IDependencyObject, IWizardComponent
Direct Known Subclasses:
CheckboxSelectionComponent, DropdownSelectionComponent, ListSelectionComponent, RadioButtonSelectionComponent

public abstract class AbstractSelectionComponent
extends AbstractInputComponent


Fields inherited from class com.sapportals.admin.wizardframework.components.AbstractInputComponent
captionWidth, DEFAULT_PADDING, defaultCaption, defaultTooltip, defaultValue, filledIncompletely, INPUT_COMPONENT, inputComponent, label, layout, padding, VALUE, valueTargetPath
 
Fields inherited from class com.sapportals.admin.wizardframework.components.AbstractWizardComponent
HORIZONTAL_LAYOUT, VERTICAL_LAYOUT
 
Constructor Summary
protected AbstractSelectionComponent(java.lang.String iDefaultCaption, boolean iIsMultiValue, java.util.List iDefaultChoiceList, java.util.List iDefaultChoiceTitleList, java.util.List iDefaultChoiceTooltipList, java.lang.String iChoiceListPath, java.lang.String iChoiceTitleListPath, java.lang.String iChoiceTooltipListPath, java.lang.String iDefaultSingleValue, java.util.List iDefaultMultiValue)
           
 
Method Summary
protected  com.sapportals.htmlb.Component createCheckboxGroupInputComponent(IBasicEditingContext context)
           
protected  com.sapportals.htmlb.Component createDropDownInputComponent(IBasicEditingContext context)
           
protected  com.sapportals.htmlb.Component createListBoxInputComponent(IBasicEditingContext context)
           
protected  com.sapportals.htmlb.Component createRadioButtonInputComponent(IBasicEditingContext context)
           
protected  java.util.List getCheckboxGroupValuesFromForm(IWizardContext context)
           
 java.util.List getChoices(IBasicEditingContext context)
          Get the list of choices for this component.
 java.util.List getChoiceTitles(IBasicEditingContext context)
          Get the list of choices titles for this component.
 java.util.List getChoiceTooltips(IBasicEditingContext context)
          Get the list of choices tooltips for this component.
protected  java.lang.String getDropdownValueFromForm(IWizardContext context)
          Store the value from the htmlb display in the session.
protected  java.util.List getListBoxValuesFromForm(IWizardContext context)
           
protected  java.util.List getMultiValue(IBasicEditingContext context)
           
protected  java.lang.String getRadioButtonInputValueFromForm(IWizardContext context)
           
protected  java.lang.String getSingleValue(IBasicEditingContext context)
           
protected  java.lang.String getSingleValueTitle(IWizardContext context)
           
protected  java.lang.String getSingleValueTooltip(IWizardContext context)
           
 boolean isComplete(IWizardContext ctx)
          the default implemention returns true
 boolean isMultiValue()
           
abstract  void processInput(IWizardContext context)
          the default implemention does no input processing.
 void setChoices(java.util.List choices, IWizardContext context)
          Set the list of choices for this component. please note that this implementation will reset the display of the htmlb display of the component, such that any modifications done to the display disappear.
 void setChoicesTitles(java.util.List titles, IWizardContext context)
          Set the list of titles for this component. please note that this implementation will reset the display of the htmlb display of the component, such that any modifications done to the display disappear.
 void setChoicesTooltips(java.util.List tooltips, IWizardContext context)
          Set the list of tooltips for this component. please note that this implementation will reset the display of the htmlb display of the component, such that any modifications done to the display disappear.
protected  boolean setMultiValue(java.util.List selections, IWizardContext context)
           
protected  boolean setSingleValue(java.lang.String selection, IWizardContext context)
           
 void setWidth(java.lang.String iWidth)
           
protected  void updateInputComponent(IWizardContext context)
           
 
Methods inherited from class com.sapportals.admin.wizardframework.components.AbstractInputComponent
clear, clearIfInconsistent, createInputComponent, getCaption, getCaptionComponent, getDisplay, getErrorMessages, getInputComponentGeneric, getMissingFieldErrorMessage, getTooltip, getValueGeneric, setCaption, setCaptionWidth, setCustomErrorMessage, setLayout, setPath, setTooltip, setupComponent, setValueGeneric, setValueTargetPath
 
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
 

Constructor Detail

AbstractSelectionComponent

protected AbstractSelectionComponent(java.lang.String iDefaultCaption,
                                     boolean iIsMultiValue,
                                     java.util.List iDefaultChoiceList,
                                     java.util.List iDefaultChoiceTitleList,
                                     java.util.List iDefaultChoiceTooltipList,
                                     java.lang.String iChoiceListPath,
                                     java.lang.String iChoiceTitleListPath,
                                     java.lang.String iChoiceTooltipListPath,
                                     java.lang.String iDefaultSingleValue,
                                     java.util.List iDefaultMultiValue)
Method Detail

getChoices

public java.util.List getChoices(IBasicEditingContext context)
Get the list of choices for this component. Don't modify the list returned by this function!!!. maybe this function should be private???

getChoiceTitles

public java.util.List getChoiceTitles(IBasicEditingContext context)
Get the list of choices titles for this component. Don't modify the list returned by this function!!!. maybe this function should be private???

getChoiceTooltips

public java.util.List getChoiceTooltips(IBasicEditingContext context)
Get the list of choices tooltips for this component. Don't modify the list returned by this function!!!. maybe this function should be private???

setChoices

public void setChoices(java.util.List choices,
                       IWizardContext context)
Set the list of choices for this component. please note that this implementation will reset the display of the htmlb display of the component, such that any modifications done to the display disappear.

setChoicesTitles

public void setChoicesTitles(java.util.List titles,
                             IWizardContext context)
Set the list of titles for this component. please note that this implementation will reset the display of the htmlb display of the component, such that any modifications done to the display disappear.

setChoicesTooltips

public void setChoicesTooltips(java.util.List tooltips,
                               IWizardContext context)
Set the list of tooltips for this component. please note that this implementation will reset the display of the htmlb display of the component, such that any modifications done to the display disappear.

setWidth

public void setWidth(java.lang.String iWidth)

isMultiValue

public boolean isMultiValue()

updateInputComponent

protected void updateInputComponent(IWizardContext context)

processInput

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

setSingleValue

protected boolean setSingleValue(java.lang.String selection,
                                 IWizardContext context)

setMultiValue

protected boolean setMultiValue(java.util.List selections,
                                IWizardContext context)

getSingleValue

protected java.lang.String getSingleValue(IBasicEditingContext context)

getSingleValueTitle

protected java.lang.String getSingleValueTitle(IWizardContext context)

getSingleValueTooltip

protected java.lang.String getSingleValueTooltip(IWizardContext context)

getMultiValue

protected java.util.List getMultiValue(IBasicEditingContext context)

createRadioButtonInputComponent

protected com.sapportals.htmlb.Component createRadioButtonInputComponent(IBasicEditingContext context)

getRadioButtonInputValueFromForm

protected java.lang.String getRadioButtonInputValueFromForm(IWizardContext context)

createListBoxInputComponent

protected com.sapportals.htmlb.Component createListBoxInputComponent(IBasicEditingContext context)

getListBoxValuesFromForm

protected java.util.List getListBoxValuesFromForm(IWizardContext context)

createDropDownInputComponent

protected com.sapportals.htmlb.Component createDropDownInputComponent(IBasicEditingContext context)

getDropdownValueFromForm

protected java.lang.String getDropdownValueFromForm(IWizardContext context)
Store the value from the htmlb display in the session.

createCheckboxGroupInputComponent

protected com.sapportals.htmlb.Component createCheckboxGroupInputComponent(IBasicEditingContext context)

getCheckboxGroupValuesFromForm

protected java.util.List getCheckboxGroupValuesFromForm(IWizardContext context)

isComplete

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