Class 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 Detail

      • AttributeTypeFormatter

        public AttributeTypeFormatter()
    • Method Detail

      • format

        public String format​(Object value,
                             com.smartgwt.client.widgets.grid.ListGridRecord record,
                             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