|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectagent.interaction.samples.SimplePlace
agent.interaction.samples.SimpleEmailInteraction
public class SimpleEmailInteraction
This example uses a GUI application to show how to answer and reply an e-mail.
One PlaceListener is registered, which receives InteractionEvents.
| Field Summary |
|---|
| Fields inherited from class agent.interaction.samples.SimplePlace |
|---|
sampleAgent, sampleChat, sampleDn, sampleEmail, sampleOpenMedia, samplePlace |
| Constructor Summary | |
|---|---|
SimpleEmailInteraction(java.lang.String windowTitle)
Creates an instance of SimpleEmailInteraction. |
|
| Method Summary | |
|---|---|
void |
createReply()
Creates a reply interaction (sampleEmailReply) and the associated panel, so that the user can fill in the email text then send it. |
void |
displaySampleEmailIn()
Displays the 'From', 'Subject', and 'Text' fields of an inbound e-mail. |
java.lang.String |
getOutboundQueues()
Return an outbound queue to create and/or send a reply e-mail interaction. |
void |
handleInteractionEvent(com.genesyslab.ail.event.InteractionEvent event)
Receives InteractionEvents, which report changes to the status or data for all interactions of this place. |
void |
linkWidgetsToGui()
Links widgets (user interface components) to API functionality and registers a listener for events on the Place the agent has logged in to. |
static void |
main(java.lang.String[] args)
|
void |
setInteractionWidgetState()
This class receives InteractionEvents, which are handled by the handleInteractionEvent() method. |
void |
setPlaceWidgetState()
Any time the place associated with this example changes its state, the example's widgets must be updated to reflect that state. |
void |
setSampleType()
Tells the AgentInteractionGui class which example has called the GUI, so that it can determine which widgets will be enabled when the GUI is created. |
| Methods inherited from class agent.interaction.samples.SimplePlace |
|---|
contactChanged, deleted, dnAdded, dnRemoved, handleDnEvent, handlePlaceEvent, idModified |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleEmailInteraction(java.lang.String windowTitle)
windowTitle - The title of the GUI window for this example.| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void setSampleType()
public void linkWidgetsToGui()
linkWidgetsToGui in class SimplePlaceSimplePlace.linkWidgetsToGui()public void setPlaceWidgetState()
SimplePlace
setPlaceWidgetState in class SimplePlacepublic void createReply()
public void setInteractionWidgetState()
setInteractionWidgetState in class SimplePlacepublic void handleInteractionEvent(com.genesyslab.ail.event.InteractionEvent event)
handleInteractionEvent in interface com.genesyslab.ail.event.InteractionListenerhandleInteractionEvent in class SimplePlacepublic void displaySampleEmailIn()
public java.lang.String getOutboundQueues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||