All Implemented Interfaces:
Direct Known Subclasses:
BirthdateTypeAdapter, BooleanTypeAdapter, CounterTypeAdapter, DatetimeTypeAdapter, DateTypeAdapter, DurationTypeAdapter, EmailTypeAdapter, IntegerTypeAdapter, IpAddressTypeAdapter, LongTypeAdapter, MoneyAmountTypeAdapter, PasswordTypeAdapter, PercentTypeAdapter, PhoneTypeAdapter, PostcodeTypeAdapter, TimeTypeAdapter, UploadTypeAdapter, UuidTypeAdapter

public abstract class AbstractTypeAdapter extends Object implements ColumnPropertiesTypeAdapter
  • Field Details


      protected static final int CHAR_WIDTH
      A magic number for an average character width in pixels.
      See Also:

      protected static final int BORDER_WIDTH
      Left and right padding, in pixels.
      See Also:
  • Constructor Details

    • AbstractTypeAdapter

      public AbstractTypeAdapter()
  • Method Details

    • use

      public boolean use()
      Description copied from interface: ColumnPropertiesTypeAdapter
      Tells if the type is displayed in a column. Most are (or may be), few are prohibited completely (eg PasswordMd5).
      Specified by:
      use in interface ColumnPropertiesTypeAdapter
    • isFixed

      public boolean isFixed()
      Description copied from interface: ColumnPropertiesTypeAdapter
      Tells if the width is fixed. Then the cell won't adjust size automatically, nor will it be possible for the user. (ext settings are kinda limited for now for the grid, they plan to enhance it.)
      Specified by:
      isFixed in interface ColumnPropertiesTypeAdapter
    • calcWidth

      protected int calcWidth(String example)
      example - A string in the rendering format, or in one of them. Something that makes sense and large enough for most possible cases.