net.sf.basedb.clients.web.formatter
Class SpotImageFormatter
java.lang.Object
net.sf.basedb.clients.web.formatter.SpotImageFormatter
- All Implemented Interfaces:
- Formatter<Integer>
public class SpotImageFormatter
- extends Object
- implements Formatter<Integer>
- Version:
- 2.0
- Author:
- nicklas
- Last modified
- $Date: 2009-03-24 13:10:48 +0100 (Tue, 24 Mar 2009) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dc
private final DbControl dc
rawDataType
private final RawDataType rawDataType
ID
private final String ID
root
private final String root
imgClass
public String imgClass
SpotImageFormatter
public SpotImageFormatter(DbControl dc,
RawDataType rawDataType,
String root)
setImgClass
public void setImgClass(String imgClass)
- Sets the class attribute for the generated <img> tag
that displays the spot image. The default value
is "spotimage".
- Since:
- 2.11
format
public String format(Integer value)
- Description copied from interface:
Formatter
- Format a value by converting it to a string.
- Specified by:
format
in interface Formatter<Integer>
- Parameters:
value
- The value to format
- Returns:
- A formatted string
parseString
public Integer parseString(String value)
- Not supported.
- Specified by:
parseString
in interface Formatter<Integer>
- Parameters:
value
- The string to parse
- Returns:
- An object
- Since:
- 2.2