public class HTextField extends HInteractiveObject
| 限定符和类型 | 字段和说明 |
|---|---|
int |
backgroundColor
背景颜色,默认无背景色
|
int |
color
文字颜色值
|
Typeface |
font
字体
|
double |
height
文本框高度
|
int |
lineHeight
行距,默认1.5倍行距
|
int |
size
文字大小(像素)
|
java.lang.String |
text
文本内容
|
Paint.Align |
textAlign
文本对齐方式
|
double |
width
文本框宽度
|
boolean |
wordWrap
是否自动换行
|
mouseEnabled| 构造器和说明 |
|---|
HTextField()
构造函数
|
getBounds, getGlobalMatrix, getHeight, getMatrix, getParent, getRect, getRect, getSize, getStage, getWidth, globalToLocal, hitTestObject, hitTestPoint, localToGlobal, setHeight, setMatrix, setWidthaddEventListener, dispatchEvent, hasEventListener, removeEventListenerpublic java.lang.String text
public int color
public int size
public double width
public double height
public Typeface font
public boolean wordWrap
public Paint.Align textAlign
public int lineHeight
public int backgroundColor