public class PaddingMargin extends java.lang.Object implements java.io.Serializable, FCloneable, XMLable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
XML_TAG |
构造器和说明 |
---|
PaddingMargin() |
PaddingMargin(int top,
int left,
int bottom,
int right) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
JSONObject |
createJSONConfig(JSONObject jo)
以JSONObject方式返回Widget的配置信息
|
boolean |
equals(java.lang.Object o) |
int |
getBottom() |
int |
getLeft() |
int |
getRight() |
int |
getTop() |
static boolean |
need(PaddingMargin pm)
是否需要设置边距
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setBottom(int bottom) |
void |
setLeft(int left) |
void |
setRight(int right) |
void |
setTop(int top) |
java.lang.String |
toString()
转换成字符串
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
public static final java.lang.String XML_TAG
public PaddingMargin()
public PaddingMargin(int top, int left, int bottom, int right)
public int getBottom()
public void setBottom(int bottom)
public int getLeft()
public void setLeft(int left)
public int getRight()
public void setRight(int right)
public int getTop()
public void setTop(int top)
public JSONObject createJSONConfig(JSONObject jo) throws JSONException
jo
- 参数JSONException
- 异常public java.lang.String toString()
toString
在类中 java.lang.Object
public static boolean need(PaddingMargin pm)
pm
- 边距public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter