public class CardSwitchButton extends FreeButton
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEF_WIDTH |
clickBackground, font, group, initialBackground, isCustomStyle, overBackground, toggleAFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName| 构造器和说明 |
|---|
CardSwitchButton()
构造函数
|
CardSwitchButton(int index,
java.lang.String cardLayoutName)
构造函数
|
CardSwitchButton(java.lang.String cardLayoutName)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor toFindChart)
以JSONObject方式返回Widget的配置信息
|
int |
getbuttonHeight() |
int |
getbuttonWidth() |
java.lang.String |
getCardLayoutName() |
FRFont |
getFont() |
int |
getIndex() |
Background |
getInitialBackground() |
java.lang.String |
getInitIconName() |
double |
getOpacity() |
java.lang.String |
getSelectIconName() |
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
void |
initDesignerStyle(java.lang.String widgetName)
初始化当前button的样式
|
boolean |
isShowButton()
是否为当前显示的switchButton
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setCardLayoutName(java.lang.String cardLayoutName) |
void |
setIndex(int index) |
void |
setInitialBackground(Background initialBackground) |
void |
setInitIconName(java.lang.String initIconName) |
void |
setOpacity(double opacity) |
void |
setSelectIconName(java.lang.String selectIconName) |
void |
setShowButton(boolean isShowButton) |
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
dealWithListener4Compatible, equals, getButtonHeight, getButtonWidth, getClickBackground, getCustomButton, getGroup, getOverBackground, isCustomStyle, isToggle, readBackground, setClickBackground, setCustomButton, setCustomStyle, setFont, setGroup, setOverBackground, setToggleclone, createChildConfig, getHotkeys, getIconName, getText, isEditor, isShowIcon, isShowText, resolveText, setHotkeys, setIconName, setShowIcon, setShowText, setText, supportedEvents, value2ConfigacceptType, 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, updateChildBoundsaddListener, clearListeners, createJSONListener, createListeners, getConvertMap, getListener, getListenerSizecopy, getId, getNameSpace, setId, setNameSpacegetClassInfo, getData, invalidate, isLoad, setClassInfo, setDatapublic static final int DEF_WIDTH
public CardSwitchButton()
public CardSwitchButton(java.lang.String cardLayoutName)
cardLayoutName - 当前button用于哪一个cardlayoutpublic CardSwitchButton(int index,
java.lang.String cardLayoutName)
index - 当前button绑定的哪一个cardcardLayoutName - 当前button用于哪一个cardlayoutpublic java.lang.String getInitIconName()
public void setInitIconName(java.lang.String initIconName)
public java.lang.String getSelectIconName()
public void setSelectIconName(java.lang.String selectIconName)
public Background getInitialBackground()
getInitialBackground 在类中 FreeButtonpublic void setInitialBackground(Background initialBackground)
setInitialBackground 在类中 FreeButtonpublic int getbuttonWidth()
public int getbuttonHeight()
public FRFont getFont()
getFont 在类中 FreeButtonpublic java.lang.String getXType()
WidgetgetXType 在类中 FreeButtonpublic void initDesignerStyle(java.lang.String widgetName)
widgetName - 控件名public boolean isShowButton()
public void setShowButton(boolean isShowButton)
public double getOpacity()
public void setOpacity(double opacity)
public int getIndex()
public void setIndex(int index)
public java.lang.String getCardLayoutName()
public void setCardLayoutName(java.lang.String cardLayoutName)
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor toFindChart) throws JSONException
createJSONConfig 在类中 FreeButtonrepo - 参数repoc - 指定解析器toFindChart - 查找JSONException - 异常public void writeXML(XMLPrintWriter writer)
WidgetwriteXML 在接口中 XMLWriterwriteXML 在类中 FreeButtonwriter - the PrintWriter.public void readXML(XMLableReader reader)
WidgetreadXML 在接口中 XMLReadablereadXML 在类中 FreeButtonreader - XML读取对象XMLableReader