如何在黑莓导航到另一个选项卡中从一个选项卡(窗格管理模型)? [英] How to navigate to another tab from one tab(pane manager model) in blackberry?

查看:272
本文介绍了如何在黑莓导航到另一个选项卡中从一个选项卡(窗格管理模型)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

允许用户选择特定的日期范围和搜索entries.The搜索按钮是第一次tab.The结果是从一个SQLite数据库中读取上显示网格鉴于第三个选项卡中。
这是主要的code我已经用于创建标签:

I have created 3 tabs in my blackberry application.The first tab allows the user to select a particular date range and search for entries.The search button is on first tab.The results are fetched from a sqlite database and displayed on grid view of third tab. This is the main code i have used for creating tabs:

  // setup the tab model with 3 tabs
  PaneManagerModel model = new PaneManagerModel();
  model.enableLooping( true );

  // setup the first tab
  VerticalFieldManager vfm = new VerticalFieldManager( 
      Field.USE_ALL_HEIGHT | Field.USE_ALL_WIDTH |
      Manager.NO_VERTICAL_SCROLL | Manager.NO_HORIZONTAL_SCROLL );
  LabelField lbl = new LabelField( "Content for tab 1", Field.FOCUSABLE );
  vfm.add( lbl );

  MyLabelField myLbl = new MyLabelField( "Tab 1" );
  NullField nullFld = new NullField( Field.FOCUSABLE );
  HorizontalFieldManager hfm = new HorizontalFieldManager();
  hfm.add( nullFld );
  hfm.add( myLbl );

  Pane pane = new Pane( hfm, vfm );
  model.addPane( pane );


  // setup the second tab
  vfm = new VerticalFieldManager( 
      Field.USE_ALL_HEIGHT | Field.USE_ALL_WIDTH |
      Manager.NO_VERTICAL_SCROLL | Manager.NO_HORIZONTAL_SCROLL );
  lbl = new LabelField( "Content for tab 2", Field.FOCUSABLE );
  vfm.add( lbl );

  myLbl = new MyLabelField( "Tab 2" );
  nullFld = new NullField( Field.FOCUSABLE );
  hfm = new HorizontalFieldManager();
  hfm.add( nullFld );
  hfm.add( myLbl );

  pane = new Pane( hfm, vfm );
  model.addPane( pane );

  //Setup the third tab
  vfm = new VerticalFieldManager( 
      Field.USE_ALL_HEIGHT | Field.USE_ALL_WIDTH |
      Manager.NO_VERTICAL_SCROLL | Manager.NO_HORIZONTAL_SCROLL );
  lbl = new LabelField( "Content for tab 3", Field.FOCUSABLE );
  vfm.add( lbl );

  myLbl = new MyLabelField( "Tab 3" );
  nullFld = new NullField( Field.FOCUSABLE );
  hfm = new HorizontalFieldManager();
  hfm.add( nullFld );
  hfm.add( myLbl );

  pane = new Pane( hfm, vfm );
  model.addPane( pane );

在present结果得到正确显示在第三tab.But它们不在拳头选项卡按钮的点击。

At present the results are properly getting displayed in third tab.But they are not on button click of fist tab.

我已经包括了我的第三个选项卡content.Instead SELECT语句,我想显示第三个选项卡仅结果后,我从第一tab.Till然后我想我的第三个标签被禁用或不活动而搜索点击。

I have included my SELECT statement in the third tab content.Instead i want to display the third tab results only after i click on search from the first tab.Till then i want my third tab to be disabled or rather inactive.

有对这个请share.Thanks任何想法,任何人。

Anyone having any idea on this please share.Thanks.

推荐答案

您拨打农大<一个href=\"http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/component/pane/PaneManagerView.html#jumpTo%28int,%20int%29\"相对=nofollow> PaneManagerView.jumpTo(INT,INT)

You cau call PaneManagerView.jumpTo(int,int).

这篇关于如何在黑莓导航到另一个选项卡中从一个选项卡(窗格管理模型)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆