Class Icon

java.lang.Object
com.jalios.jcms.uicomponent.icon.Icon

public class Icon extends Object
A Pojo representing an icon
Since:
jcms-10.0.7
  • Field Details

  • Constructor Details

  • Method Details

    • getSrc

      public String getSrc()
      Returns:
      the icon src (For jalios:icon tag)
      Since:
      jcms-10.0.7
    • getKey

      public String getKey()
      Returns:
      the icon key has found in properties
      Since:
      jcms-10.0.7
    • getKeywordsPerLang

      public Map<String,String[]> getKeywordsPerLang()
      Returns:
      the map of keywords for all site language
      Since:
      jcms-10.0.7
    • getLabel

      public String getLabel(String lang)
      Returns the icon label by searching for a matching language property (By its key) or by returning the key last word if glp has not been found
      Parameters:
      lang - the language
      Returns:
      the icon label
      Since:
      jcms-10.0.7
    • getKeywords

      public String[] getKeywords(String lang)
      Returns the icon keywords for provided language
      Parameters:
      lang - the language
      Returns:
      and array of keywords
      Since:
      jcms-10.0.7
    • setKeywordsPerLang

      public void setKeywordsPerLang(Map<String,String[]> keywordsPerLang)