Class MulticolorIconFont

java.lang.Object
com.jadice.web.util.icon.client.iconfont.MulticolorIconFont
All Implemented Interfaces:
IconFont

public class MulticolorIconFont extends Object implements IconFont
This class is needed if multicolor icon font glyphs should be displayed. One glyph cannot have more then one color, so these glyphs consist of multi glyph parts where each of them has its own color.
  • Constructor Details

    • MulticolorIconFont

      public MulticolorIconFont(String baseStyleName, String... pathNames)
      Creates a new multicolor icon font consisting of the baseStyleName (eg. jwt-anno-pen) and the names of the sub paths (normally path1, path2,...)
      Parameters:
      baseStyleName - the base style name
      pathNames - the name of the sub paths
  • Method Details

    • getStyleName

      public String getStyleName()
      Description copied from interface: IconFont
      Returns the style name which should be set to the html that should display the icon font.
      Specified by:
      getStyleName in interface IconFont
      Returns:
      the style name
    • getPathNames

      public String[] getPathNames()