     /**
      *  The UITextField in the title bar that displays the application title.
      */ 
-    public var titleTextField:UITextField;
+    public var titleTextField:IUITextField;
     
     //----------------------------------
     //  window

        
        if (!titleTextField)
        {
            titleTextField = UITextField(createInFontContext(UITextField));
            titleTextField.text = _title;
            titleTextField.styleName = getStyle("titleTextStyleName");
            titleTextField.enabled = true;
            addChild(titleTextField);
        }
 
        if (!titleIconObject && _titleIcon)

    /**
     *  @private
     */     
    private function measureChromeText(textField:IUITextField):Rectangle
    {
        var textWidth:Number = 20;
        var textHeight:Number = 14;
