java.lang.Object
ch.tocco.nice2.netui.api.bind.form.facades.columnpropertiestypeadapters.AbstractTypeAdapter
All Implemented Interfaces:
ColumnPropertiesTypeAdapter
Direct Known Subclasses:
BirthdateTypeAdapter, BooleanTypeAdapter, CounterTypeAdapter, DatetimeTypeAdapter, DateTypeAdapter, DurationTypeAdapter, EmailTypeAdapter, IntegerTypeAdapter, IpAddressTypeAdapter, LongTypeAdapter, MoneyAmountTypeAdapter, PasswordTypeAdapter, PercentTypeAdapter, PhoneTypeAdapter, PostcodeTypeAdapter, TimeTypeAdapter, UploadTypeAdapter, UuidTypeAdapter

@Deprecated public abstract class AbstractTypeAdapter extends Object implements ColumnPropertiesTypeAdapter
Deprecated.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final int
    Deprecated.
    Left and right padding, in pixels.
    protected static final int
    Deprecated.
    A magic number for an average character width in pixels.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected int
    calcWidth(String example)
    Deprecated.
     
    boolean
    Deprecated.
    Tells if the width is fixed.
    boolean
    use()
    Deprecated.
    Tells if the type is displayed in a column.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface ch.tocco.nice2.netui.api.bind.form.facades.columnpropertiestypeadapters.ColumnPropertiesTypeAdapter

    getWidth
  • Field Details

    • CHAR_WIDTH

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

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

    • AbstractTypeAdapter

      public AbstractTypeAdapter()
      Deprecated.
  • Method Details

    • use

      public boolean use()
      Deprecated.
      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()
      Deprecated.
      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)
      Deprecated.
      Parameters:
      example - A string in the rendering format, or in one of them. Something that makes sense and large enough for most possible cases.