check tab in qx.ui.tabview.TabView

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

check tab in qx.ui.tabview.TabView

Karol Gryger

Hi,

could you please let me know how to check tab in qx.ui.tabview.TabView ?
I have 4 tabs defined. I would like to check e.g. 3rd of them before open
window within qx.ui.tabview.TabView object.

Thanks,
  Karol
--
View this message in context: http://old.nabble.com/check-tab-in-qx.ui.tabview.TabView-tp26733944p26733944.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Thanks,
     Karol Gryger (www.family3.org)
Reply | Threaded
Open this post in threaded view
|

Re: check tab in qx.ui.tabview.TabView

Jonathan Weiß
Hello Karol,


do you want to select a tab so that it becomes the active one? Use the setSelection() method[1] on the TabView widget and specify the Tab widget which should become active.

[1] http://demo.qooxdoo.org/devel/apiviewer/index.html#qx.ui.tabview.TabView~setSelection


Kind regards
Jonathan
Jonathan Weiß
Framework Engineer

Blog - LinkedIn - XING
Reply | Threaded
Open this post in threaded view
|

Re: check tab in qx.ui.tabview.TabView

Karol Gryger

Jonathan,

I tried this function before I post message. I don't know why but it doesn't
work for me. Maybe I still don't know about something.

to make sure I modified demo

http://demo.qooxdoo.org/current/demobrowser/#widget~TabView.html

added at the end of function "getTabView1" following line

   tabView.setSelection(page2);
   //tabView.setSelection(tabView.getChildren()[1]);
   return tabView;

I expected page2 will be opened but still page1 is opened  both in IE and FF

Do you have any idea what is wrong ?

Thanks,
  Karol


Jonathan Weiß-2 wrote:

>
>
> Hello Karol,
>
>
> do you want to select a tab so that it becomes the active one? Use the
> setSelection() method[1] on the TabView widget and specify the Tab widget
> which should become active.
>
> [1]
> http://demo.qooxdoo.org/devel/apiviewer/index.html#qx.ui.tabview.TabView~setSelection
>
>
> Kind regards
> Jonathan
>
> -----
> Jonathan Weiß
> Framework Engineer
>
> http://mysterycity.de/blog Blog  -
> http://www.linkedin.com/in/jonathanrass
> LinkedIn  -  http://www.xing.com/profile/Jonathan_Weiss5 XING
> --
> View this message in context:
> http://n2.nabble.com/check-tab-in-qx-ui-tabview-TabView-tp4147591p4150113.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

--
View this message in context: http://old.nabble.com/check-tab-in-qx.ui.tabview.TabView-tp26733944p26742968.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Thanks,
     Karol Gryger (www.family3.org)
Reply | Threaded
Open this post in threaded view
|

Re: check tab in qx.ui.tabview.TabView

fritz
Hi Grykar,


On Fri, 11 Dec 2009, Grykar wrote:

> added at the end of function "getTabView1" following line
>
>   tabView.setSelection(page2);
>   //tabView.setSelection(tabView.getChildren()[1]);
>   return tabView;

tabView.getChildren()[1] is a single widget.

tabView.setSelection() expects a list (array) as argument.

So I believe your call should be

    tabView.setSelection([page2]);

(I didn't test it).

It all has to do with the (recent) change in the selection methods to ALWAYS
use lists (to be consistent with SINGLE and MULTI selection).

Cheers,
Fritz

> I expected page2 will be opened but still page1 is opened  both in IE and FF
>
> Do you have any idea what is wrong ?
>
> Thanks,
>  Karol
>
>
> Jonathan Weiß-2 wrote:
>>
>>
>> Hello Karol,
>>
>>
>> do you want to select a tab so that it becomes the active one? Use the
>> setSelection() method[1] on the TabView widget and specify the Tab widget
>> which should become active.
>>
>> [1]
>> http://demo.qooxdoo.org/devel/apiviewer/index.html#qx.ui.tabview.TabView~setSelection
>>
>>
>> Kind regards
>> Jonathan
>>
>> -----
>> Jonathan Weiß
>> Framework Engineer
>>
>> http://mysterycity.de/blog Blog  -
>> http://www.linkedin.com/in/jonathanrass
>> LinkedIn  -  http://www.xing.com/profile/Jonathan_Weiss5 XING
>> --
>> View this message in context:
>> http://n2.nabble.com/check-tab-in-qx-ui-tabview-TabView-tp4147591p4150113.html
>> Sent from the qooxdoo mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------------------------
>> Return on Information:
>> Google Enterprise Search pays you back
>> Get the facts.
>> http://p.sf.net/sfu/google-dev2dev
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>
> --
> View this message in context: http://old.nabble.com/check-tab-in-qx.ui.tabview.TabView-tp26733944p26742968.html
> Sent from the qooxdoo-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Oetiker+Partner AG tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev

_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: check tab in qx.ui.tabview.TabView

Karol Gryger

Fritz,

thanks for this hint. It has solved my problem

Thanks,
Karol


Fritz Zaucker-3 wrote:

>
> Hi Grykar,
>
>
> On Fri, 11 Dec 2009, Grykar wrote:
>
>> added at the end of function "getTabView1" following line
>>
>>   tabView.setSelection(page2);
>>   //tabView.setSelection(tabView.getChildren()[1]);
>>   return tabView;
>
> tabView.getChildren()[1] is a single widget.
>
> tabView.setSelection() expects a list (array) as argument.
>
> So I believe your call should be
>
>     tabView.setSelection([page2]);
>
> (I didn't test it).
>
> It all has to do with the (recent) change in the selection methods to
> ALWAYS
> use lists (to be consistent with SINGLE and MULTI selection).
>
> Cheers,
> Fritz
>
>> I expected page2 will be opened but still page1 is opened  both in IE and
>> FF
>>
>> Do you have any idea what is wrong ?
>>
>> Thanks,
>>  Karol
>>
>>
>> Jonathan Weiß-2 wrote:
>>>
>>>
>>> Hello Karol,
>>>
>>>
>>> do you want to select a tab so that it becomes the active one? Use the
>>> setSelection() method[1] on the TabView widget and specify the Tab
>>> widget
>>> which should become active.
>>>
>>> [1]
>>> http://demo.qooxdoo.org/devel/apiviewer/index.html#qx.ui.tabview.TabView~setSelection
>>>
>>>
>>> Kind regards
>>> Jonathan
>>>
>>> -----
>>> Jonathan Weiß
>>> Framework Engineer
>>>
>>> http://mysterycity.de/blog Blog  -
>>> http://www.linkedin.com/in/jonathanrass
>>> LinkedIn  -  http://www.xing.com/profile/Jonathan_Weiss5 XING
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/check-tab-in-qx-ui-tabview-TabView-tp4147591p4150113.html
>>> Sent from the qooxdoo mailing list archive at Nabble.com.
>>>
>>> ------------------------------------------------------------------------------
>>> Return on Information:
>>> Google Enterprise Search pays you back
>>> Get the facts.
>>> http://p.sf.net/sfu/google-dev2dev
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/check-tab-in-qx.ui.tabview.TabView-tp26733944p26742968.html
>> Sent from the qooxdoo-devel mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Return on Information:
>> Google Enterprise Search pays you back
>> Get the facts.
>> http://p.sf.net/sfu/google-dev2dev
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
> --
> Oetiker+Partner AG tel: +41 62 775 9903 (direct)
> Fritz Zaucker                        +41 62 775 9900 (switch board)
> Aarweg 15                            +41 79 675 0630 (mobile)
> CH-4600 Olten                   fax: +41 62 775 9905
> Schweiz                         web: www.oetiker.ch
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
>
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

--
View this message in context: http://old.nabble.com/check-tab-in-qx.ui.tabview.TabView-tp26733944p26743525.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Thanks,
     Karol Gryger (www.family3.org)
Reply | Threaded
Open this post in threaded view
|

Re: check tab in qx.ui.tabview.TabView

Jonathan Weiß
Hello Karol,


I am glad that Fritz could solve your problem. :-)

There is just one thing I want to know: did you get an error message when trying to set the selection to the Page widget? setSelection() needs an array and should warn you if you try to input something different. If you don't have a debug console you can always press F7 in the source version to display the build-in qooxdoo console.


Cheers
Jonathan
Jonathan Weiß
Framework Engineer

Blog - LinkedIn - XING
Reply | Threaded
Open this post in threaded view
|

Re: check tab in qx.ui.tabview.TabView

fritz
On Fri, 11 Dec 2009, Jonathan Weiß wrote:

> I am glad that Fritz could solve your problem. :-)

Trying to take some of the "load" of your guys' shoulders for the upcoming
release ... ;-)

Cheers,
Fritz

--
Oetiker+Partner AG tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev

_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: check tab in qx.ui.tabview.TabView

Karol Gryger
In reply to this post by Jonathan Weiß

Jonathan,

I didn't get any error in FF debug console only several the same warnings

undefined property "auto-complete". Declaration has been left
http://localhost..../index.html

sorry for translation I get messages in local language


Regards,
 Karol


Jonathan Weiß-2 wrote:

>
>
> Hello Karol,
>
>
> I am glad that Fritz could solve your problem. :-)
>
> There is just one thing I want to know: did you get an error message when
> trying to set the selection to the Page widget? setSelection() needs an
> array and should warn you if you try to input something different. If you
> don't have a debug console you can always press F7 in the source version
> to
> display the build-in qooxdoo console.
>
>
> Cheers
> Jonathan
>
> -----
> Jonathan Weiß
> Framework Engineer
>
> http://mysterycity.de/blog Blog  -
> http://www.linkedin.com/in/jonathanrass
> LinkedIn  -  http://www.xing.com/profile/Jonathan_Weiss5 XING
> --
> View this message in context:
> http://n2.nabble.com/check-tab-in-qx-ui-tabview-TabView-tp4147591p4151272.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

--
View this message in context: http://old.nabble.com/check-tab-in-qx.ui.tabview.TabView-tp26733944p26747027.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Thanks,
     Karol Gryger (www.family3.org)
Reply | Threaded
Open this post in threaded view
|

Re: check tab in qx.ui.tabview.TabView

Jonathan Weiß
Hello Karol,


do you have active loggers in your application? See http://qooxdoo.org/documentation/0.8/helloworld#debugging

Kind regards
Jonathan
Jonathan Weiß
Framework Engineer

Blog - LinkedIn - XING