Class BasicIconFont

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

public class BasicIconFont extends Object implements IconFont
A variable IconFont implementation. This class needs only the whole style class definition and returns it when calling getStyleName().
  • Constructor Details

    • BasicIconFont

      public BasicIconFont(String styleClass)
      Creates a new BasicIconFont with the given style class.

      If for example the default jadice editor-stroke icon should be displayed use "jad-editor-stroke". "jad-" should be added to all default jadice icons otherwise they wont be displayed. This differs when a different icon font is used.

      Parameters:
      styleClass - the style class for the icon font glyph
  • 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