2.17.2: 2011-06-17

net.sf.basedb.clients.web.formatter
Class SpotImageFormatter

java.lang.Object
  extended by 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) $

Field Summary
private  DbControl dc
           
private  String ID
           
 String imgClass
           
private  RawDataType rawDataType
           
private  String root
           
 
Constructor Summary
SpotImageFormatter(DbControl dc, RawDataType rawDataType, String root)
           
 
Method Summary
 String format(Integer value)
          Format a value by converting it to a string.
 Integer parseString(String value)
          Not supported.
 void setImgClass(String imgClass)
          Sets the class attribute for the generated <img> tag that displays the spot image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dc

private final DbControl dc

rawDataType

private final RawDataType rawDataType

ID

private final String ID

root

private final String root

imgClass

public String imgClass
Constructor Detail

SpotImageFormatter

public SpotImageFormatter(DbControl dc,
                          RawDataType rawDataType,
                          String root)
Method Detail

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

2.17.2: 2011-06-17