public class MenuButton extends Button
限定符和类型 | 字段和说明 |
---|---|
protected Button[] |
menuItems |
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
构造器和说明 |
---|
MenuButton(java.lang.String text,
java.lang.String iconName) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回button的配置信息
|
Button[] |
createMenuItems()
创建菜单组
|
boolean |
equals(java.lang.Object obj) |
Button[] |
getMenuItems() |
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
JSONArray |
itemsJO(Repository repo)
选项数组
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setMenuItems(Button[] menuItems) |
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
createChildConfig, getHotkeys, getIconName, getText, isEditor, isShowIcon, isShowText, resolveText, setHotkeys, setIconName, setShowIcon, setShowText, setText, supportedEvents, 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
protected Button[] menuItems
public java.lang.String getXType()
Widget
public Button[] getMenuItems()
public void setMenuItems(Button[] menuItems)
public Button[] createMenuItems()
public JSONArray itemsJO(Repository repo) throws JSONException
repo
- 请求JSONException
- 抛错public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 Button
nodeVisitor
- 节点访问repo
- : see Repository 请求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
- 如果克隆失败则抛出此异常