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

J2ME

开发平台:

Java

  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package com.MOM.ui.control;
  6. import com.MOM.resources.Resources;
  7. /**
  8.  *
  9.  * @author Swaroop Kumar
  10.  */
  11. public class MOMewsGroupControl extends MOMInfoGroup{
  12.     
  13.     public MOMewsGroupControl(String title) {
  14.         super(title);
  15.     }
  16.     public void addInformation(String info)
  17.     {
  18.         MultilineArrowControl control = new MultilineArrowControl(info, true, true,Resources.getInstance().getFontBlackSmallPalin());
  19.         control.setSelectionFont(Resources.getInstance().getFontWhiteSmallPalin());
  20.         control.setLeftArrowColor(0x999999);
  21.         control.setSelectionBgColor(0x558ED5);
  22.         control.setSelectionBorderColor(0x558ED5);
  23.         if(!extraInformationAdded)
  24.         {
  25.             addChildren(control);
  26.         }else{
  27.             addChildrenAt(control, getSize() - 1);
  28.         }
  29.         changeSize();
  30.     }
  31.    
  32. }