public class ToolBar extends Widget
限定符和类型 | 字段和说明 |
---|---|
protected java.util.List |
widgets |
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
限定符和类型 | 方法和说明 |
---|---|
void |
addWidget(Widget widget)
添加控件
|
void |
addWidgetAhead(Widget widget)
在前部添加控件
|
void |
clearWidgets()
清空控件
|
java.lang.Object |
clone() |
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回Widget的配置信息
|
boolean |
equals(java.lang.Object obj) |
Background |
getBackground() |
Widget |
getWidget(int index) |
int |
getWidgetSize() |
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
int |
hashCode()
hash码
|
boolean |
isDefault()
是否默认
|
boolean |
isEditor()
是否编辑器
|
void |
readXML(XMLableReader reader)
Read XML.
|
Widget |
removeWidget(int index)
移除某个控件
|
void |
removeWidget(Widget widget)
移除某个控件
|
void |
setBackground(Background background) |
void |
setDefault(boolean isDefault) |
java.lang.String[] |
supportedEvents()
支持的事件
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealInvisible, dealWithPresentableValue, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, hasDataOnInit, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, resize, setChartRelated, setDescription, setEnabled, setLabelName, setVisible, setWidgetName, setWidgetPrivilegeControl, supportMobile, toImage, toImage, toString, updateChildBounds, value2Config
addListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public ToolBar()
public ToolBar(Widget[] widgets)
public java.lang.String getXType()
Widget
public java.lang.String[] supportedEvents()
supportedEvents
在类中 Observer
public boolean isDefault()
public void setDefault(boolean isDefault)
public Background getBackground()
public void setBackground(Background background)
public int getWidgetSize()
public Widget getWidget(int index)
public void addWidget(Widget widget)
widget
- 添加控件public void addWidgetAhead(Widget widget)
widget
- 添加控件public Widget removeWidget(int index)
index
- 序号public void removeWidget(Widget widget)
widget
- 控件对象public void clearWidgets()
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 Widget
repo
- : 请求c
- : 指定解析器nodeVisitor
- 节点访问JSONException
- 抛错public void writeXML(XMLPrintWriter writer)
Widget
public void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 Widget
reader
- XML读取对象XMLableReader
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 Widget
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常