Class OptionListControl

All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, UifDictionaryBean, Component, Ordered, ScriptEventSupport, Control, MultiValueControl, ContentElement, LifecycleElement, org.springframework.core.Ordered

public class OptionListControl extends MultiValueControlBase
OptionListControl is used for listing out options from an option finder or options list. This control can show all items in the options or it can show only the selected options (if backed by a propertyName). One use case for this control is to use it in combination with UifKeyValueLocation to provide a list of locations retrieved through a KeyValuesFinder.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • OptionListControl

      public OptionListControl()
  • Method Details

    • getItemCssClass

      public String getItemCssClass()
      The item css class to add to each li element of the list
      Returns:
      the item css class
    • setItemCssClass

      public void setItemCssClass(String itemCssClass)
      Set the itemCssClass
      Parameters:
      itemCssClass -
    • isShowOnlySelected

      public boolean isShowOnlySelected()
      When true, only show the "selected" options (items which match a value in the property of the field). Otherwise, show all options.
      Returns:
      true if only showing selected options, otherwise show all
    • setShowOnlySelected

      public void setShowOnlySelected(boolean showOnlySelected)
      Set the showOnlySelected flag
      Parameters:
      showOnlySelected -
    • getSelectedItemCssClass

      public String getSelectedItemCssClass()
      The css class to add to each item of the list which matches a value in the property
      Returns:
      the selected item css class
    • setSelectedItemCssClass

      public void setSelectedItemCssClass(String selectedItemCssClass)
      Set the selectedItemCssClass
      Parameters:
      selectedItemCssClass -