Klasse FWSingleCheckboxChoiceSubComponent

Alle implementierten Schnittstellen:
ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class FWSingleCheckboxChoiceSubComponent extends FWAbstractFormSubComponent implements ItemListener
This class is used by FWChoiceFormComponent, to display a single choice.
Autor:
Andreas Enders
Siehe auch:
  • Konstruktordetails

    • FWSingleCheckboxChoiceSubComponent

      public FWSingleCheckboxChoiceSubComponent(Vector<FWFormOption> aOptions, boolean aEnabled, FWObservable aObservable, Map<String,Object> aFormComponentParameterMap)
      Parameter:
      aOptions - List of options to be displayed to the user.
      aEnabled -
      aObservable -
      aFormComponentParameterMap -
    • FWSingleCheckboxChoiceSubComponent

      public FWSingleCheckboxChoiceSubComponent(Vector<FWFormOption> aOptions, boolean aEnabled, FWObservable aObservable, Map<String,Object> aFormComponentParameterMap, String aDefaultValue)
      Parameter:
      aOptions - List of options to be displayed to the user.
      aEnabled -
      aObservable -
      aFormComponentParameterMap -
      aDefaultValue - Comma-separated list of the ids of the checkboxes that should initially be selected.
  • Methodendetails

    • getValue

      public String getValue()
      Angegeben von:
      getValue in Klasse FWAbstractFormSubComponent
      Gibt zurück:
      comma-separated list of the id-attributes of the currently selected checkboxes
    • getSelectedValueList

      public List<Object> getSelectedValueList()
      Angegeben von:
      getSelectedValueList in Klasse FWAbstractFormSubComponent
      Gibt zurück:
      value of the implemented subcomponent
    • setValue

      public void setValue(String aValue)
      Beschreibung aus Klasse kopiert: FWAbstractFormSubComponent
      Allows to set the value of the implemented subcomponent
      Angegeben von:
      setValue in Klasse FWAbstractFormSubComponent
      Parameter:
      aValue - comma-separated list of the id-attributes of the values to be selected
    • setSelectedIDs

      public void setSelectedIDs(String aIDs)
      Parameter:
      aIDs -
      aValue - comma-separated list of the id-attributes of the values to be selected
    • updateCheckBox

      public void updateCheckBox(Vector<FWFormOption> aFormOptionVector)
      Updates the choice list
      Parameter:
      aFormOptionVector -
      Vector - of niew FormOptions
    • setEnabled

      public void setEnabled(boolean aIsEnabled)
      Allows to set the value of the implemented subcomponent
      Setzt außer Kraft:
      setEnabled in Klasse FWAbstractFormSubComponent
      Parameter:
      aValue - String representation of the value to be set
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      Notifies the parent component if the value of this component has changed
      Angegeben von:
      itemStateChanged in Schnittstelle ItemListener