This view is used just for fields with type `Integer` and `Float`. Use `else` instead  `else if (this.isIntegerField() || this.isFloatField())`.  Also, `isFloatField` is redundant and can be removed.