org.votech.ds6.widgets
Interface MessageSource

All Known Implementing Classes:
AbstractMessageSource

public interface MessageSource

A MessageSource constructs a Message when the menu item is selected, and processes any object returned by the message recipient.

Author:
jdt

Method Summary
 org.votech.plastic.outgoing.messages.Message getMessage(org.votech.plastic.managers.PlasticApplication destination)
          Construct a message to be sent when the menu is activated.
 void processReturnValue(org.votech.plastic.managers.PlasticApplication sender, java.lang.Object result)
          Perform any post-processing on the message response.
 void processReturnValues(java.util.Map<org.votech.plastic.managers.PlasticApplication,java.lang.Object> result)
          Perform any post-processing on the message response if we broadcast to all.
 

Method Detail

getMessage

org.votech.plastic.outgoing.messages.Message getMessage(org.votech.plastic.managers.PlasticApplication destination)
Construct a message to be sent when the menu is activated.

Parameters:
destination - the destination of the message - could be useful to some MessageSources. Could be null if the message is to be broadcast.
Returns:

processReturnValue

void processReturnValue(org.votech.plastic.managers.PlasticApplication sender,
                        java.lang.Object result)
Perform any post-processing on the message response.

Parameters:
sender - who sent us this
result - the result!

processReturnValues

void processReturnValues(java.util.Map<org.votech.plastic.managers.PlasticApplication,java.lang.Object> result)
Perform any post-processing on the message response if we broadcast to all.

Parameters:
result -


Copyright © 2006 VOTech. All Rights Reserved.