public class CustomButton extends Button
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
构造器和说明 |
---|
CustomButton() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回button的配置信息
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPrefix() |
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setPrefix(java.lang.String prefix) |
java.lang.String[] |
supportedEvents()
支持返回事件
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
createChildConfig, getHotkeys, getIconName, getText, isEditor, isShowIcon, isShowText, resolveText, setHotkeys, setIconName, setShowIcon, setShowText, setText, value2Config
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, toString, updateChildBounds
addListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public java.lang.String getXType()
Widget
public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
public java.lang.String[] supportedEvents()
supportedEvents
在类中 Button
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 Button
nodeVisitor
- 节点访问repo
- : 请求c
- : 指定解析器JSONException
- 异常public void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 Button
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
Widget
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 Button
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常