Class FormattedNumberViewExtension
java.lang.Object
com.axemble.vdoc.sdk.view.extensions.BaseViewExtension
com.axemble.vdoc.sdk.view.extensions.FormattedNumberViewExtension
- All Implemented Interfaces:
Serializable
Generic view extension to format float, bigdecimal or double number
Configuration :
com.vdoc.behaviors.float.formatter.view-name.column.names=field-name1;field-name2
com.vdoc.behaviors.bigdecimal.formatter.view-name.column.names=field-name1;field-name2
com.vdoc.behaviors.double.formatter.view-name.column.names=field-name1;field-name2
Examples :
com.vdoc.behaviors.float.formatter.TousLesDocumentsEnCours.column.names=floatNumber1;floatNumber2
com.vdoc.behaviors.bigdecimal.formatter.TousLesDocumentsEnCours.column.names=bigdecimalNumber1;bigdecimalNumber2
com.vdoc.behaviors.double.formatter.TousLesDocumentsEnCours.column.names=doubleNumber1;doubleNumber2
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected DecimalFormat
static final String
protected DecimalFormat
protected DecimalFormat
protected boolean
protected boolean
protected boolean
protected boolean
Fields inherited from class com.axemble.vdoc.sdk.view.extensions.BaseViewExtension
LOGGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
This method is called when the extension is available.void
onPrepareItem
(ViewItem viewItem) Methods inherited from class com.axemble.vdoc.sdk.view.extensions.BaseViewExtension
getDirectoryModule, getModel, getPortalModule, getProjectModule, getResource, getResourceController, getSiteModule, getView, getWorkflowInstance, getWorkflowModule, init, onPrepareColumns, onPrepareItemsInternal, onPrepareSQL, onPrepareView, onReady
-
Field Details
-
COLUMN_NAMES
- See Also:
-
first
protected boolean first -
decimalFormat
-
bigDecimalFormat
-
doubleFormat
-
isFormattedFloatProperty
protected boolean isFormattedFloatProperty -
isFormattedBigDecimalProperty
protected boolean isFormattedBigDecimalProperty -
isFormattedDoubleProperty
protected boolean isFormattedDoubleProperty
-
-
Constructor Details
-
FormattedNumberViewExtension
public FormattedNumberViewExtension()
-
-
Method Details
-
init
public void init()Description copied from class:BaseViewExtension
This method is called when the extension is available. It allows initialization of various specific members.- Overrides:
init
in classBaseViewExtension
-
onPrepareItem
- Specified by:
onPrepareItem
in classBaseViewExtension
-