org.alfresco.web.ui.common.converter
Class BooleanLabelConverter

java.lang.Object
  extended by org.alfresco.web.ui.common.converter.BooleanLabelConverter
All Implemented Interfaces:
javax.faces.convert.Converter

public class BooleanLabelConverter
extends java.lang.Object
implements javax.faces.convert.Converter

Converter class to convert a Boolean value (including null) into a human readable form.


Field Summary
static java.lang.String CONVERTER_ID
          The standard converter id for this converter.
 
Constructor Summary
BooleanLabelConverter()
           
 
Method Summary
 java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value)
           
 java.lang.String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONVERTER_ID

public static final java.lang.String CONVERTER_ID

The standard converter id for this converter.

See Also:
Constant Field Values
Constructor Detail

BooleanLabelConverter

public BooleanLabelConverter()
Method Detail

getAsObject

public java.lang.Object getAsObject(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.String value)
                             throws javax.faces.convert.ConverterException
Specified by:
getAsObject in interface javax.faces.convert.Converter
Throws:
javax.faces.convert.ConverterException
See Also:
Converter.getAsObject(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.String)

getAsString

public java.lang.String getAsString(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.Object value)
                             throws javax.faces.convert.ConverterException
Specified by:
getAsString in interface javax.faces.convert.Converter
Throws:
javax.faces.convert.ConverterException
See Also:
Converter.getAsString(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.