 import flash.ui.Keyboard;
 import flash.utils.Timer;
 
-import spark.components.supportClasses.SkinnableComponent;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.events.SandboxMouseEvent;
-import spark.components.supportClasses.TextBase;
 import mx.managers.IFocusManagerComponent;
 import mx.utils.StringUtil;
+
+import spark.components.supportClasses.SkinnableComponent;
+import spark.components.supportClasses.TextBase;
 
 use namespace mx_internal;
 

    {
        super.partAdded(partName, instance);
        
        // Push down to the part only if the label was explicitly set
        if (_content !== undefined && instance == labelDisplay)
            labelDisplay.text = label;
    }

    /**

    {
        dispatchEvent(new FlexEvent(FlexEvent.BUTTON_DOWN));
    }
    
    /**
     *  @private
     */
    private function labelDisplay_isTruncatedChangedHandler(event:Event):void
    {
        if (_explicitToolTip)
            return;
        
        var isTruncated:Boolean = labelDisplay.isTruncated;
        
        // If the label is truncated, show the whole label string as a tooltip.
        // We set super.toolTip to avoid setting our own _explicitToolTip.
        super.toolTip = isTruncated ? labelDisplay.text : null;
    }
}

}
