Well you don't *have* to override these methods as Panel already
implement them (and so does UIComponent).  

It depends on what you are trying to do. If you need to create new
objects within the extended panel, then you'll want to override
createChildren(), if you want to update these children, then override
updateDisplayList(), etc. 

In all cases, always make sure you call the method of the parent class
using super.methodName() in order not to break the default behavior of
the component.

Laurent



--- In [email protected], "flexawesome" <[EMAIL PROTECTED]> wrote:
>
> 
> Hey there,
> 
> I was reading the articles regarding the components
> 
> http://livedocs.adobe.com/flex/3/html/help.html?
> content=ascomponents_advanced_2.html
> 
> I knew that by extending the UIComponent, I need to overriding the 
> protected UIComponent methods ( createChildren(), commitProperties(), 
> etc. )
> 
> My question was if I extend the Panel class, shall I still need to 
> override these mehods? Personally, I think I need to overide them, 
> but I wanna conform this first @v@
> 
> public class AlertBox extends Panel
> {
> .....
> }
> 
> thank you
>


Reply via email to