public class ValueContext extends Object implements Serializable
Converters. Contains relevant information for
converting values.| Constructor and Description |
|---|
ValueContext()
Constructor for
ValueContext without a Locale. |
ValueContext(Component component)
Constructor for
ValueContext. |
ValueContext(Component component,
HasValue<?,?> hasValue)
Constructor for
ValueContext. |
ValueContext(Component component,
HasValue<?,?> hasValue,
Locale locale)
Constructor for
ValueContext. |
ValueContext(Locale locale)
Constructor for
ValueContext without a Component. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Component> |
getComponent()
Returns an
Optional for the Component related to value
conversion. |
Optional<HasValue<?,?>> |
getHasValue()
Returns an
Optional for the HasValue used in the value
conversion. |
Optional<Locale> |
getLocale()
Returns an
Optional for the Locale used in the value
conversion. |
public ValueContext()
ValueContext without a Locale.public ValueContext(Locale locale)
ValueContext without a Component.locale - The locale used with conversion. Can be null.public ValueContext(Component component)
ValueContext.component - The component related to current value. Can be null. If the
component implements HasValue, it will be returned by
getHasValue() as well.public ValueContext(Component component, HasValue<?,?> hasValue)
ValueContext.component - The component related to current value. Can be null.hasValue - The value source related to current value. Can be null.public Optional<Component> getComponent()
Optional for the Component related to value
conversion.public Optional<Locale> getLocale()
Optional for the Locale used in the value
conversion.Copyright © 2025. All rights reserved.