MOMewsGroupControl.java
资源名称:src.zip [点击查看]
上传用户:luxiaowei
上传日期:2022-06-06
资源大小:58k
文件大小:1k
源码类别:
J2ME
开发平台:
Java
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package com.MOM.ui.control;
- import com.MOM.resources.Resources;
- /**
- *
- * @author Swaroop Kumar
- */
- public class MOMewsGroupControl extends MOMInfoGroup{
- public MOMewsGroupControl(String title) {
- super(title);
- }
- public void addInformation(String info)
- {
- MultilineArrowControl control = new MultilineArrowControl(info, true, true,Resources.getInstance().getFontBlackSmallPalin());
- control.setSelectionFont(Resources.getInstance().getFontWhiteSmallPalin());
- control.setLeftArrowColor(0x999999);
- control.setSelectionBgColor(0x558ED5);
- control.setSelectionBorderColor(0x558ED5);
- if(!extraInformationAdded)
- {
- addChildren(control);
- }else{
- addChildrenAt(control, getSize() - 1);
- }
- changeSize();
- }
- }