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 SummaryFieldsModifier and TypeFieldDescriptionprotected DecimalFormatstatic final Stringprotected DecimalFormatprotected DecimalFormatprotected booleanprotected booleanprotected booleanprotected booleanFields inherited from class com.axemble.vdoc.sdk.view.extensions.BaseViewExtensionLOGGER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidinit()This method is called when the extension is available.voidonPrepareItem(ViewItem viewItem) Methods inherited from class com.axemble.vdoc.sdk.view.extensions.BaseViewExtensiongetDirectoryModule, getModel, getPortalModule, getProjectModule, getResource, getResourceController, getSiteModule, getView, getWorkflowInstance, getWorkflowModule, init, onPrepareColumns, onPrepareItemsInternal, onPrepareSQL, onPrepareView, onReady
- 
Field Details- 
COLUMN_NAMES- See Also:
 
- 
firstprotected boolean first
- 
decimalFormat
- 
bigDecimalFormat
- 
doubleFormat
- 
isFormattedFloatPropertyprotected boolean isFormattedFloatProperty
- 
isFormattedBigDecimalPropertyprotected boolean isFormattedBigDecimalProperty
- 
isFormattedDoublePropertyprotected boolean isFormattedDoubleProperty
 
- 
- 
Constructor Details- 
FormattedNumberViewExtensionpublic FormattedNumberViewExtension()
 
- 
- 
Method Details- 
initpublic void init()Description copied from class:BaseViewExtensionThis method is called when the extension is available. It allows initialization of various specific members.- Overrides:
- initin class- BaseViewExtension
 
- 
onPrepareItem- Specified by:
- onPrepareItemin class- BaseViewExtension
 
 
-