Macadamian/titanium_mobile — pull request #111 by Harutyun (2012-07-20 13:00:15+00:00)
Title: TIMOB-9916: BlackBerry: Upgrade Cascades to R6

Reviewer: JP

Change Log:
- fix linking issue
- change Tab and TabGroup implementation accourding to R6

Test Cases:
- download and install R6
- re-import tibb and tibb test projects
- build tibb
- build tibbtest
- build should not fail
- run tibbtest make sure nothing is broken
- run above written code for tab and tabGroup make sure it is working

var tabGroup = Titanium.UI.createTabGroup();

var win1 = Titanium.UI.createWindow({
backgroundColor:'#336699'
})

var tab1 = Titanium.UI.createTab({
title: 'TAB1',
window: win1,
});

var win2 = Titanium.UI.createWindow({
})

var tab2 = Titanium.UI.createTab({
title: 'TAB2',
window: win2,
});

var win3 = Titanium.UI.createWindow({
backgroundColor:'#0FF'
})

var but = Titanium.UI.createButton({title: 'BUTTON'});

but.addEventListener('click', function(e) {
tab1.open(win3);
});

win1.add(but);

tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.open();