MOM.java
上传用户:luxiaowei
上传日期:2022-06-06
资源大小:58k
文件大小:1k
- /*
- * MOM.java
- *
- * Created on April 20, 2010, 10:43 AM
- *
- * To change this template, choose Tools | Template Manager
- * and open the template in the editor.
- */
- package com.MOM;
- import com.MOM.ui.MOMUiFactory;
- import com.MOM.ui.design.HomeTabPane;
- import com.MOM.ui.design.MarketTabPane;
- import com.MOM.ui.design.NewsCenterTabPane;
- import com.MOM.ui.control.MOMTabControl;
- import com.MOM.ui.design.PortFolioTabPane;
- import com.MOM.ui.design.PremiumAlertsTabPane;
- import com.framework.DisplayManager;
- import com.framework.FrameWorkMidlet;
- import com.framework.UiScreen;
- /**
- *
- * @author Tejaswi
- */
- public class MOM extends FrameWorkMidlet {
-
- /** Creates a new instance of MOM */
- public MOM() {
- }
- public void init() {
- UiScreen screen = MOMUiFactory.getMOMScreen("Exit" , "Help");
- MOMTabControl tabControl = new MOMTabControl();
- tabControl.setWidth(screen.getBody().getWidth());
- tabControl.setHeight(screen.getBody().getHeight());
- tabControl.addTabPane(new HomeTabPane());
- tabControl.addTabPane(new MarketTabPane());
- tabControl.addTabPane(new NewsCenterTabPane());
- tabControl.addTabPane(new PortFolioTabPane());
- tabControl.addTabPane(new PremiumAlertsTabPane());
- screen.getBody().addChildren(tabControl);
- DisplayManager.getInst().setCurrentScreen(screen);
- }
-
- }