org.apache.tapestry.form
Class TranslatedFieldSupportImpl
java.lang.Object
org.apache.tapestry.form.TranslatedFieldSupportImpl
- All Implemented Interfaces:
- TranslatedFieldSupport
public class TranslatedFieldSupportImpl
- extends Object
- implements TranslatedFieldSupport
- Author:
- unknown
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TranslatedFieldSupportImpl
public TranslatedFieldSupportImpl()
getThreadLocale
public org.apache.hivemind.service.ThreadLocale getThreadLocale()
- Returns:
- Returns the threadLocale.
setThreadLocale
public void setThreadLocale(org.apache.hivemind.service.ThreadLocale threadLocale)
- Parameters:
threadLocale
- The threadLocale to set.
format
public String format(TranslatedField field,
Object object)
- Description copied from interface:
TranslatedFieldSupport
- Formats the field translation.
- Specified by:
format
in interface TranslatedFieldSupport
- Parameters:
field
- The field the value is being formatted for.object
- The object value to be formatted.
- Returns:
- The formatted string value of the given object.
parse
public Object parse(TranslatedField field,
String text)
throws ValidatorException
- Description copied from interface:
TranslatedFieldSupport
- Parses the field value.
- Specified by:
parse
in interface TranslatedFieldSupport
- Parameters:
field
- The field to parse the value from.text
- The input text.
- Returns:
- The parsed field value in its translated object form.
- Throws:
ValidatorException
- On validation error.
renderContributions
public void renderContributions(TranslatedField field,
IMarkupWriter writer,
IRequestCycle cycle)
- Description copied from interface:
TranslatedFieldSupport
- Renders client side / misc contributions when the field is being rendered.
- Specified by:
renderContributions
in interface TranslatedFieldSupport
- Parameters:
field
- The field being rendered.writer
- The markup writer to use.cycle
- The current request.
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.