Class AwesomeFactory

java.lang.Object
com.logicaldoc.gui.common.client.util.AwesomeFactory

public class AwesomeFactory extends Object
Factory of objects that make use of font awesome
Since:
8.0
Author:
Marco Meschieri - LogicalDOC
  • Method Details

    • newToolStripButton

      public static com.smartgwt.client.widgets.toolbar.ToolStripButton newToolStripButton(String icon, String toolTip)
      Creates a ToolStripButton using font-awesome icon
      Parameters:
      icon - the icon file name
      toolTip - the message to display when the user moves the cursor over the button
      Returns:
      the new button
    • newToolStripButton

      public static com.smartgwt.client.widgets.toolbar.ToolStripButton newToolStripButton(String icon, String toolTip, String text)
      Creates a ToolStripButton using font-awesome icon
      Parameters:
      icon - the icon file name
      toolTip - the message to display when the user moves the cursor over the button
      text - title of the button
      Returns:
      the new button
    • newToolStripToolStripMenuButton

      public static com.smartgwt.client.widgets.toolbar.ToolStripMenuButton newToolStripToolStripMenuButton(String icon, String rotation, String title, String toolTip, com.smartgwt.client.widgets.menu.Menu menu)
      Creates a ToolStripButton using font-awesome icon
      Parameters:
      icon - the icon file name
      rotation - rotation specification for the icon
      title - title of the button
      toolTip - the message to display when the user moves the cursor over the button
      menu - the menu to display
      Returns:
      the new button
    • newIconButton

      public static com.smartgwt.client.widgets.Button newIconButton(String icon, String toolTip)
      Creates a ToolStripButton using font-awesome icon useful for small icons (16x16)
      Parameters:
      icon - the icon file name
      toolTip - the message to display when the user moves the cursor over the button
      Returns:
      the new button
    • newColoredIconButton

      public static com.smartgwt.client.widgets.Button newColoredIconButton(String icon, String toolTip, String color)
      Creates a ToolStripButton using font-awesome icon useful for small icons (16x16)
      Parameters:
      icon - the icon file name
      toolTip - the message to display when the user moves the cursor over the button
      color - the color of the icon
      Returns:
      the new button
    • newIconButton

      public static com.smartgwt.client.widgets.Button newIconButton(String icon, String toolTip, String text)
      Creates a ToolStripButton using font-awesome icon useful for small icons (16x16)
      Parameters:
      icon - the icon file name
      toolTip - the message to display when the user moves the cursor over the button
      text - title of the button
      Returns:
      the new button
    • getCssClassPrefix

      public static String getCssClassPrefix()
    • getIconHtml

      public static String getIconHtml(String icon)
    • getSpinnerIconHtml

      public static String getSpinnerIconHtml(String icon, String text)
    • getIconButtonHTML

      public static String getIconButtonHTML(String icon, String text, String tooltip, String color, String url)
    • getIndexedIconButtonHTML

      public static String getIndexedIconButtonHTML(long docId, Integer indexed, String color)
    • getStampedIconButtonHTML

      public static String getStampedIconButtonHTML(long docId, String fileVersion, String tooltip, String color)
    • getSignedIconButtonHTML

      public static String getSignedIconButtonHTML(long docId, String fileName, String tooltip, String color)
    • getLockedButtonHTML

      public static String getLockedButtonHTML(Integer status, String user, String color)
    • getIndexedIcon

      public static String getIndexedIcon(Integer indexed)
    • getIconHtml

      public static String getIconHtml(String icon, String text)
    • getColoredIconHtml

      public static String getColoredIconHtml(String icon, String text, String color)
    • getIconHtml

      public static String getIconHtml(String icon, String rotation, String text)
    • getColoredIconHtmlWithoutI18N

      public static String getColoredIconHtmlWithoutI18N(String icon, String text, String color)