public class OptionModelImpl extends AbstractOptionModel
| Constructor and Description |
|---|
OptionModelImpl(String value)
Constructor for when the value and the label are the same.
|
OptionModelImpl(String label,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel()
The localized, user-presentable label for the option.
|
Object |
getValue()
The server-side value represented by this option.
|
String |
toString() |
getAttributes, isDisabledpublic OptionModelImpl(String value)
public OptionModelImpl(String label, Object value)
public String getLabel()
OptionModelpublic Object getValue()
OptionModelValueEncoder.toClient(Object), to generate the client-side value attribute.5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.