IAmGroot
IAmGroot

Reputation: 13855

Blackberry Java Tabs in BB 7.0

I cant find ANY examples of using the HorizontalTabTitleView class.

Ive tried many things of which the below should work! But it comes up blank.

The created Hierachy is: HorizontalTabTitleView -> PaneManagerModel -> Pane -> VerticalFieldManager-> BasicEditField

Where PaneManagerModel can hold Many Panes which are used as Tabs.

    HorizontalTabTitleView tabView = new HorizontalTabTitleView(VERTICAL_SCROLL );

    tab1 = new LabelField("Page 1");


    BasicEditField Name = new BasicEditField( "Name:", "", 100, BasicEditField.EDITABLE );
    tab1Manager = new VerticalFieldManager();
    tab1Manager.add( Name ); 

    PaneManagerModel pneMger = new PaneManagerModel();
    Pane pne1 = new Pane(tab1, tab1Manager );

    pneMger.addPane(pne1);

    tabView.setModel(pneMger);
    //tabView.setNumberOfDisplayedTabs(3);
    add(tabView);

Upvotes: 2

Views: 412

Answers (1)

mico
mico

Reputation: 12748

Someone on on Blackberry support pages had a problem on making a transparent tab providing a working example of the usage of HorizontalTabTitleView on the code part of his question. The question maker at least says that his code is working (despite the transparency), so would you like to have look? =)

Upvotes: 2

Related Questions