Hello all !

I'm just into finishing my *very* productive and exciting evening with the tab browse component :-)
Here's what I did over the last 4,5 hours :

* Added lateInit from Andreas, although have some questions here (please see below)
* Defined a couple of methods in the XAWindow interface
* And implemented the XAWindow interface in the component, this involved adding a couple of methods for compliance with XTypeProvider
* After that I was able to get a new TabListenerImpl(Reference<XInterface> xThis) working from the lateInit.
* In TabListener I queried xThis for a XAWindow interface and called showChildWindow, hideChildWindow
* Similar thing done in ResizeListener's (of the main window) resized() method.

So what I've got is :
* a main window showing two unaligned simple children windows inside, and a tab control with 2 tabs
* clicking the tabs results in hiding / showing of the appropriate child window.
* resigin the main window results in resizing the active child window (to the same size as the parent's)


Question regarding lateInit :
I observed that if I don't pass the reference of xThis anywhere outside of the component the object gets destroyed anyway. Is that ok, or did I copy&paste somethin wrong ;-) ? I might of.
I'm getting pretty tired ;-)

Anyway, the code is in here :

http://iapart.net/dav/soc/window_1st_working_RC1/

because the SF project has not yet been registered (SF staff complained about poor project description and rejected the registration. I already filed a patch).

I really like when things go as expected. Well, at least most of the time they did ;-)

Cheers,
Andrzej

Reply via email to