public abstract class MobileTemplateStyle extends java.lang.Object implements XMLable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DEFAULT_FONTNAME |
构造器和说明 |
---|
MobileTemplateStyle() |
MobileTemplateStyle(java.lang.String style,
java.awt.Color initialColor,
java.awt.Color selectColor,
TabFontConfig tabFontConfig) |
MobileTemplateStyle(java.lang.String style,
java.awt.Color initialColor,
TabFontConfig tabFontConfig) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回Widget的配置信息
|
FRFont |
getFrFont() |
java.awt.Color |
getInitialColor() |
java.awt.Color |
getSelectColor() |
java.lang.String |
getStyle() |
TabFontConfig |
getTabFontConfig() |
boolean |
isCustom() |
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setCustom(boolean custom) |
void |
setFrFont(FRFont frFont) |
void |
setInitialColor(java.awt.Color initialColor) |
void |
setSelectColor(java.awt.Color selectColor) |
void |
setStyle(java.lang.String style) |
void |
setTabFontConfig(TabFontConfig tabFontConfig) |
protected abstract void |
writeExtraXml(XMLPrintWriter writer) |
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
public MobileTemplateStyle()
public MobileTemplateStyle(java.lang.String style, java.awt.Color initialColor, TabFontConfig tabFontConfig)
public MobileTemplateStyle(java.lang.String style, java.awt.Color initialColor, java.awt.Color selectColor, TabFontConfig tabFontConfig)
public FRFont getFrFont()
public void setFrFont(FRFont frFont)
public boolean isCustom()
public void setCustom(boolean custom)
public java.lang.String getStyle()
public void setStyle(java.lang.String style)
public java.awt.Color getInitialColor()
public void setInitialColor(java.awt.Color initialColor)
public java.awt.Color getSelectColor()
public void setSelectColor(java.awt.Color selectColor)
public TabFontConfig getTabFontConfig()
public void setTabFontConfig(TabFontConfig tabFontConfig)
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
repo
- 参数repoc
- 指定解析器nodeVisitor
- 节点访问JSONException
- 异常public void writeXML(XMLPrintWriter writer)
XMLWriter
protected abstract void writeExtraXml(XMLPrintWriter writer)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常