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

J2ME

开发平台:

Java

  1. /*
  2.  * Constants.java
  3.  *
  4.  * Created on April 22, 2010, 6:11 PM
  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.framework.HorizontalLayout;
  11. import com.framework.ListLayout;
  12. import javax.microedition.lcdui.Graphics;
  13. /**
  14.  *
  15.  * @author Tejaswi
  16.  */
  17. public interface Constants {
  18.     /** Constant declreation */
  19.     public static final int LEFT_PADDING = 4;
  20.     public static final int TOP_PADDING = 4;
  21.     public static final int CONTROLS_SELECTION_BORDER_COLOR = 0x558ED5;
  22.     public static final int RADIO_CONTROL_CIRCLE_BORDER_COLOR = 0X9daeb8;
  23.     public static final int BLUE_LABLE_BG_COLOR = 0X4277AD;
  24.     public static final int BLUE_LABLE_BORDER_COLOR = 0X1A5189;
  25.     public static final int LEFT_ARROW_WIDTH = 4;  
  26.     public static final int RIGHT_ARROW_PADDING = 6;
  27.     /** String constant declreations */
  28.     public static final String EXIT_STRING = "Exit";
  29.     public static final String MARKET_STRING = "Market";
  30.     public static final String NEWS_CENTER_STRING = "News Center";
  31.     public static final String PORTFOLIO_STRING = "Portfolio";
  32.     public static final String PREMIUM_ALERTS_STRING = "Premium Alerts";
  33.     public static final String SEARCH_STRING = "Search";
  34.     public static final String[] SEARCH_RADIO_BUTTONS = {"Stock" , "MF" , "F&O"};
  35.     public static final String RIGHT_ARROW_TEXT = ">>";
  36.     public static final String GLOBAL_MARKET_UPDATE_STRING = "Global Market Update";
  37.     public static final String TOP_NEWS_LABEL = "Top News";
  38.     public static final String PRE_MARKET_STRING = "Pre Market";
  39.     /** Layout declreations */
  40.     public static final ListLayout TAB_PANE_LIST_LAYOUT = new ListLayout(0 , 0 , 1 , Graphics.LEFT);
  41.     public static final ListLayout LIST_LAYOUT_01 = new ListLayout(0 , 0 , -1 , Graphics.LEFT);
  42.     public static final HorizontalLayout HORIZONAL_LAYOUT_01 = new HorizontalLayout(HorizontalLayout.STRETCH_NONE , LEFT_PADDING,TOP_PADDING,LEFT_PADDING);
  43.     public static final HorizontalLayout HORIZONAL_LAYOUT_02 = new HorizontalLayout(HorizontalLayout.STRETCH_EQUAL , 0,0,0);
  44. }