public class Label extends AbstractDataControl
限定符和类型 | 字段和说明 |
---|---|
static int |
CENTER |
FRFont |
font |
static int |
LEFT |
boolean |
noWrap |
static int |
RIGHT |
int |
textalign |
boolean |
verticalCenter |
widgetValue
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
TYPE_BOOLEAN, TYPE_DATABINDING, TYPE_DATE, TYPE_FORMULA, TYPE_NUMBER, TYPE_STRING, TYPE_TABLEDATA
构造器和说明 |
---|
Label()
构造初始控件值
|
限定符和类型 | 方法和说明 |
---|---|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回Widget的配置信息
|
void |
createValueResult(DataControl widget,
Calculator widgetCalculator,
JSONObject widgetResult,
JSONObject attrSourceCache)
生成控件值信息
|
static java.lang.String |
decorationStr(FRFont frfont)
样式
|
boolean |
equals(java.lang.Object obj) |
Background |
getBackground()
获取背景
|
int |
getBorder()
获取边框线型
|
java.awt.Color |
getColor()
获取边框颜色
|
FRFont |
getFont() |
int |
getTextalign() |
int[] |
getValueType()
返回支持的控件值类型
|
java.lang.String |
getXType()
返回控件类型
|
int |
hashCode()
哈希值
|
boolean |
isAutoLine()
'
自动行
|
boolean |
isCorner()
获取是否圆角
|
boolean |
isVerticalCenter()
是否垂直居中
|
boolean |
isWrap()
是否自动换行
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
resize(double width,
double height,
double fontScale)
调整组件到指定的大小
|
void |
setAutoLine(boolean autoLine) |
void |
setBackground(Background background)
设置主体背景
|
void |
setBorder(int border)
设置边框线型
|
void |
setColor(java.awt.Color color)
设置边框颜色
|
void |
setCorner(boolean radius)
设置圆角
|
void |
setFont(FRFont font) |
void |
setTextalign(int textalign) |
void |
setVerticalCenter(boolean verticalCenter)
设置垂直居中
|
void |
setWrap(boolean isWrap) |
java.lang.String[] |
supportedEvents()
支持的事件
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
clone, dependence, getDataBindDefaultValue, getFormatText, getWidgetValue, isEditor, setWidgetValue
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealInvisible, dealWithPresentableValue, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, hasDataOnInit, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, setChartRelated, setDescription, setEnabled, setLabelName, setVisible, setWidgetName, setWidgetPrivilegeControl, supportMobile, toImage, toImage, toString, updateChildBounds, value2Config
addListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public static final int LEFT
public static final int CENTER
public static final int RIGHT
public int textalign
public FRFont font
public boolean noWrap
public boolean verticalCenter
public java.lang.String[] supportedEvents()
supportedEvents
在类中 Observer
public int[] getValueType()
DataControl
public boolean isVerticalCenter()
public void setVerticalCenter(boolean verticalCenter)
verticalCenter
- 是否居中public int getTextalign()
public void setTextalign(int textalign)
public boolean isAutoLine()
public void setAutoLine(boolean autoLine)
public FRFont getFont()
public void setFont(FRFont font)
public void setWrap(boolean isWrap)
public boolean isWrap()
public static java.lang.String decorationStr(FRFont frfont)
frfont
- 字体public Background getBackground()
public void setBackground(Background background)
background
- 背景public java.awt.Color getColor()
public void setColor(java.awt.Color color)
public boolean isCorner()
public void setCorner(boolean radius)
public int getBorder()
public void setBorder(int border)
public void resize(double width, double height, double fontScale)
Widget
public void createValueResult(DataControl widget, Calculator widgetCalculator, JSONObject widgetResult, JSONObject attrSourceCache)
widget
- 控件widgetCalculator
- 算子widgetResult
- 结果attrSourceCache
- 缓存public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 Widget
repo
- : 信息nodeVisitor
- 节点访问c
- : 指定解析器JSONException
- 异常public void readXML(XMLableReader reader)
AbstractDataControl
readXML
在接口中 XMLReadable
readXML
在类中 AbstractDataControl
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
AbstractDataControl
writeXML
在接口中 XMLWriter
writeXML
在类中 AbstractDataControl
writer
- the PrintWriter.