public class Listener extends UniqueKey implements XMLable, java.io.Serializable, java.lang.Cloneable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
XML_TAG |
构造器和说明 |
---|
Listener() |
Listener(java.lang.String eventName) |
Listener(java.lang.String eventName,
JavaScript action) |
Listener(java.lang.String eventName,
JavaScript action,
boolean invokeOnce) |
Listener(java.lang.String targetWidget,
java.lang.String eventName,
JavaScript action) |
Listener(java.lang.String targetWidget,
java.lang.String eventName,
JavaScript action,
boolean invokeOnce) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
JSONObject |
createJSONConfig(Repository repo) |
boolean |
equals(java.lang.Object obj) |
JavaScript |
getAction() |
java.lang.String |
getEventName() |
java.lang.String |
getTargetWidget() |
boolean |
isDefault() |
boolean |
isInvokeOnce() |
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setAction(JavaScript action) |
void |
setEventName(java.lang.String eventName) |
void |
setInvokeOnce(boolean invokeOnce) |
void |
setTargetWidget(java.lang.String targetWidget) |
java.lang.String |
toString() |
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public static final java.lang.String XML_TAG
public Listener()
public Listener(java.lang.String eventName)
public Listener(java.lang.String eventName, JavaScript action)
public Listener(java.lang.String eventName, JavaScript action, boolean invokeOnce)
public Listener(java.lang.String targetWidget, java.lang.String eventName, JavaScript action)
public Listener(java.lang.String targetWidget, java.lang.String eventName, JavaScript action, boolean invokeOnce)
public boolean isDefault()
public java.lang.String getTargetWidget()
public void setTargetWidget(java.lang.String targetWidget)
public java.lang.String getEventName()
public void setEventName(java.lang.String eventName)
public boolean isInvokeOnce()
public void setInvokeOnce(boolean invokeOnce)
public JavaScript getAction()
public void setAction(JavaScript action)
public JSONObject createJSONConfig(Repository repo) throws JSONException
JSONException
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter
public java.lang.String toString()
toString
在类中 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 UniqueKey
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常