lazyj.page.tags
Class Checked

java.lang.Object
  extended by lazyj.page.tags.Checked
All Implemented Interfaces:
StringFormat

public final class Checked
extends java.lang.Object
implements StringFormat

checked returns "checked" when the value, as integer, is > 0. Great for quick building of forms with checkboxes that have integers behind them in the database.

Since:
2006-10-13
Author:
costing

Constructor Summary
Checked()
           
 
Method Summary
 java.lang.String format(java.lang.String sTag, java.lang.String sOption, java.lang.String s)
          If the integer value of this string is positive, return the string "checked", otherwise ""
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Checked

public Checked()
Method Detail

format

public java.lang.String format(java.lang.String sTag,
                               java.lang.String sOption,
                               java.lang.String s)
If the integer value of this string is positive, return the string "checked", otherwise ""

Specified by:
format in interface StringFormat
Parameters:
sTag - tag name, ignored
sOption - option ("check"), ignored
s - string to format
Returns:
"checked" or "", depending on the integer value of the string.