Class AbstractTypeAdapter
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
Modifier and TypeFieldDescriptionprotected 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
-
Method Summary
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_WIDTHDeprecated.A magic number for an average character width in pixels.- See Also:
-
BORDER_WIDTH
protected static final int BORDER_WIDTHDeprecated.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 interfaceColumnPropertiesTypeAdapter
-
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 interfaceColumnPropertiesTypeAdapter
-
calcWidth
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.
-