-
org.apache.tapestry.Translator.toClient()
Converts a server-side value to a client-side string. This allows for formatting of the value in a way appropriate to the end user. The output client value should be parsable by {@link #parseClient(String,Messages)}.
@param value the server side value (which may be null)
@return client-side value to present to the user
-
org.apache.tapestry.ValueEncoder.toClient()
Converts a value into a client-side representation. The value should be parseable by {@link #toValue(String)}. In some cases, what is returned is an identifier used to locate the true object, rather than a string representation of the value itself.
@param value to be encoded
@return a string representation of the value, or the value's identity
-
org.apache.tapestry.services.ContextValueEncoder.toClient()
Converts a context value into a client-side string (that will utltimately be encoded into a URL).
@param value to convert (may not be null)
@return string representation of the value
@see org.apache.tapestry.ValueEncoder#toClient(Object)
-
org.apache.tapestry.services.FieldValidationSupport.toClient()
A wrapper around {@link org.apache.tapestry.Translator#toClient(Object)} that firstfires a "toclient" event on the component to see if it can perform the conversion.
@param value to be converted to a client-side string
@param componentResources used to fire events on the component
@param translator used if the component does not provide a non-null value
@return the translated value
-
org.apache.tapestry5.FieldTranslator.toClient()
Converts a server-side value to a client-side string. This allows for formatting of the value in a way appropriate to the end user.
@param value the server side value (which will not be null)
@return client-side value to present to the user
@see Translator#toClient(Object)
-
org.apache.tapestry5.FieldValidationSupport.toClient()
A wrapper around {@link org.apache.tapestry5.Translator#toClient(Object)} that first fires a "toclient" event onthe component to see if it can perform the conversion. If the value is null, then no event is fired and the translator is not invoked, the return value is simply null.
@param value to be converted to a client-side string, which may be null
@param componentResources used to fire events on the component
@param translator used if the component does not provide a non-null value
@param nullFieldStrategy used to convert a null server side value to an appropriate client side value
@return the translated value or null if the value is null
@see org.apache.tapestry5.Translator#toClient(Object)
-
org.apache.tapestry5.Translator.toClient()
Converts a server-side value to a client-side string. This allows for formatting of the value in a way appropriate to the end user. The output client value should be parsable by {@link #parseClient(Field,String,String)}.
@param value the server side value (which will not be null)
@return client-side value to present to the user
-
org.apache.tapestry5.ValueEncoder.toClient()
Converts a value into a client-side representation. The value should be parseable by {@link #toValue(String)}. In some cases, what is returned is an identifier used to locate the true object, rather than a string representation of the value itself.
@param value to be encoded
@return a string representation of the value, or the value's identity
-
org.apache.tapestry5.internal.translator.BigDecimalNumericFormatter.toClient()
-
org.apache.tapestry5.internal.translator.BigIntegerNumericFormatter.toClient()
-
org.apache.tapestry5.services.ContextValueEncoder.toClient()
Converts a context value into a client-side string (that will ultimately be encoded into a URL).
@param value to convert (may not be null)
@return string representation of the value
@see org.apache.tapestry5.ValueEncoder#toClient(Object)