public class NameWidget extends Widget implements XMLable
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
构造器和说明 |
---|
NameWidget() |
NameWidget(java.lang.String name) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor toFindChart)
配置
|
Listener[] |
createListeners(Repository repo)
创建监听事件数组
|
Widget |
createWidget()
创建控件
|
boolean |
equals(java.lang.Object obj) |
static WidgetConfig |
getClonedWidgetConfig(WidgetManagerProvider widgetManager,
java.lang.String name) |
java.lang.String |
getName()
Gets the name of widget config.
|
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
boolean |
isEditor()
是否为编辑器
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setName(java.lang.String name) |
java.lang.String[] |
supportedEvents()
支持事件数组
|
java.lang.String |
toString()
转为字符串
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealInvisible, dealWithPresentableValue, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, hasDataOnInit, hashCode, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, resize, setChartRelated, setDescription, setEnabled, setLabelName, setVisible, setWidgetName, setWidgetPrivilegeControl, supportMobile, toImage, toImage, updateChildBounds, value2Config
addListener, clearListeners, createJSONListener, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public java.lang.String getName()
public void setName(java.lang.String name)
public Widget createWidget()
public static WidgetConfig getClonedWidgetConfig(WidgetManagerProvider widgetManager, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 Widget
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public java.lang.String getXType()
Widget
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 Listener[] createListeners(Repository repo)
createListeners
在类中 Observer
repo
- 请求public void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 Widget
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
Widget