com.logicaldoc.web.util
Class FileSizeConverterKB

java.lang.Object
  extended by com.logicaldoc.web.util.FileSizeConverterKB
All Implemented Interfaces:
javax.faces.convert.Converter

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

This converter automatically detects the proper way to render a file size but always using the KB measure unit

Since:
4.0
Author:
Marco Meschieri - Logical Objects

Constructor Summary
FileSizeConverterKB()
           
 
Method Summary
 java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String arg2)
           
 java.lang.String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSizeConverterKB

public FileSizeConverterKB()
Method Detail

getAsObject

public java.lang.Object getAsObject(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.String arg2)
Specified by:
getAsObject in interface javax.faces.convert.Converter

getAsString

public java.lang.String getAsString(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.Object object)
Specified by:
getAsString in interface javax.faces.convert.Converter


Copyright © 2008-2010 Logical Objects. All Rights Reserved.