You can call Accordion#getPanels().remove().

On Jan 26, 2011, at 9:55 AM, Marco Castillo wrote:

> Thank you Chris for your reply. I have another question, how can you destroy 
> all the panels within an Accordion component?
> 
> Regards
> 
> On Wed, Jan 26, 2011 at 2:05 AM, Chris Bartlett <[email protected]> wrote:
> Marco,
> 
> Use the static setHeaderData(Component, Object) method of Accordion.
> http://pivot.apache.org/2.0/docs/api/org/apache/pivot/wtk/Accordion.html
> 
> The first parameter would be the content of the panel, and the second would 
> be the header data for that panel.
> 
> Chris
> 
> 
> On 26 January 2011 11:22, Marco Castillo <[email protected]> wrote:
> Dear List:
> I'm adding programatically panels to an Accordion. How can I set the Panel 
> title programatically? Using bxml, I use an Accordion.headerData attribute to 
> define the header text.
> Thanks in advance for any help.
> 
> Regards
> 
> Marco
> 
> 

Reply via email to