on 03-05-2008 7:25 AM
Hi,
I want to create a tabstrip dynamically.The tabstrip should have 3 tabs, and in each of the tabs i want to put some UI elements like a label, input field, dropdown, tables.........etc.
Im able to create the tabstrip and add tabs to it dynamically.
I've even created the UI elements which i wanted to put in the tabs.............But im not able to proceed as i dont know how to add the UI elements to the tabs.......
Can anyone tell me how to add UI elements to a tab in a tabstrip?
Regards,
Padmalatha.K
Points will be rewarded.
Hi,
You can create tab dynamically right. Now create a transparentContainer, add all the child UI elements to this container and finally add content to the Tab using tab.setContent() method in which you pass the tranparentContainer object.
Hope this helps.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Following code will help you to understand the dynamic creation and adding them
//Tabstrip
IWDTabStrip tabStrip = view.createElement(IWDTabStrip.class);
//Tab
IWDTab tab = view.createElement(IWDTab.class);
//Input Field
IWDInputField inputField = view.createElement(IWDInputField.class);
//Adding inputfield to tab
tab.setContent(inputField);
//Adding tab to tabstrip
tabStrip.addTab(tab);
//Finally add this tabstip to either your root container or some other container.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.