org.apache.tapestry.coerce
Class StringToPropertySelectionModelConverter
java.lang.Object
org.apache.tapestry.coerce.StringToPropertySelectionModelConverter
- All Implemented Interfaces:
- TypeConverter
public final class StringToPropertySelectionModelConverter
- extends Object
- implements TypeConverter
Converts a string to a IPropertySelectionModel
. The string is
broken apart at commas into terms. Each term consists of a label (displayed to the user) and a
value (used as a client-side value and as the server-side property) seperated by an equals sign;
if the equals sign is omitted, then the value is the same as the label.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringToPropertySelectionModelConverter
public StringToPropertySelectionModelConverter()
convertValue
public Object convertValue(Object value)
- Description copied from interface:
TypeConverter
- Converts the value.
- Specified by:
convertValue
in interface TypeConverter
- Parameters:
value
- the value to be converted (which may be null)
- Returns:
- the value converted to a specific type; different implementations of TypeConverter
will return different types.
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.