ComponentDecorator, manage a decorator for a component. Creats MCs TextFields for a component. One component's can only manage one decorator MC or TextFiled in one Components by a ComponentDecorator.
static public function removeIconWhenNextPaint(com:Component, icon:Icon):Void
This method add a listener to the component, make to do icon uninstallation at next component painting time, this avoid the icon flicker before paint.
This function usually be used when you changed a icon for a component and then
call repaint
to redraw. But if you call repaintImmediately
to redraw the component, you should not call this method, just call Icon.uninstallIcon
generally.
static public function removeBorderWhenNextPaint(com:Component, border:Border):Void
This method add a listener to the component, make to do border uninstallation at next component painting time, this avoid the border flicker before paint.
This function usually be used when you changed a border for a component and then
call repaint
to redraw. But if you call repaintImmediately
to redraw the component, you should not call this method, just call Border.uninstallBorder
generally.
public function uninstallDecorate(com:Component):Void
This casue to call uninstallDecorateExtra
and
remove decorate mcs created for the component.