public final class Option extends Object
Class represents option of choice field.
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Gets index of the option.
|
String |
getName()
Gets name of option.
|
boolean |
getSelected()
Gets selected status of option.
|
String |
getValue()
Gets option export value.
|
boolean |
hasExportValue()
Return true if has Export Value
|
void |
setName(String value)
Sets name of option.
|
void |
setSelected(boolean value)
Sets selected status of option.
|
void |
setValue(String value)
Sets option export value.
|
public String getValue()
Gets option export value.
public void setValue(String value)
Sets option export value.
value
- String valuepublic String getName()
Gets name of option.
public void setName(String value)
Sets name of option.
value
- String valuepublic boolean getSelected()
Gets selected status of option. Returns true if option is selected.
public void setSelected(boolean value)
Sets selected status of option. Returns true if option is selected.
value
- boolean valuepublic int getIndex()
Gets index of the option.
public boolean hasExportValue()