Package com.adobe.xfa.form
Class FormDataListener
java.lang.Object
com.adobe.xfa.Obj
com.adobe.xfa.form.FormDataListener
- All Implemented Interfaces:
Peer
FormDataListener manages the mapping (i.e., binding) between an Element in the FormModel and
its corresponding DataNode in the DataModel. An Element and DataNode that are
bound will each be peered to a FormDataListener.
-
Field Summary
Fields inherited from interface com.adobe.xfa.ut.Peer
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the atomic name of this element's class.Gets the name of this object's class.Gets the DataNode associated with this mapping.Gets the form Element associated with this mapping.booleanisFieldValueChange(Object peerNode, int eventType, String arg1, Object arg2) static booleanDetermines whether a DataNode is currently mapped (i.e., bound) to a form node.voidpeerRemoved(Peer peer) Called when this Peer is removed frompeer.voidsetDataNode(DataNode newDataNode) voidupdateFromPeer(Object peerNode, int eventType, String arg1, Object arg2) This method will be called by the peer whenever its state changes.Methods inherited from class com.adobe.xfa.Obj
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, validateUsageFailedIsFatal
-
Constructor Details
-
FormDataListener
-
-
Method Details
-
getDataNode
Gets the DataNode associated with this mapping.- Returns:
- the DataNode associated with this mapping.
-
getFormNode
Gets the form Element associated with this mapping.- Returns:
- the form Element associated with this mapping.
-
setDataNode
-
isMapped
Determines whether a DataNode is currently mapped (i.e., bound) to a form node.- Parameters:
dataNode-- Returns:
trueifdataNodeis currently mapped to a form node.
-
isFieldValueChange
-
updateFromPeer
Description copied from interface:PeerThis method will be called by the peer whenever its state changes.eventType (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
- Specified by:
updateFromPeerin interfacePeer- Overrides:
updateFromPeerin classObj- Parameters:
peerNode- the peer to this object.eventType- the event type as enumerated in this classarg1- additional event informationarg2- additional event information
-
peerRemoved
Description copied from interface:PeerCalled when this Peer is removed frompeer. Derived classes can override this method to receive direct notifications when a peer is removed.- Specified by:
peerRemovedin interfacePeer- Overrides:
peerRemovedin classObj- Parameters:
peer- the Peer from which this Peer has been removed from notification.
-
getClassName
Description copied from class:ObjGets the name of this object's class. Overriden by derived classes such as Element that have a local name that may be returned instead.- Overrides:
getClassNamein classObj- Returns:
- the class name.
-
getClassAtom
Description copied from class:ObjReturns the atomic name of this element's class.- Overrides:
getClassAtomin classObj- Returns:
- the class name as an interned string.
-