 	public class TextInput extends mx.controls.TextInput {
 		
 		private var _restrictPattern:String;
+		private var _upperCase:Boolean = true;
 		
 		public function TextInput() {
 			super();
 			minWidth = 0;
 			addEventListener(TextEvent.TEXT_INPUT, textInputHandler);
+			addEventListener(Event.CHANGE, changeHandler);
 		}
 		
 		public function selectAll():void {

package org.openforis.collect.ui.component.input {
	import flash.events.TextEvent;
	
	import mx.controls.TextInput;

			}
		}
		
		protected function changeHandler(event:Event):void {
			if(upperCase) {
				text = text.toUpperCase();
			}
		}
		
		public function get restrictPattern():String {
			return _restrictPattern;
		}
