public GTextField()
: base()
{
_textFormat = new TextFormat();
_textFormat.font = UIConfig.defaultFont;
_textFormat.size = 12;
_textFormat.color = Color.black;
_textFormat.lineSpacing = 3;
_textFormat.letterSpacing = 0;
TextFormat tf = _textField.textFormat;
tf.CopyFrom(_textFormat);
_textField.textFormat = tf;
_text = string.Empty;
_autoSize = AutoSizeType.Both;
_widthAutoSize = true;
_heightAutoSize = true;
_textField.autoSize = true;
_textField.wordWrap = false;
gearColor = new GearColor(this);
onFocusIn = new EventListener(this, "onFocusIn");
onFocusOut = new EventListener(this, "onFocusOut");
onChanged = new EventListener(this, "onChanged");
}