com.jalios.jcms.stat.beautifier
Class BeautifierImage

java.lang.Object
  extended by com.jalios.util.Beautifier
      extended by com.jalios.jcms.stat.beautifier.BeautifierImage
Direct Known Subclasses:
BeautifierBrowser, BeautifierCountry, BeautifierLanguage, BeautifierOS

public class BeautifierImage
extends Beautifier


Field Summary
static String REVISION
           
 
Fields inherited from class com.jalios.util.Beautifier
html, locale, truncate
 
Constructor Summary
BeautifierImage(int truncate)
           
 
Method Summary
 String getImage(String str, String alt)
          Returns an IMG tag for the given image and alt.
 String getLangImage(String lang)
          Returns image for the given lang.
 
Methods inherited from class com.jalios.util.Beautifier
beautify, getHtml, getLocale, setHtml, setLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

BeautifierImage

public BeautifierImage(int truncate)
Method Detail

getImage

public String getImage(String str,
                       String alt)
Returns an IMG tag for the given image and alt. If given file is doesn't exists then return null.

Parameters:
str - the image path
alt - the alt image text
Returns:
String represents IMG tag

getLangImage

public String getLangImage(String lang)
Returns image for the given lang.

Parameters:
lang - the lang to display
Returns:
String represents IMG tag


Copyright © 2001-2010 Jalios SA. All Rights Reserved.