Interface OptionItem
-
@ConsumerType public interface OptionItem
Interface for a single item of theOptionsform 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.StringgetText()Return the text for this item.default java.lang.StringgetValue()Returns the value of this item.default booleanisDisabled()Returnstrueif item should be disabled and therefore not clickable, otherwisefalse.default booleanisSelected()Returnstrueif item should be initially selected, otherwisefalse.
-
-
-
Method Detail
-
isSelected
default boolean isSelected()
Returnstrueif item should be initially selected, otherwisefalse.- Returns:
trueif item should be initially selected, otherwisefalse- Since:
- com.adobe.cq.wcm.core.components.models.form 13.0.0; marked
defaultin 14.1.0
-
isDisabled
default boolean isDisabled()
Returnstrueif item should be disabled and therefore not clickable, otherwisefalse.- Returns:
trueif item should be disabled and therefore not clickable, otherwisefalse- Since:
- com.adobe.cq.wcm.core.components.models.form 13.0.0; marked
defaultin 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
defaultin 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
defaultin 14.1.0
-
-