public interface FieldValue
Modifier and Type | Method and Description |
---|---|
void |
clearValue()
Clear the field's value.
|
java.lang.String |
getDisplayString()
Return the field's value as a string that can be displayed to the user.
|
java.lang.String |
getDisplayString(java.util.Locale locale)
Return the field's value as a string that can be displayed to the user.
|
boolean |
hasValue()
Return whether this field has a value.
|
void |
setFromDisplayString(java.util.Locale locale,
java.lang.String value)
Set the field value from a display string using a specific locale for formatting and language selection.
|
void |
setFromDisplayString(java.lang.String value)
Set the field value from a display string.
|
boolean hasValue()
true
if the field has a value, false
otherwise.void clearValue()
Item.save()
to save this change back to the catalog.java.lang.String getDisplayString()
java.lang.String getDisplayString(java.util.Locale locale)
locale
- The locale to use for formatting and language selection.void setFromDisplayString(java.lang.String value) throws InvalidArgumentException
Item.save()
to save this change back to the catalog.
This method uses the current locale for formatting and language selection.value
- The display string to set the value from.InvalidArgumentException
- if the display string is not of the right format.void setFromDisplayString(java.util.Locale locale, java.lang.String value) throws InvalidArgumentException
Item.save()
to save this change back to the catalog.locale
- The locale to use for formatting and language selection.value
- The display string to set the value from.InvalidArgumentException
- if the display string is not of the right format.www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.