Class IconFetcher


  • public class IconFetcher
    extends java.lang.Object
    A class to query icons
    Since:
    jcms-10.0.7
    • Field Detail

      • DEFAULT_ICON_SET_PROP_PREFIX

        public static final java.lang.String DEFAULT_ICON_SET_PROP_PREFIX
        See Also:
        Constant Field Values
      • ICON_DEFAULT_SET_PROP

        public static final java.lang.String ICON_DEFAULT_SET_PROP
        See Also:
        Constant Field Values
      • iconPropPrefix

        protected java.lang.String iconPropPrefix
      • search

        protected java.lang.String search
      • userLang

        protected java.lang.String userLang
    • Constructor Detail

      • IconFetcher

        public IconFetcher()
    • Method Detail

      • getIcons

        public java.util.List<Icon> getIcons()
        Return the list of icons filtered by provided filters
        Returns:
        a List of Icon
        Since:
        jcms-10.0.7
      • iconPropPrefix

        public IconFetcher iconPropPrefix​(java.lang.String iconPropPrefix)
        Parameters:
        iconPropPrefix - the property prefix to search matching icons
        Returns:
        the IconFetcher (this)
        Since:
        jcms-10.0.7
      • search

        public IconFetcher search​(java.lang.String search)
        Parameters:
        search - the text to filter on
        Returns:
        the IconFetcher (this)
        Since:
        jcms-10.0.7
      • userLang

        public IconFetcher userLang​(java.lang.String userLang)
        Parameters:
        userLang - the user lang to search on icon keywords per language
        Returns:
        the IconFetcher (this)
        Since:
        jcms-10.0.7