Text_Label可以换行的文本下拉列表
来源:技术人生 责任编辑:栏目编辑 发表时间:2013-07-02 00:38 点击:次
package me.com.kaikai.load;
import java.io.IOException;
import java.util.Random;
import java.util.Vector;
import java.util.Random;
import java.util.Vector;
import com.sun.lwuit.Component;
import com.sun.lwuit.Display;
import com.sun.lwuit.Font;
import com.sun.lwuit.Graphics;
import com.sun.lwuit.Image;
import com.sun.lwuit.TextArea;
import com.sun.lwuit.geom.Dimension;
import com.sun.lwuit.geom.Rectangle;
import com.sun.lwuit.plaf.Style;
import com.sun.lwuit.Display;
import com.sun.lwuit.Font;
import com.sun.lwuit.Graphics;
import com.sun.lwuit.Image;
import com.sun.lwuit.TextArea;
import com.sun.lwuit.geom.Dimension;
import com.sun.lwuit.geom.Rectangle;
import com.sun.lwuit.plaf.Style;
public class Text_Label extends Component
{
/* 标题白色:rgb = 255 255 255
正文黑色:rgb = 86 86 86 //565656
正文蓝色:rgb = 63 107 169//3f6ba9
正文灰色:rgb = 189 189 189//bdbdbd
分割线颜色:rgb = 224 224 224//e0e0e0
*/
/******************TextArea用到的字段****************************/
private String text; //存储当前的文本内容
private int rowsGap = 2;
private Font font =null;
/*******************************用户信息************************************/
private String name="sdfsdfdsfds";
private int nameColor=0X3f6ba9;
private String title="sdfdsfsdfsd";
private int titleColor=0X565656;
private String tail="sdffssd";
private int tailColor=0Xbdbdbd;
private Image pic; //图片绘制
private Vector vec=new Vector();
private Node temp=null;
int leftPadding =this.getStyle().getPadding(isRTL(), Component.LEFT);
int rightPadding =this.getStyle().getPadding(isRTL(), Component.RIGHT);
int topPadding =this.getStyle().getPadding(false, Component.TOP);
int oWidth=0; //宽度 剪切板
int oX=0;
int oY=0;
int oHight=0;
int rowcount=0; //可以自动换行的变量行号
int rowwOrection=0;//移动的方向,也代表动态提取的数据
boolean Next=true;//向下翻页时用到此变量
public Text_Label(){
this("",Display.getInstance().getDisplayWidth());
}
public Text_Label(String text){
this(text,Display.getInstance().getDisplayWidth());
}
public Text_Label(String text,int width,int maxRow){
this(text,width);
{
/* 标题白色:rgb = 255 255 255
正文黑色:rgb = 86 86 86 //565656
正文蓝色:rgb = 63 107 169//3f6ba9
正文灰色:rgb = 189 189 189//bdbdbd
分割线颜色:rgb = 224 224 224//e0e0e0
*/
/******************TextArea用到的字段****************************/
private String text; //存储当前的文本内容
private int rowsGap = 2;
private Font font =null;
/*******************************用户信息************************************/
private String name="sdfsdfdsfds";
private int nameColor=0X3f6ba9;
private String title="sdfdsfsdfsd";
private int titleColor=0X565656;
private String tail="sdffssd";
private int tailColor=0Xbdbdbd;
private Image pic; //图片绘制
private Vector vec=new Vector();
private Node temp=null;
int leftPadding =this.getStyle().getPadding(isRTL(), Component.LEFT);
int rightPadding =this.getStyle().getPadding(isRTL(), Component.RIGHT);
int topPadding =this.getStyle().getPadding(false, Component.TOP);
int oWidth=0; //宽度 剪切板
int oX=0;
int oY=0;
int oHight=0;
int rowcount=0; //可以自动换行的变量行号
int rowwOrection=0;//移动的方向,也代表动态提取的数据
boolean Next=true;//向下翻页时用到此变量
public Text_Label(){
this("",Display.getInstance().getDisplayWidth());
}
public Text_Label(String text){
this(text,Display.getInstance().getDisplayWidth());
}
public Text_Label(String text,int width,int maxRow){
this(text,width);
相关新闻>>
- 发表评论
-
- 最新评论 更多>>