Subclassed and implemented number formatter to restrict text fields to numeric input.