|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface must be implemented by all Peer2Me MIDlets. It ensures that the Framework can access a set of methods in the MIDlet in order to notify the MIDlet about various events.
Method Summary | |
void |
notifyAboutException(java.lang.String location,
java.lang.Exception exception)
This method is called by the framework whenever an exception notice is given by the log. |
void |
notifyAboutFoundNode(java.lang.String nodeAddress,
java.lang.String remoteNodeName)
This method is called by the framework when a node is found. |
void |
notifyAboutParticipants(java.util.Hashtable participants)
This method is called from from the framework to notify the midlet about the participants of the ad hoc network. |
void |
notifyAboutReceivedFilePackage(java.lang.String senderName,
java.lang.String filePath)
This method is called from the framework whenever a file package is received from a remote node. |
void |
notifyAboutReceivedTextPackage(java.lang.String senderName,
java.lang.String textMessage)
This method is called from the framework whenever a text package is received from a remote node. |
Method Detail |
public void notifyAboutException(java.lang.String location, java.lang.Exception exception)
location
- The location where the Exception occuredexception
- The actual Exceptionpublic void notifyAboutFoundNode(java.lang.String nodeAddress, java.lang.String remoteNodeName)
nodeAddress
- The network address of the noderemoteNodeName
- The name of the found remote nodepublic void notifyAboutReceivedTextPackage(java.lang.String senderName, java.lang.String textMessage)
senderName
- The name of the sendertextMessage
- The received text messagepublic void notifyAboutReceivedFilePackage(java.lang.String senderName, java.lang.String filePath)
senderName
- The name of the senderfilePath
- The path to the received filepublic void notifyAboutParticipants(java.util.Hashtable participants)
participants
- A hashtable that contains the names of the participants as unique keys and
the network addresses as values.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |