Class PickListOption

All Implemented Interfaces:
Serializable, Option, OptionElement, OptionProperties

public class PickListOption extends AbstractOption
A pick-list option. AbstractOption.getValue() returns the list of picked items.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • PickListOption

      public PickListOption()
  • Method Details

    • createUI

      public void createUI()
      Description copied from class: AbstractOptionProperties
      Create the UI components for this option.
      Specified by:
      createUI in class AbstractOptionProperties
    • setEnabled

      public void setEnabled(boolean enabled)
      Description copied from interface: OptionProperties
      Enable or disable this option.
      Parameters:
      enabled - true to enable this option, false to disable it.
    • setupValueChangeNotifications

      protected void setupValueChangeNotifications()
      Description copied from class: AbstractOption
      Concrete subclasses should implement this method to properly forward changes in the value edited by the underlying UI component/editor.
      Specified by:
      setupValueChangeNotifications in class AbstractOption
    • populate

      public void populate(List<Object> allItems, List<Object> pickedItems)
      Populate the pocik list.
      Parameters:
      allItems - the list of all possible items.
      pickedItems - the selected items.
    • getPickList

      public PickList<Object> getPickList()
      Get the pick list.
      Returns:
      a PickList object.