agent.interaction.samples.outbound
Class VoiceInteractionAdapterForOutbound

java.lang.Object
  extended by agent.interaction.samples.outbound.VoiceInteractionAdapterForOutbound

public class VoiceInteractionAdapterForOutbound
extends java.lang.Object

Manages voice, record, and chain widgets for the selected interaction.
At runtime, an instance of this class lists the voice interactions of the monitored place in an interaction table. If the user selects one of then, voice, record, and chain panels update. this enables the user to process the outbound interaction, including records and chain data.


Nested Class Summary
 class VoiceInteractionAdapterForOutbound.ChainedRecordSelectionListener
          Handles selection in the record table of the outbound chain.
 class VoiceInteractionAdapterForOutbound.ComboBoxListener
          Handles selection in comboboxes.
 class VoiceInteractionAdapterForOutbound.InteractionSelectionListener
          Handles selection in the interaction table.
 
Constructor Summary
VoiceInteractionAdapterForOutbound(com.genesyslab.ail.Place _samplePlace, com.genesyslab.ail.Dn _sampleDn, com.genesyslab.ail.OutboundService _outboundService, AgentInteractionData _agentInteractionData, agent.interaction.samples.outbound.AgentOutboundGui _gui)
          Creates an instance of VoiceInteractionHandlerForOutbound.
 
Method Summary
 void handleInteractionEvent(com.genesyslab.ail.event.InteractionEvent event)
          Receives InteractionEvent, which report changes to one interaction of the place.
 void handlePlaceEvent(com.genesyslab.ail.event.PlaceEvent evt)
          Receives PlaceEvent, which may report changes to one chain of the place.
 void linkWidgetsToGui()
          Links widgets (user interface components) to API functionality.
 void setChainWidgets()
          Enables or disables record widgets accordingly with the current chain's data.
 void setInteractionWidgetState()
          This method enables or disables the specified widgets, which are normally just buttons and radio buttons, but may include other widgets.
 void setRecordWidgets()
          Enables or disables record widgets accordingly with the selected record's data.
 void updateSelectedReferences()
          Retrieves outbound objects and then, updates widgets.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoiceInteractionAdapterForOutbound

public VoiceInteractionAdapterForOutbound(com.genesyslab.ail.Place _samplePlace,
                                          com.genesyslab.ail.Dn _sampleDn,
                                          com.genesyslab.ail.OutboundService _outboundService,
                                          AgentInteractionData _agentInteractionData,
                                          agent.interaction.samples.outbound.AgentOutboundGui _gui)
Creates an instance of VoiceInteractionHandlerForOutbound.

Method Detail

linkWidgetsToGui

public void linkWidgetsToGui()
Links widgets (user interface components) to API functionality. The linked widgets are buttons for processing:

See Also:
SimplePlace#linkWidgetsToGui()

setInteractionWidgetState

public void setInteractionWidgetState()
This method enables or disables the specified widgets, which are normally just buttons and radio buttons, but may include other widgets. To do this, it uses the isPossible() method of the Possible interface. The isPossible() method returns either true or false, depending on whether a particular action is possible. This boolean value is used to determine whether the widget will be enabled.


setRecordWidgets

public void setRecordWidgets()
Enables or disables record widgets accordingly with the selected record's data.


setChainWidgets

public void setChainWidgets()
Enables or disables record widgets accordingly with the current chain's data.


handleInteractionEvent

public void handleInteractionEvent(com.genesyslab.ail.event.InteractionEvent event)
Receives InteractionEvent, which report changes to one interaction of the place. Because this method is called in the PlaceListener, this method creates a thread to manage the event without delaying the publication of further incoming events.


handlePlaceEvent

public void handlePlaceEvent(com.genesyslab.ail.event.PlaceEvent evt)
Receives PlaceEvent, which may report changes to one chain of the place. Because this method is called in the PlaceListener, this method creates a thread to manage the event without delaying the publication of further incoming events.


updateSelectedReferences

public void updateSelectedReferences()
Retrieves outbound objects and then, updates widgets.