Package com.adobe.xfa.ut
Class PeerImpl
java.lang.Object
com.adobe.xfa.ut.PeerImpl
This class provides an implementation of the Peer interface.
Classes that implement Peer will typically hold an instance of this interface
and delegate calls on the Peer interface to the instance of PeerImpl..
A Peer can add another Peer to its peer list
via addPeer(). All Peers in the peer list will
be notified of peer changes when updateFromPeer() is called.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a peer node to be notified of state changes.voidaddPeeredNode(Peer peer) Called when a peer adds this as a peer.voidclear all peer relationshipsvoiddeafen()getPeer(int nPeer) return the requested peerbooleanisDeaf()booleanisMute()voidmute()voidnotifyPeers(int eventType, String arg1, Object arg2) voidremoveFromList(Peer peer, Peer[] peerList) voidremovePeer(Peer peerNode) Remove a peer node from the notification list.voidremovePeeredNode(Peer peer) voidunDeafen()voidunMute()
-
Constructor Details
-
PeerImpl
-
-
Method Details
-
addPeer
Add a peer node to be notified of state changes.- Parameters:
peerNode- - The reference to the peer object to be added.
-
addPeeredNode
Called when a peer adds this as a peer.- Parameters:
peer- the peer adding this as a peer.
-
clearPeers
public void clearPeers()clear all peer relationships -
deafen
public void deafen() -
getPeer
return the requested peer- Parameters:
nPeer- - the 0-based position of the peer to retrieve.- Returns:
- the peer at the requested position. When there are not more peers to return, this will return a null object.
-
isDeaf
public boolean isDeaf() -
isMute
public boolean isMute() -
mute
public void mute() -
notifyPeers
-
removeFromList
-
removePeer
Remove a peer node from the notification list.- Parameters:
peerNode- - The reference to the peer object to be removed.
-
removePeeredNode
-
unDeafen
public void unDeafen() -
unMute
public void unMute()
-