public abstract class ToolBarButton extends Button
限定符和类型 | 字段和说明 |
---|---|
protected Condition |
condition |
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
构造器和说明 |
---|
ToolBarButton(java.lang.String text) |
ToolBarButton(java.lang.String text,
java.lang.String iconName) |
限定符和类型 | 方法和说明 |
---|---|
protected abstract JavaScriptImpl |
clickAction(Repository repo) |
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回button的配置信息
|
Listener[] |
createListeners(Repository repo) |
boolean |
equals(java.lang.Object obj) |
Condition |
getCondition() |
protected JavaScriptImpl |
initAction(Repository repo) |
protected java.lang.String |
onContentPanelAfterLoad(Repository repo) |
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setCondition(Condition condition) |
java.lang.String |
widgetName() |
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
clone, createChildConfig, getHotkeys, getIconName, getText, getXType, 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, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
protected Condition condition
public ToolBarButton(java.lang.String text)
public ToolBarButton(java.lang.String text, java.lang.String iconName)
public java.lang.String widgetName()
public Condition getCondition()
public void setCondition(Condition condition)
public Listener[] createListeners(Repository repo)
createListeners
在类中 Observer
protected abstract JavaScriptImpl clickAction(Repository repo)
protected JavaScriptImpl initAction(Repository repo)
protected java.lang.String onContentPanelAfterLoad(Repository repo)
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
Button
createJSONConfig
在类中 Button
repo
- : see 请求c
- : 指定解析器nodeVisitor
- 节点访问JSONException
- 异常public void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 Button
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
Widget