public class FreeButton extends Button
限定符和类型 | 字段和说明 |
---|---|
protected Background |
clickBackground |
protected FRFont |
font |
protected java.lang.String |
group |
protected Background |
initialBackground |
protected boolean |
isCustomStyle |
protected Background |
overBackground |
protected boolean |
toggle |
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
构造器和说明 |
---|
FreeButton() |
FreeButton(Button widget) |
FreeButton(java.lang.String text) |
clone, 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, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
protected Background initialBackground
protected Background overBackground
protected Background clickBackground
protected FRFont font
protected boolean toggle
protected java.lang.String group
protected boolean isCustomStyle
public FreeButton()
public FreeButton(java.lang.String text)
public FreeButton(Button widget)
public java.lang.String getXType()
Widget
public FreeButton getCustomButton()
public void setCustomButton(FreeButton img)
public void setCustomStyle(boolean buttonStyle)
public boolean isCustomStyle()
public Background getInitialBackground()
public void setInitialBackground(Background initialBackground)
public Background getOverBackground()
public void setOverBackground(Background overBackground)
public Background getClickBackground()
public void setClickBackground(Background clickBackground)
public int getButtonWidth()
public int getButtonHeight()
public FRFont getFont()
public void setFont(FRFont font)
public boolean isToggle()
public void setToggle(boolean isToggle)
public java.lang.String getGroup()
public void setGroup(java.lang.String group)
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 Button
repo
- 会话来源信息c
- 指定解析器nodeVisitor
- 节点访问JSONException
- 异常public Background readBackground(XMLableReader reader)
reader
- XML读取器public void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 Button
reader
- XML读取对象XMLableReader
protected void dealWithListener4Compatible(Listener listener)
dealWithListener4Compatible
在类中 Observer
public void writeXML(XMLPrintWriter writer)
Widget