Package com.jalios.jcms.uicomponent.icon
Class Icon
- java.lang.Object
-
- com.jalios.jcms.uicomponent.icon.Icon
-
public class Icon extends java.lang.Object
A Pojo representing an icon- Since:
- jcms-10.0.7
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
key
protected java.util.Map<java.lang.String,java.lang.String[]>
keywordsPerLang
protected java.lang.String
src
-
Constructor Summary
Constructors Constructor Description Icon(java.lang.String src, java.lang.String key, java.util.Map<java.lang.String,java.lang.String[]> keywordsPerLang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getKey()
java.lang.String[]
getKeywords(java.lang.String lang)
Returns the icon keywords for provided languagejava.util.Map<java.lang.String,java.lang.String[]>
getKeywordsPerLang()
java.lang.String
getLabel(java.lang.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 foundjava.lang.String
getSrc()
void
setKeywordsPerLang(java.util.Map<java.lang.String,java.lang.String[]> keywordsPerLang)
-
-
-
Method Detail
-
getSrc
public java.lang.String getSrc()
- Returns:
- the icon src (For jalios:icon tag)
- Since:
- jcms-10.0.7
-
getKey
public java.lang.String getKey()
- Returns:
- the icon key has found in properties
- Since:
- jcms-10.0.7
-
getKeywordsPerLang
public java.util.Map<java.lang.String,java.lang.String[]> getKeywordsPerLang()
- Returns:
- the map of keywords for all site language
- Since:
- jcms-10.0.7
-
getLabel
public java.lang.String getLabel(java.lang.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 java.lang.String[] getKeywords(java.lang.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(java.util.Map<java.lang.String,java.lang.String[]> keywordsPerLang)
-
-