org.makumba.list.html
Class booleanViewer

java.lang.Object
  extended by org.makumba.commons.formatters.FieldFormatter
      extended by org.makumba.list.html.FieldViewer
          extended by org.makumba.list.html.booleanViewer

public class booleanViewer
extends FieldViewer

Boolean viewer, that simply displays "Yes" or "No" instead of "true" and "false"
TODO: add possibility to provide other display values than "Yes" or "No"

Version:
$Id: booleanViewer.java,v 1.1 May 11, 2008 9:45:07 PM manu Exp $
Author:
Manuel Gay

Field Summary
(package private) static String[] params
           
(package private) static String[][] paramValues
           
 
Fields inherited from class org.makumba.list.html.FieldViewer
defaultEllipsis
 
Method Summary
 String formatNotNull(RecordFormatter rf, int fieldIndex, Object o, Dictionary<String,Object> formatParams)
          Formats the not-null-object to pure text.
 String[] getAcceptedParams()
           
 String[][] getAcceptedValue()
           
static FieldFormatter getInstance()
           
 
Methods inherited from class org.makumba.list.html.FieldViewer
formatMaxLengthEllipsis
 
Methods inherited from class org.makumba.commons.formatters.FieldFormatter
checkParam, checkParams, equals, format, formatNull, getDefaultValueFormat, getEmptyValueFormat, getExpr, getIntParam, getIntParamString, initExpr, resetValueFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

params

static String[] params

paramValues

static String[][] paramValues
Method Detail

getAcceptedParams

public String[] getAcceptedParams()
Overrides:
getAcceptedParams in class FieldFormatter

getAcceptedValue

public String[][] getAcceptedValue()
Overrides:
getAcceptedValue in class FieldFormatter

getInstance

public static FieldFormatter getInstance()

formatNotNull

public String formatNotNull(RecordFormatter rf,
                            int fieldIndex,
                            Object o,
                            Dictionary<String,Object> formatParams)
Description copied from class: FieldFormatter
Formats the not-null-object to pure text. To be over-ridden by subclasses.

Overrides:
formatNotNull in class FieldFormatter