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

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.String getText()
      Return the text for this item.
      default java.lang.String getValue()
      Returns the value of this item.
      default boolean isDisabled()
      Returns true if item should be disabled and therefore not clickable, otherwise false.
      default boolean isSelected()
      Returns true if item should be initially selected, otherwise false.
    • Method Detail

      • 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 java.lang.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 java.lang.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