ATTR_CHANGED, CHILD_ADDED, CHILD_REMOVED, DESCENDENT_ADDED, DESCENDENT_ATTR_CHANGED, DESCENDENT_REMOVED, DESCENDENT_VALUE_CHANGED, PARENT_CHANGED, PERMS_LOCK_CLEARED, PERMS_LOCK_SET, PROTO_ATTR_CHANGED, PROTO_CHILD_ADDED, PROTO_CHILD_REMOVED, PROTO_DESCENDENT_ADDED, PROTO_DESCENDENT_ATTR_CHANGED, PROTO_DESCENDENT_REMOVED, PROTO_DESCENDENT_VALUE_CHANGED, PROTO_VALUE_CHANGED, UPDATED, VALUE_CHANGED| Constructor and Description |
|---|
FormDataListener(Element formNode,
DataNode dataNode) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassAtom()
Returns the atomic name of this element's class.
|
String |
getClassName()
Gets the name of this object's class.
|
DataNode |
getDataNode()
Gets the DataNode associated with this mapping.
|
Element |
getFormNode()
Gets the form Element associated with this mapping.
|
boolean |
isFieldValueChange(Object peerNode,
int eventType,
String arg1,
Object arg2) |
static boolean |
isMapped(DataNode dataNode)
Determines whether a DataNode is currently mapped (i.e., bound) to a form node.
|
void |
peerRemoved(Peer peer)
Called when this Peer is removed from
peer. |
void |
setDataNode(DataNode newDataNode) |
void |
updateFromPeer(Object peerNode,
int eventType,
String arg1,
Object arg2)
This method will be called by the peer whenever its
state changes.
|
addPeer, addPeeredNode, clearPeers, deafen, getClassTag, getPeer, getScriptMethodInfo, getScriptProperty, getScriptTable, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, notifyPeers, removePeer, removePeeredNode, sendMessenge, setClass, setClassTag, setScriptProperty, unDeafen, unMute, validateUsage, validateUsageFailedIsFatalpublic DataNode getDataNode()
public Element getFormNode()
public void setDataNode(DataNode newDataNode)
public static boolean isMapped(DataNode dataNode)
dataNode - true if dataNode is currently mapped to a form node.public boolean isFieldValueChange(Object peerNode, int eventType, String arg1, Object arg2)
public void updateFromPeer(Object peerNode, int eventType, String arg1, Object arg2)
PeereventType (String)arg1 (Object)arg2 UPDATED update type (optional) ATTR_CHANGED attr name (optional) CHILD_ADDED (optional) added node CHILD_REMOVED (optional) removed node VALUE_CHANGED new data (optional) PARENT_CHANGED (optional) new parent DESCENDENT_ATTR_CHANGED attr name changed node DESCENDENT_VALUE_CHANGED (optional) changed node DESCENDENT_ADDED (optional) added node DESCENDENT_REMOVED (optional) removed node PERMS_LOCK_SET (optional) (optional) PERMS_LOCK_CLEARED (optional) (optional) PROTO_ATTR_CHANGED attr name changed node PROTO_CHILD_ADDED (optional) added node of the protoype PROTO_CHILD_REMOVED (optional) removed node from the prototype PROTO_VALUE_CHANGED new data prototype node PROTO_DESCENDENT_ATTR_CHANGED attr name changed prototype node PROTO_DESCENDENT_VALUE_CHANGED (optional) changed prototype node PROTO_DESCENDENT_ADDED (optional) added node to the prototype PROTO_DESCENDENT_REMOVED (optional) removed node from the prototype
updateFromPeer in interface PeerupdateFromPeer in class ObjpeerNode - the peer to this object.eventType - the event type as enumerated in this classarg1 - additional event informationarg2 - additional event informationpublic void peerRemoved(Peer peer)
Peerpeer.
Derived classes can override this method to receive direct notifications
when a peer is removed.peerRemoved in interface PeerpeerRemoved in class Objpeer - the Peer from which this Peer has been removed from notification.public String getClassName()
ObjgetClassName in class Objpublic String getClassAtom()
ObjgetClassAtom in class ObjCopyright © 2010 - 2020 Adobe. All Rights Reserved