home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / filler.swf / scripts / mx / core / UITextField.as < prev    next >
Encoding:
Text File  |  2008-09-02  |  23.2 KB  |  864 lines

  1. package mx.core
  2. {
  3.    import flash.display.DisplayObject;
  4.    import flash.display.DisplayObjectContainer;
  5.    import flash.display.Sprite;
  6.    import flash.events.Event;
  7.    import flash.system.ApplicationDomain;
  8.    import flash.text.TextFormat;
  9.    import flash.text.TextLineMetrics;
  10.    import flash.utils.getQualifiedClassName;
  11.    import mx.automation.IAutomationObject;
  12.    import mx.managers.ISystemManager;
  13.    import mx.managers.IToolTipManagerClient;
  14.    import mx.managers.SystemManager;
  15.    import mx.managers.ToolTipManager;
  16.    import mx.resources.ResourceBundle;
  17.    import mx.styles.ISimpleStyleClient;
  18.    import mx.styles.IStyleClient;
  19.    import mx.styles.StyleManager;
  20.    import mx.styles.StyleProtoChain;
  21.    import mx.utils.StringUtil;
  22.    
  23.    use namespace mx_internal;
  24.    
  25.    public class UITextField extends FlexTextField implements IAutomationObject, IIMESupport, IFlexModule, IInvalidating, ISimpleStyleClient, IToolTipManagerClient, IUIComponent
  26.    {
  27.       
  28.       private static var packageResources:ResourceBundle = ResourceBundle.getResourceBundle("core",ApplicationDomain.currentDomain);
  29.       
  30.       mx_internal static const VERSION:String = "2.0.1.0";
  31.       
  32.       mx_internal static const TEXT_HEIGHT_PADDING:int = 4;
  33.       
  34.       mx_internal static const TEXT_WIDTH_PADDING:int = 5;
  35.       
  36.       private static var resourceTruncationIndicator:String;
  37.       
  38.       {
  39.          loadResources();
  40.       }
  41.       
  42.       private var _initialized:Boolean = false;
  43.       
  44.       private var invalidateDisplayListFlag:Boolean = true;
  45.       
  46.       mx_internal var explicitColor:uint = 4294967295;
  47.       
  48.       private var _processedDescriptors:Boolean = true;
  49.       
  50.       private var explicitHTMLText:String = null;
  51.       
  52.       private var _owner:DisplayObjectContainer;
  53.       
  54.       mx_internal var _parent:DisplayObjectContainer;
  55.       
  56.       mx_internal var styleChangedFlag:Boolean = true;
  57.       
  58.       private var _explicitWidth:Number;
  59.       
  60.       private var _enabled:Boolean = true;
  61.       
  62.       private var cachedTextFormat:TextFormat;
  63.       
  64.       private var _automationDelegate:IAutomationObject;
  65.       
  66.       private var _automationName:String;
  67.       
  68.       private var _document:Object;
  69.       
  70.       private var _styleName:Object;
  71.       
  72.       private var _nestLevel:int = 0;
  73.       
  74.       private var _explicitHeight:Number;
  75.       
  76.       private var _toolTip:String;
  77.       
  78.       private var _nonInheritingStyles:Object;
  79.       
  80.       private var _moduleFactory:IFlexModuleFactory;
  81.       
  82.       private var _inheritingStyles:Object;
  83.       
  84.       private var _includeInLayout:Boolean = true;
  85.       
  86.       private var _updateCompletePendingFlag:Boolean = false;
  87.       
  88.       private var _imeMode:String = null;
  89.       
  90.       private var _ignorePadding:Boolean = true;
  91.       
  92.       public function UITextField()
  93.       {
  94.          invalidateDisplayListFlag = true;
  95.          mx_internal::styleChangedFlag = true;
  96.          explicitHTMLText = null;
  97.          mx_internal::explicitColor = StyleManager.NOT_A_COLOR;
  98.          _enabled = true;
  99.          _ignorePadding = true;
  100.          _imeMode = null;
  101.          _includeInLayout = true;
  102.          _inheritingStyles = UIComponent.mx_internal::STYLE_UNINITIALIZED;
  103.          _initialized = false;
  104.          _nestLevel = 0;
  105.          _nonInheritingStyles = UIComponent.mx_internal::STYLE_UNINITIALIZED;
  106.          _processedDescriptors = true;
  107.          _updateCompletePendingFlag = false;
  108.          super();
  109.          focusRect = false;
  110.          selectable = false;
  111.          tabEnabled = false;
  112.          addEventListener(Event.CHANGE,changeHandler);
  113.          addEventListener("textFieldStyleChange",textFieldStyleChangeHandler);
  114.       }
  115.       
  116.       private static function loadResources() : void
  117.       {
  118.          resourceTruncationIndicator = packageResources.getString("truncationIndicator");
  119.       }
  120.       
  121.       public function get nestLevel() : int
  122.       {
  123.          return _nestLevel;
  124.       }
  125.       
  126.       public function set nestLevel(param1:int) : void
  127.       {
  128.          if(param1 > 1 && _nestLevel != param1)
  129.          {
  130.             _nestLevel = param1;
  131.             StyleProtoChain.initTextField(this);
  132.             mx_internal::styleChangedFlag = true;
  133.             validateNow();
  134.          }
  135.       }
  136.       
  137.       public function getExplicitOrMeasuredHeight() : Number
  138.       {
  139.          return !isNaN(explicitHeight) ? explicitHeight : measuredHeight;
  140.       }
  141.       
  142.       public function get className() : String
  143.       {
  144.          var _loc1_:String = null;
  145.          var _loc2_:int = 0;
  146.          _loc1_ = getQualifiedClassName(this);
  147.          _loc2_ = _loc1_.indexOf("::");
  148.          if(_loc2_ != -1)
  149.          {
  150.             _loc1_ = _loc1_.substr(_loc2_ + 2);
  151.          }
  152.          return _loc1_;
  153.       }
  154.       
  155.       public function setColor(param1:uint) : void
  156.       {
  157.          mx_internal::explicitColor = param1;
  158.          mx_internal::styleChangedFlag = true;
  159.          invalidateDisplayListFlag = true;
  160.          validateNow();
  161.       }
  162.       
  163.       public function get automationName() : String
  164.       {
  165.          if(_automationName)
  166.          {
  167.             return _automationName;
  168.          }
  169.          if(automationDelegate)
  170.          {
  171.             return automationDelegate.automationName;
  172.          }
  173.          return "";
  174.       }
  175.       
  176.       private function creatingSystemManager() : ISystemManager
  177.       {
  178.          return moduleFactory != null && moduleFactory is ISystemManager ? ISystemManager(moduleFactory) : systemManager;
  179.       }
  180.       
  181.       public function set tweeningProperties(param1:Array) : void
  182.       {
  183.       }
  184.       
  185.       public function invalidateDisplayList() : void
  186.       {
  187.          invalidateDisplayListFlag = true;
  188.       }
  189.       
  190.       public function get focusPane() : Sprite
  191.       {
  192.          return null;
  193.       }
  194.       
  195.       public function getExplicitOrMeasuredWidth() : Number
  196.       {
  197.          return !isNaN(explicitWidth) ? explicitWidth : measuredWidth;
  198.       }
  199.       
  200.       public function getTextStyles() : TextFormat
  201.       {
  202.          var _loc1_:TextFormat = null;
  203.          _loc1_ = new TextFormat();
  204.          _loc1_.align = getStyle("textAlign");
  205.          _loc1_.bold = getStyle("fontWeight") == "bold";
  206.          if(enabled)
  207.          {
  208.             if(mx_internal::explicitColor == StyleManager.NOT_A_COLOR)
  209.             {
  210.                _loc1_.color = getStyle("color");
  211.             }
  212.             else
  213.             {
  214.                _loc1_.color = mx_internal::explicitColor;
  215.             }
  216.          }
  217.          else
  218.          {
  219.             _loc1_.color = getStyle("disabledColor");
  220.          }
  221.          _loc1_.font = StringUtil.trimArrayElements(getStyle("fontFamily"),",");
  222.          _loc1_.indent = getStyle("textIndent");
  223.          _loc1_.italic = getStyle("fontStyle") == "italic";
  224.          _loc1_.kerning = getStyle("kerning");
  225.          _loc1_.leading = getStyle("leading");
  226.          _loc1_.leftMargin = ignorePadding ? 0 : getStyle("paddingLeft");
  227.          _loc1_.letterSpacing = getStyle("letterSpacing");
  228.          _loc1_.rightMargin = ignorePadding ? 0 : getStyle("paddingRight");
  229.          _loc1_.size = getStyle("fontSize");
  230.          _loc1_.underline = getStyle("textDecoration") == "underline";
  231.          cachedTextFormat = _loc1_;
  232.          return _loc1_;
  233.       }
  234.       
  235.       public function get explicitHeight() : Number
  236.       {
  237.          return _explicitHeight;
  238.       }
  239.       
  240.       public function set automationName(param1:String) : void
  241.       {
  242.          _automationName = param1;
  243.       }
  244.       
  245.       public function get percentWidth() : Number
  246.       {
  247.          return NaN;
  248.       }
  249.       
  250.       public function createAutomationIDPart(param1:IAutomationObject) : Object
  251.       {
  252.          return null;
  253.       }
  254.       
  255.       override public function get parent() : DisplayObjectContainer
  256.       {
  257.          return !!mx_internal::_parent ? mx_internal::_parent : super.parent;
  258.       }
  259.       
  260.       public function setActualSize(param1:Number, param2:Number) : void
  261.       {
  262.          if(width != param1)
  263.          {
  264.             width = param1;
  265.          }
  266.          if(height != param2)
  267.          {
  268.             height = param2;
  269.          }
  270.       }
  271.       
  272.       public function set focusPane(param1:Sprite) : void
  273.       {
  274.       }
  275.       
  276.       public function getAutomationChildAt(param1:int) : IAutomationObject
  277.       {
  278.          return null;
  279.       }
  280.       
  281.       public function get inheritingStyles() : Object
  282.       {
  283.          return _inheritingStyles;
  284.       }
  285.       
  286.       public function invalidateProperties() : void
  287.       {
  288.       }
  289.       
  290.       public function get explicitMinWidth() : Number
  291.       {
  292.          return NaN;
  293.       }
  294.       
  295.       public function set explicitHeight(param1:Number) : void
  296.       {
  297.          _explicitHeight = param1;
  298.       }
  299.       
  300.       public function set showInAutomationHierarchy(param1:Boolean) : void
  301.       {
  302.       }
  303.       
  304.       public function set systemManager(param1:ISystemManager) : void
  305.       {
  306.       }
  307.       
  308.       public function get moduleFactory() : IFlexModuleFactory
  309.       {
  310.          return _moduleFactory;
  311.       }
  312.       
  313.       public function set percentWidth(param1:Number) : void
  314.       {
  315.       }
  316.       
  317.       public function get imeMode() : String
  318.       {
  319.          return _imeMode;
  320.       }
  321.       
  322.       public function get document() : Object
  323.       {
  324.          return _document;
  325.       }
  326.       
  327.       public function get explicitMaxWidth() : Number
  328.       {
  329.          return NaN;
  330.       }
  331.       
  332.       public function replayAutomatableEvent(param1:Event) : Boolean
  333.       {
  334.          if(automationDelegate)
  335.          {
  336.             return automationDelegate.replayAutomatableEvent(param1);
  337.          }
  338.          return false;
  339.       }
  340.       
  341.       public function set owner(param1:DisplayObjectContainer) : void
  342.       {
  343.          _owner = param1;
  344.       }
  345.       
  346.       public function set processedDescriptors(param1:Boolean) : void
  347.       {
  348.          _processedDescriptors = param1;
  349.       }
  350.       
  351.       public function get includeInLayout() : Boolean
  352.       {
  353.          return _includeInLayout;
  354.       }
  355.       
  356.       private function changeHandler(param1:Event) : void
  357.       {
  358.          explicitHTMLText = null;
  359.       }
  360.       
  361.       override public function setTextFormat(param1:TextFormat, param2:int = -1, param3:int = -1) : void
  362.       {
  363.          if(styleSheet)
  364.          {
  365.             return;
  366.          }
  367.          super.setTextFormat(param1,param2,param3);
  368.          dispatchEvent(new Event("textFormatChange"));
  369.       }
  370.       
  371.       public function resolveAutomationIDPart(param1:Object) : Array
  372.       {
  373.          return [];
  374.       }
  375.       
  376.       public function set inheritingStyles(param1:Object) : void
  377.       {
  378.          _inheritingStyles = param1;
  379.       }
  380.       
  381.       public function setFocus() : void
  382.       {
  383.          systemManager.stage.focus = this;
  384.       }
  385.       
  386.       public function set initialized(param1:Boolean) : void
  387.       {
  388.          _initialized = param1;
  389.       }
  390.       
  391.       public function owns(param1:DisplayObject) : Boolean
  392.       {
  393.          return param1 == this;
  394.       }
  395.       
  396.       public function setVisible(param1:Boolean, param2:Boolean = false) : void
  397.       {
  398.          this.visible = param1;
  399.       }
  400.       
  401.       public function get nonInheritingStyles() : Object
  402.       {
  403.          return _nonInheritingStyles;
  404.       }
  405.       
  406.       public function get isPopUp() : Boolean
  407.       {
  408.          return false;
  409.       }
  410.       
  411.       public function get percentHeight() : Number
  412.       {
  413.          return NaN;
  414.       }
  415.       
  416.       public function truncateToFit(param1:String = null) : Boolean
  417.       {
  418.          var _loc2_:String = null;
  419.          var _loc3_:Number = NaN;
  420.          var _loc4_:String = null;
  421.          if(!param1)
  422.          {
  423.             param1 = resourceTruncationIndicator;
  424.          }
  425.          validateNow();
  426.          _loc2_ = super.text;
  427.          _loc3_ = width;
  428.          if(_loc2_ != "" && textWidth + mx_internal::TEXT_WIDTH_PADDING > _loc3_)
  429.          {
  430.             _loc4_ = super.text = _loc2_;
  431.             _loc2_.slice(0,Math.floor(_loc3_ / (textWidth + mx_internal::TEXT_WIDTH_PADDING) * _loc2_.length));
  432.             while(_loc4_.length > 1 && textWidth + mx_internal::TEXT_WIDTH_PADDING > _loc3_)
  433.             {
  434.                _loc4_ = _loc4_.slice(0,-1);
  435.                super.text = _loc4_ + param1;
  436.             }
  437.             return true;
  438.          }
  439.          return false;
  440.       }
  441.       
  442.       public function validateNow() : void
  443.       {
  444.          var _loc1_:TextFormat = null;
  445.          var _loc2_:ISystemManager = null;
  446.          if(!parent)
  447.          {
  448.             return;
  449.          }
  450.          if(!isNaN(explicitWidth) && super.width != explicitWidth)
  451.          {
  452.             super.width = explicitWidth > 4 ? explicitWidth : 4;
  453.          }
  454.          if(!isNaN(explicitHeight) && super.height != explicitHeight)
  455.          {
  456.             super.height = explicitHeight;
  457.          }
  458.          if(mx_internal::styleChangedFlag)
  459.          {
  460.             _loc1_ = getTextStyles();
  461.             _loc2_ = creatingSystemManager();
  462.             embedFonts = !!_loc1_.font ? _loc2_ != null && _loc2_.isFontFaceEmbedded(_loc1_) : getStyle("embedFonts");
  463.             antiAliasType = getStyle("fontAntiAliasType");
  464.             gridFitType = getStyle("fontGridFitType");
  465.             sharpness = getStyle("fontSharpness");
  466.             thickness = getStyle("fontThickness");
  467.             if(!styleSheet)
  468.             {
  469.                super.setTextFormat(_loc1_);
  470.                defaultTextFormat = _loc1_;
  471.             }
  472.             dispatchEvent(new Event("textFieldStyleChange"));
  473.          }
  474.          mx_internal::styleChangedFlag = false;
  475.          invalidateDisplayListFlag = false;
  476.       }
  477.       
  478.       public function get ignorePadding() : Boolean
  479.       {
  480.          return _ignorePadding;
  481.       }
  482.       
  483.       public function get automationTabularData() : Object
  484.       {
  485.          return null;
  486.       }
  487.       
  488.       private function textFieldStyleChangeHandler(param1:Event) : void
  489.       {
  490.          if(explicitHTMLText != null)
  491.          {
  492.             super.htmlText = explicitHTMLText;
  493.          }
  494.       }
  495.       
  496.       public function set moduleFactory(param1:IFlexModuleFactory) : void
  497.       {
  498.          _moduleFactory = param1;
  499.       }
  500.       
  501.       public function set imeMode(param1:String) : void
  502.       {
  503.          _imeMode = param1;
  504.       }
  505.       
  506.       public function get measuredMinHeight() : Number
  507.       {
  508.          return 0;
  509.       }
  510.       
  511.       public function get minHeight() : Number
  512.       {
  513.          return 0;
  514.       }
  515.       
  516.       public function get tweeningProperties() : Array
  517.       {
  518.          return null;
  519.       }
  520.       
  521.       public function set document(param1:Object) : void
  522.       {
  523.          _document = param1;
  524.       }
  525.       
  526.       public function set updateCompletePendingFlag(param1:Boolean) : void
  527.       {
  528.          _updateCompletePendingFlag = param1;
  529.       }
  530.       
  531.       public function get explicitMinHeight() : Number
  532.       {
  533.          return NaN;
  534.       }
  535.       
  536.       override public function set text(param1:String) : void
  537.       {
  538.          if(!param1)
  539.          {
  540.             param1 = "";
  541.          }
  542.          if(!isHTML && super.text == param1)
  543.          {
  544.             return;
  545.          }
  546.          super.text = param1;
  547.          explicitHTMLText = null;
  548.          if(invalidateDisplayListFlag)
  549.          {
  550.             validateNow();
  551.          }
  552.       }
  553.       
  554.       public function get numAutomationChildren() : int
  555.       {
  556.          return 0;
  557.       }
  558.       
  559.       public function setStyle(param1:String, param2:*) : void
  560.       {
  561.       }
  562.       
  563.       public function get showInAutomationHierarchy() : Boolean
  564.       {
  565.          return true;
  566.       }
  567.       
  568.       public function get systemManager() : ISystemManager
  569.       {
  570.          var _loc1_:DisplayObject = null;
  571.          var _loc2_:IUIComponent = null;
  572.          _loc1_ = parent;
  573.          while(_loc1_)
  574.          {
  575.             _loc2_ = _loc1_ as IUIComponent;
  576.             if(_loc2_)
  577.             {
  578.                return _loc2_.systemManager;
  579.             }
  580.             _loc1_ = _loc1_.parent;
  581.          }
  582.          return null;
  583.       }
  584.       
  585.       public function get baselinePosition() : Number
  586.       {
  587.          var _loc1_:TextLineMetrics = null;
  588.          _loc1_ = getLineMetrics(0);
  589.          return height - 4 - _loc1_.descent;
  590.       }
  591.       
  592.       public function set enabled(param1:Boolean) : void
  593.       {
  594.          mouseEnabled = param1;
  595.          _enabled = param1;
  596.          styleChanged("color");
  597.       }
  598.       
  599.       public function get minWidth() : Number
  600.       {
  601.          return 0;
  602.       }
  603.       
  604.       public function get automationValue() : Array
  605.       {
  606.          if(automationDelegate)
  607.          {
  608.             return automationDelegate.automationValue;
  609.          }
  610.          return [""];
  611.       }
  612.       
  613.       public function get measuredWidth() : Number
  614.       {
  615.          validateNow();
  616.          return textWidth + mx_internal::TEXT_WIDTH_PADDING;
  617.       }
  618.       
  619.       public function parentChanged(param1:DisplayObjectContainer) : void
  620.       {
  621.          if(!param1)
  622.          {
  623.             mx_internal::_parent = null;
  624.             _nestLevel = 0;
  625.          }
  626.          else if(param1 is IStyleClient)
  627.          {
  628.             mx_internal::_parent = param1;
  629.          }
  630.          else if(param1 is SystemManager)
  631.          {
  632.             mx_internal::_parent = param1;
  633.          }
  634.          else
  635.          {
  636.             mx_internal::_parent = param1.parent;
  637.          }
  638.       }
  639.       
  640.       public function get processedDescriptors() : Boolean
  641.       {
  642.          return _processedDescriptors;
  643.       }
  644.       
  645.       public function get owner() : DisplayObjectContainer
  646.       {
  647.          return !!_owner ? _owner : parent;
  648.       }
  649.       
  650.       public function get maxWidth() : Number
  651.       {
  652.          return UIComponent.DEFAULT_MAX_WIDTH;
  653.       }
  654.       
  655.       public function get initialized() : Boolean
  656.       {
  657.          return _initialized;
  658.       }
  659.       
  660.       public function set includeInLayout(param1:Boolean) : void
  661.       {
  662.          var _loc2_:IInvalidating = null;
  663.          if(_includeInLayout != param1)
  664.          {
  665.             _includeInLayout = param1;
  666.             _loc2_ = parent as IInvalidating;
  667.             if(_loc2_)
  668.             {
  669.                _loc2_.invalidateSize();
  670.                _loc2_.invalidateDisplayList();
  671.             }
  672.          }
  673.       }
  674.       
  675.       override public function set htmlText(param1:String) : void
  676.       {
  677.          if(!param1)
  678.          {
  679.             param1 = "";
  680.          }
  681.          if(isHTML && super.htmlText == param1)
  682.          {
  683.             return;
  684.          }
  685.          if(Boolean(cachedTextFormat) && styleSheet == null)
  686.          {
  687.             defaultTextFormat = cachedTextFormat;
  688.          }
  689.          super.htmlText = param1;
  690.          explicitHTMLText = param1;
  691.          if(invalidateDisplayListFlag)
  692.          {
  693.             validateNow();
  694.          }
  695.       }
  696.       
  697.       public function set measuredMinWidth(param1:Number) : void
  698.       {
  699.       }
  700.       
  701.       public function get updateCompletePendingFlag() : Boolean
  702.       {
  703.          return _updateCompletePendingFlag;
  704.       }
  705.       
  706.       public function get enabled() : Boolean
  707.       {
  708.          return _enabled;
  709.       }
  710.       
  711.       public function set nonInheritingStyles(param1:Object) : void
  712.       {
  713.          _nonInheritingStyles = param1;
  714.       }
  715.       
  716.       public function set automationDelegate(param1:Object) : void
  717.       {
  718.          _automationDelegate = param1 as IAutomationObject;
  719.       }
  720.       
  721.       public function get measuredMinWidth() : Number
  722.       {
  723.          return 0;
  724.       }
  725.       
  726.       public function set isPopUp(param1:Boolean) : void
  727.       {
  728.       }
  729.       
  730.       public function get measuredHeight() : Number
  731.       {
  732.          validateNow();
  733.          return textHeight + mx_internal::TEXT_HEIGHT_PADDING;
  734.       }
  735.       
  736.       public function getUITextFormat() : UITextFormat
  737.       {
  738.          var _loc1_:UITextFormat = null;
  739.          validateNow();
  740.          _loc1_ = new UITextFormat(creatingSystemManager());
  741.          _loc1_.mx_internal::copyFrom(getTextFormat());
  742.          _loc1_.antiAliasType = antiAliasType;
  743.          _loc1_.gridFitType = gridFitType;
  744.          _loc1_.sharpness = sharpness;
  745.          _loc1_.thickness = thickness;
  746.          return _loc1_;
  747.       }
  748.       
  749.       public function initialize() : void
  750.       {
  751.       }
  752.       
  753.       public function set percentHeight(param1:Number) : void
  754.       {
  755.       }
  756.       
  757.       public function get maxHeight() : Number
  758.       {
  759.          return UIComponent.DEFAULT_MAX_HEIGHT;
  760.       }
  761.       
  762.       public function set styleName(param1:Object) : void
  763.       {
  764.          if(_styleName === param1)
  765.          {
  766.             return;
  767.          }
  768.          _styleName = param1;
  769.          if(parent)
  770.          {
  771.             StyleProtoChain.initTextField(this);
  772.             styleChanged("styleName");
  773.          }
  774.       }
  775.       
  776.       public function get automationDelegate() : Object
  777.       {
  778.          return _automationDelegate;
  779.       }
  780.       
  781.       public function set ignorePadding(param1:Boolean) : void
  782.       {
  783.          _ignorePadding = param1;
  784.          styleChanged(null);
  785.       }
  786.       
  787.       public function set toolTip(param1:String) : void
  788.       {
  789.          ToolTipManager.mx_internal::registerToolTip(this,param1);
  790.          _toolTip = param1;
  791.       }
  792.       
  793.       public function styleChanged(param1:String) : void
  794.       {
  795.          mx_internal::styleChangedFlag = true;
  796.          if(!invalidateDisplayListFlag)
  797.          {
  798.             invalidateDisplayListFlag = true;
  799.             UIComponent(parent).callLater(validateNow);
  800.          }
  801.       }
  802.       
  803.       private function get isHTML() : Boolean
  804.       {
  805.          return explicitHTMLText != null;
  806.       }
  807.       
  808.       public function get explicitMaxHeight() : Number
  809.       {
  810.          return NaN;
  811.       }
  812.       
  813.       public function invalidateSize() : void
  814.       {
  815.          invalidateDisplayListFlag = true;
  816.       }
  817.       
  818.       public function set explicitWidth(param1:Number) : void
  819.       {
  820.          _explicitWidth = param1;
  821.       }
  822.       
  823.       public function move(param1:Number, param2:Number) : void
  824.       {
  825.          if(this.x != param1)
  826.          {
  827.             this.x = param1;
  828.          }
  829.          if(this.y != param2)
  830.          {
  831.             this.y = param2;
  832.          }
  833.       }
  834.       
  835.       public function get toolTip() : String
  836.       {
  837.          return _toolTip;
  838.       }
  839.       
  840.       public function set measuredMinHeight(param1:Number) : void
  841.       {
  842.       }
  843.       
  844.       public function get explicitWidth() : Number
  845.       {
  846.          return _explicitWidth;
  847.       }
  848.       
  849.       public function getStyle(param1:String) : *
  850.       {
  851.          if(StyleManager.mx_internal::inheritingStyles[param1])
  852.          {
  853.             return !!inheritingStyles ? inheritingStyles[param1] : IStyleClient(parent).getStyle(param1);
  854.          }
  855.          return !!nonInheritingStyles ? nonInheritingStyles[param1] : IStyleClient(parent).getStyle(param1);
  856.       }
  857.       
  858.       public function get styleName() : Object
  859.       {
  860.          return _styleName;
  861.       }
  862.    }
  863. }
  864.