Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi all,
I'm trying to write a java complex toolbar . i used a component addon that
implements XToolbarController. i implemented the createWindowItem() method
which takes controls from a custom Dialog and add them to toolbar  Window.
this works well when i load the extension in Libreoffice. But i want to have
more control over the toolbar Window instance returned by createWindow(). i
want to dynamicall add/remove controls from this Window createItemWindow()
at runtime based on some Global events. 
I think that method createItemWindow() is called once when extension toolbar
is created and there is probably no way to request this method on runtime am
i right?
so my questions:

-is the createItemWindow() method only requested once at custom toolbar
creation?
-what if i need to dynamically re-create the Window createItemWindow() at
runtime to update the controls inside the Window returned by
createItemWindow() method? can we do that, and if yes how?
-is there a way i can get an instance of my toolbar so i can add and remove
controls dynamically at runtime? if yes how can we do this (in java
preferably)

thanks 

--
View this message in context: 
http://nabble.documentfoundation.org/XToolbarController-createItemWindow-issue-tp3416998p3416998.html
Sent from the Dev mailing list archive at Nabble.com.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.