Interface OptionItem


@ConsumerType public interface OptionItem
Interface for a single item of the Options form element.
Since:
com.adobe.cq.wcm.core.components.models.form 13.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Return the text for this item.
    default String
    Returns the value of this item.
    default boolean
    Returns true if item should be disabled and therefore not clickable, otherwise false.
    default boolean
    Returns true if item should be initially selected, otherwise false.
  • Method Details

    • isSelected

      default boolean isSelected()
      Returns true if item should be initially selected, otherwise false.
      Returns:
      true if item should be initially selected, otherwise false
      Since:
      com.adobe.cq.wcm.core.components.models.form 13.0.0; marked default in 14.1.0
    • isDisabled

      default boolean isDisabled()
      Returns true if item should be disabled and therefore not clickable, otherwise false.
      Returns:
      true if item should be disabled and therefore not clickable, otherwise false
      Since:
      com.adobe.cq.wcm.core.components.models.form 13.0.0; marked default in 14.1.0
    • getValue

      default String getValue()
      Returns the value of this item.
      Returns:
      the value of this item
      Since:
      com.adobe.cq.wcm.core.components.models.form 13.0.0; marked default in 14.1.0
    • getText

      default String getText()
      Return the text for this item.
      Returns:
      the text for this item
      Since:
      com.adobe.cq.wcm.core.components.models.form 13.0.0; marked default in 14.1.0