Interface OptionItem
-
@ConsumerType public interface OptionItem
Interface for a single item of theOptions
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()
Returnstrue
if item should be disabled and therefore not clickable, otherwisefalse
.default boolean
isSelected()
Returnstrue
if item should be initially selected, otherwisefalse
.
-
-
-
Method Detail
-
isSelected
default boolean isSelected()
Returnstrue
if item should be initially selected, otherwisefalse
.- Returns:
true
if item should be initially selected, otherwisefalse
- Since:
- com.adobe.cq.wcm.core.components.models.form 13.0.0; marked
default
in 14.1.0
-
isDisabled
default boolean isDisabled()
Returnstrue
if item should be disabled and therefore not clickable, otherwisefalse
.- Returns:
true
if item should be disabled and therefore not clickable, otherwisefalse
- 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
-
-