Package de.xima.fc.gui.common.converter
Class TypePartsConverter.TypeConvertibleMap
- java.lang.Object
-
- de.xima.fc.gui.common.converter.TypePartsConverter.TypeConvertibleMap
-
- All Implemented Interfaces:
IConvertibleMap<Object>
,Serializable
- Enclosing class:
- TypePartsConverter
public static class TypePartsConverter.TypeConvertibleMap extends Object implements IConvertibleMap<Object>
Implementation ofIConvertibleMap
for theTypePartsConverter
. Allows access to a value via getters / setters that declare different types. This is required by some components such asDatePicker
that attempt to read the target type via reflection.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypeConvertibleMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Object
get(Object key)
Boolean
getBoolean()
Date
getDate()
Double
getDouble()
Long
getLong()
String
getString()
Object
put(String key, Object value)
void
setBoolean(Boolean booleanValue)
void
setDate(Date date)
void
setDouble(Double doubleValue)
void
setLong(Long longValue)
void
setString(String string)
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceIConvertibleMap<Object>
-
get
public Object get(Object key)
- Specified by:
get
in interfaceIConvertibleMap<Object>
- Parameters:
key
- Key for which to retrieve the value.- Returns:
- The value associated with the key,
null
if no value exists.
-
getBoolean
public Boolean getBoolean()
-
getDate
public Date getDate()
-
getDouble
public Double getDouble()
-
getLong
public Long getLong()
-
getString
public String getString()
-
put
public Object put(String key, Object value)
- Specified by:
put
in interfaceIConvertibleMap<Object>
- Parameters:
key
- Key for which to set the value.value
- Value to associate with the key.- Returns:
- The value previously associated with the key, or
null
if no value was associated yet.
-
setBoolean
public void setBoolean(Boolean booleanValue)
-
setDate
public void setDate(Date date)
-
setDouble
public void setDouble(Double doubleValue)
-
setLong
public void setLong(Long longValue)
-
setString
public void setString(String string)
-
-