Foccused tabitem in a screen

2 messages - 850 views

Hi all,

 

I am using the kuix framework for my app. I have created tabs in a screen usign the java code .Those tabs will be

 

generated dynamically . Now i need to get the foccussed tabitem .

 

Is there any way to get the foccussed tabitem name so that i can do the actions depending on the focussed or enabled tabitem.

 

A quick response can help me a lot ...

 

Regards,

venky.

 

 

 

Screen screen = Kuix.loadScreen("/xml/mainPage.xml", null);

TabFolder tf = (TabFolder) screen.getFocusManager().getFocusedWidget();
           
TabItem ti = tf.getCurrentTabItem();