Class org.aswing.ComponentDecorator

Description

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.

Field Index

creater

Method Index

new ComponentDecorator()
attachDecrateMC(), createDecorateMC(), createDecorateTextField(), getAttachDecorateMC(), getCreateDecorateMC(), getCreateDecorateTextField(), getDecorateMC(), getDecorateTextField(), removeBorderWhenNextPaint(), removeDecorateMC(), removeDecorateTextField(), removeIconWhenNextPaint(), uninstallDecorate()

Constructor Detail

ComponentDecorator

public function ComponentDecorator()

Field Detail

creater

static public creater:ElementCreater [Read Only]

Method Detail

removeIconWhenNextPaint

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.

See Also

removeBorderWhenNextPaint

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.

See Also

createDecorateMC

public function createDecorateMC(c:Component):MovieClip

createDecorateTextField

public function createDecorateTextField(c:Component):TextField

attachDecrateMC

public function attachDecrateMC(c:Component, linkage:String):MovieClip

getCreateDecorateMC

public function getCreateDecorateMC(c:Component):MovieClip

getCreateDecorateTextField

public function getCreateDecorateTextField(c:Component):TextField

getAttachDecorateMC

public function getAttachDecorateMC(c:Component, linkage:String):MovieClip

getDecorateMC

public function getDecorateMC(c:Component):MovieClip

getDecorateTextField

public function getDecorateTextField(c:Component):TextField

removeDecorateMC

public function removeDecorateMC(c:Component):Void

removeDecorateTextField

public function removeDecorateTextField(c:Component):Void

uninstallDecorate

public function uninstallDecorate(com:Component):Void

This casue to call uninstallDecorateExtra and remove decorate mcs created for the component.