public class CRBoundsWidget extends Widget implements java.lang.Comparable
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
构造器和说明 |
---|
CRBoundsWidget() |
CRBoundsWidget(Widget widget,
java.awt.Rectangle bounds) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
acceptType(java.lang.Class<?>... acceptTypes)
是否接收这种类型
|
java.lang.Object |
clone() |
int |
compareTo(java.lang.Object o)
比较
|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor toFindChart)
以JSONObject方式返回表单正文内容的配置信息,以及控件坐标、大小
|
boolean |
equals(java.lang.Object obj) |
java.awt.Rectangle |
getBackupBounds()
返回widget的备份范围
|
java.awt.Rectangle |
getBeforeScaleBounds() |
java.awt.Rectangle |
getBounds() |
Widget |
getWidget() |
java.lang.String |
getWidgetName()
获取组件的名字,在一个模板中,该名字应该具有唯一性
|
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
boolean |
isEditor()
是否是编辑类控件
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
resize(double width,
double height,
double fontScale)
重新调整大小
|
void |
setBackupBounds(java.awt.Rectangle bounds)
重置widget的备份范围
|
void |
setBeforeScaleBounds(java.awt.Rectangle beforeScaleBounds) |
void |
setBounds(java.awt.Rectangle bounds) |
java.lang.String[] |
supportedEvents()
支持事件
|
void |
toImage(Calculator ca,
java.awt.Rectangle rec,
java.awt.Graphics g)
当前控件转化为图片
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealInvisible, dealWithPresentableValue, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetPrivilegeControl, hasDataOnInit, hashCode, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, setChartRelated, setDescription, setEnabled, setLabelName, setVisible, setWidgetName, setWidgetPrivilegeControl, supportMobile, toImage, toString, updateChildBounds, value2Config
addListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public CRBoundsWidget()
public CRBoundsWidget(Widget widget, java.awt.Rectangle bounds)
public java.awt.Rectangle getBeforeScaleBounds()
public void setBeforeScaleBounds(java.awt.Rectangle beforeScaleBounds)
public java.awt.Rectangle getBounds()
public void setBounds(java.awt.Rectangle bounds)
public java.awt.Rectangle getBackupBounds()
public void setBackupBounds(java.awt.Rectangle bounds)
bounds
- 范围public Widget getWidget()
public java.lang.String getWidgetName()
MixinControlWidget
getWidgetName
在接口中 MixinControlWidget
getWidgetName
在类中 Widget
public java.lang.String getXType()
Widget
public boolean acceptType(java.lang.Class<?>... acceptTypes)
acceptType
在类中 Widget
acceptTypes
- 接收的类型public java.lang.String[] supportedEvents()
supportedEvents
在类中 Observer
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor toFindChart) throws JSONException
createJSONConfig
在类中 Widget
repo
- 参数repoc
- 指定解析器toFindChart
- 查找JSONException
public void toImage(Calculator ca, java.awt.Rectangle rec, java.awt.Graphics g)
public void resize(double width, double height, double fontScale)
public int compareTo(java.lang.Object o)
compareTo
在接口中 java.lang.Comparable
o
- 对象public void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 Widget
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
Widget
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 Widget
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常