Save This Page
Home » tomahawk-1.1.6-src » org.apache.myfaces » custom » convertboolean » [javadoc | source]
org.apache.myfaces.custom.convertboolean
public class: BooleanConverter [javadoc | source]
java.lang.Object
   org.apache.myfaces.custom.convertboolean.BooleanConverter

All Implemented Interfaces:
    javax.faces.component.StateHolder, javax.faces.convert.Converter

Converter that translates between boolean values (true/false) and alternate versions of those boolean values like (yes/no), (1/0), and (way/no way).

To customize the representation of a boolean true and false, use #setTrueValue(String) and #setFalseValue(String) respectively. If not configured with these setter methods, it defaults to true and false.

The values are case sensitive.

Field Summary
public static final  String CONVERTER_ID     
Constructor:
 public BooleanConverter() 
Method from org.apache.myfaces.custom.convertboolean.BooleanConverter Summary:
getAsObject,   getAsString,   getFalseValue,   getTrueValue,   isTransient,   restoreState,   saveState,   setFalseValue,   setTransient,   setTrueValue
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.myfaces.custom.convertboolean.BooleanConverter Detail:
 public Object getAsObject(FacesContext facesContext,
    UIComponent uiComponent,
    String value) throws ConverterException 
 public String getAsString(FacesContext facesContext,
    UIComponent uiComponent,
    Object value) throws ConverterException 
 public String getFalseValue() 
 public String getTrueValue() 
 public boolean isTransient() 
 public  void restoreState(FacesContext context,
    Object state) 
 public Object saveState(FacesContext context) 
 public  void setFalseValue(String falseValue) 
 public  void setTransient(boolean newTransientValue) 
 public  void setTrueValue(String trueValue)