MOM.java
上传用户:luxiaowei
上传日期:2022-06-06
资源大小:58k
文件大小:1k
源码类别:

J2ME

开发平台:

Java

  1. /*
  2.  * MOM.java
  3.  *
  4.  * Created on April 20, 2010, 10:43 AM
  5.  *
  6.  * To change this template, choose Tools | Template Manager
  7.  * and open the template in the editor.
  8.  */
  9. package com.MOM;
  10. import com.MOM.ui.MOMUiFactory;
  11. import com.MOM.ui.design.HomeTabPane;
  12. import com.MOM.ui.design.MarketTabPane;
  13. import com.MOM.ui.design.NewsCenterTabPane;
  14. import com.MOM.ui.control.MOMTabControl;
  15. import com.MOM.ui.design.PortFolioTabPane;
  16. import com.MOM.ui.design.PremiumAlertsTabPane;
  17. import com.framework.DisplayManager;
  18. import com.framework.FrameWorkMidlet;
  19. import com.framework.UiScreen;
  20. /**
  21.  *
  22.  * @author Tejaswi
  23.  */
  24. public class MOM extends FrameWorkMidlet {
  25.     
  26.     /** Creates a new instance of MOM */
  27.     public MOM() {
  28.     }
  29.     public void init() {
  30.         UiScreen screen = MOMUiFactory.getMOMScreen("Exit" , "Help");
  31.         MOMTabControl tabControl = new MOMTabControl();
  32.         tabControl.setWidth(screen.getBody().getWidth());
  33.         tabControl.setHeight(screen.getBody().getHeight());
  34.         tabControl.addTabPane(new HomeTabPane());
  35.         tabControl.addTabPane(new MarketTabPane());
  36.         tabControl.addTabPane(new NewsCenterTabPane());
  37.         tabControl.addTabPane(new PortFolioTabPane());
  38.         tabControl.addTabPane(new PremiumAlertsTabPane());
  39.         screen.getBody().addChildren(tabControl);
  40.         DisplayManager.getInst().setCurrentScreen(screen);
  41.     }
  42.     
  43. }