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