public class Choice extends Object
| Constructor and Description |
|---|
Choice(String value)
Constructs a new choice list value with display name equal to the value.
|
Choice(String displayName,
Object value)
Constructs a new choice list value.
|
| Modifier and Type | Method and Description |
|---|---|
List<Choice> |
getChoices()
Returns a list of choice list items.
|
String |
getDisplayName()
Returns the display name of the choice list item.
|
Object |
getValue()
Returns the value of the choice list item.
|
void |
setChoices(List<Choice> choices)
Sets the child choice items of this choice list items.
|
void |
setDisplayName(String displayName)
Sets the display name of the choice list item.
|
void |
setValue(String value)
Sets the string value of the choice list item.
|
String |
toString()
The string presentation of the choice list item.
|
public Choice(String displayName, Object value)
displayName - the display name of the choice list item. If null the string
representation of the value is used.value - the value of the choice list item.public Choice(String value)
value - the value of the choice list item.public String getDisplayName()
public void setDisplayName(String displayName)
displayName - the valuepublic Object getValue()
public void setValue(String value)
value - the string value of choice list itempublic List<Choice> getChoices()
public void setChoices(List<Choice> choices)
choices - the list of choicesCopyright © 2018. All rights reserved.