Class AttributeTypeFormatter

java.lang.Object
com.logicaldoc.gui.frontend.client.metadata.template.AttributeTypeFormatter
All Implemented Interfaces:
com.smartgwt.client.widgets.grid.CellFormatter

public class AttributeTypeFormatter extends Object implements com.smartgwt.client.widgets.grid.CellFormatter
A formatter used to format a grid cell that contains an attribute's type @see GUIAttribute
Since:
8.4.1
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • AttributeTypeFormatter

      public AttributeTypeFormatter()
  • Method Details

    • format

      public String format(Object value, com.smartgwt.client.widgets.grid.ListGridRecord rec, int rowNum, int colNum)
      Specified by:
      format in interface com.smartgwt.client.widgets.grid.CellFormatter
    • format

      public static String format(int type)
      Converts an attribute's type into the human readable label
      Parameters:
      type - the attribute's type
      Returns:
      the table indicating the type using the current locale