You can easily create your own class which inherits from
AbstractPageView*. All the three available views are mainly consist of a
bit styling and sometimes an additional event listener.
The constructor of this abstract class has exactly these features.
A real API overhaul ist planned for the 0.8 release later this year.
Sebastian
Simon Bull schrieb:
> Hi List,
>
> I am not sure if this has been improved in 0.7, but in 0.6.5 the TabView API
> is not very extensible.
>
> For example, in order to implement a multi-row tabbar (instead of the default
> single-row tabbar), the developer has to hack it in like this:
>
>
> //
> ************************************************************************
> // TAB VIEW
> //
> ************************************************************************
>
> var tv = this._tabview = new qx.ui.pageview.tabview.TabView;
>
>
> //
> ************************************************************************
> // CUSTOMIZE TAB VIEW FOR MULTIROW TAB BAR
> //
> ************************************************************************
>
> var defaultBar = tv.getBar();
> var defaultPane = tv.getPane();
> var customBar = new ext.ui.pageview.tabview.MultiRowBar();
> customBar.setHeight("auto");
> tv.remove(defaultBar, defaultPane);
> tv.add(customBar, defaultPane);
> tv._bar = customBar; // tv.setBar() doesn't exist
> defaultBar.dispose();
>
>
> and then when adding a tab button to your custom tabbar, you have to hack it
> in like this:
>
> var tv = vWindow.getTabview();
> var tb = new qx.ui.pageview.tabview.Button(caption);
> /*
> Override qx.ui.pageview.tabview.AbstractButton.getView to account for
> our using ext.ui.pageview.tabview.MultiRowTab.
> */
> tb.getView = function()
> {
> return this.getParent().getParent().getParent();
> };
> tv.getBar().add(tb);
>
>
>
> Perhaps there is a neater way of doing this, but even so it seems to me it
> would be much nicer if the qx.ui.pageview.tabview.TabView constructor took a
> bar and a pane as arguments so that a developer could interchange which type
> of bar or pane is used more easily.
>
>
>
> Simon
>
>
>
>
>
>
>
> _________________________________________________________________________________
>
>
> Yahoo!7 Mail has just got even bigger and better with unlimited storage on
> all webmail accounts.
> http://au.docs.yahoo.com/mail/unlimitedstorage.html
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel