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, isDisabled
public OptionModelImpl(String value)
public OptionModelImpl(String label, Object value)
public String getLabel()
OptionModel
public Object getValue()
OptionModel
ValueEncoder.toClient(Object)
, to generate the client-side value attribute.5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.