Maybe TabPane should be testing:
        if (!previousTabData.equals(tabData))
instead of using "=="??

Roger Whitcomb | Architect, Engineering | [email protected] |
Ingres | 500 Arguello Street | Suite 200 | Redwood City | CA | 94063 |
USA  +1 650-587-5596 | fax: +1 650-587-5550

-----Original Message-----
From: Edvin Syse [mailto:[email protected]] 
Sent: Tuesday, June 14, 2011 1:43 PM
To: [email protected]
Subject: Re: Update TabData - supposed to call listeners manually?


Den 14.06.2011 22:37, skrev Greg Brown:
> You should call:
>
>    tabData.setText("New text for tab");
>    TabPane.setTabData(component, tabData);
>
> That will fire the appropriate event.

That's the first thing I tried. It doesn't work because 
TabPane#setTabData will only call the listeners if previousTabData != 
tabData. I don't change the TabData (ButtonData) object, I just change 
the text property.

I can ofcourse create a brand new ButtonData object, but that doesn't 
feel right. What do you think?


> FYI, the fact that you can call the listeners yourself is a bug. The
contents of the listener list are not supposed to be visible.  :-)

OK :)

Reply via email to