Package org.speakright.core

Examples of org.speakright.core.AppEvent


  public MyMenu() {
    super("mymenu");
    setChoiceQuestion(m_ask);
    addChoice("choice1", m_choice1);
    addChoice("choice2", m_choice2);
    addChoice("choice3", new AppEvent("restart"));
   
//    m_choice1.m_addBindingX = true;

  }
View Full Code Here


   * @return true if event matches eventName
   */
  protected boolean isAppEvent(ThrowEvent event, String eventName)
  {
    if (event instanceof AppEvent) {
      AppEvent ev = (AppEvent)event;
      if (ev.name().equals(eventName)) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

  }
 
  public FlowList(IFlow flow1, String eventName)
  {
    add(flow1);
    add(new AppEvent(eventName));
  }
View Full Code Here

  }
  public FlowList(IFlow flow1, IFlow flow2, String eventName)
  {
    add(flow1);
    add(flow2);
    add(new AppEvent(eventName));
  }
View Full Code Here

  public FlowList(IFlow flow1, IFlow flow2, IFlow flow3, String eventName)
  {
    add(flow1);
    add(flow2);
    add(flow3);
    add(new AppEvent(eventName));
  }
View Full Code Here

  {
    add(flow1);
    add(flow2);
    add(flow3);
    add(flow4);
    add(new AppEvent(eventName));
  }
View Full Code Here

      super("mainmenu");
      String s = "Main Menu.  You can say: choose character, voting results, call statistics, speakright, or goodbye.";
      QuestionFlow quest = new QuestionFlow("inline:character results statistics speakright goodbye", s);
      setChoiceQuestion(quest);
     
      addChoice("character", new AppEvent(App.BRANCH_START_AGAIN));
      addChoice("results", new VotingResultsList());
      addChoice("statistics", new PromptFlow("This feature has not yet been implemented.")); //new CustomEvent("restart"));
      addChoice("speakright", new PromptFlow("SpeakRight is an open-source Java framework for speech applications using Voice XML."));
      addChoice("goodbye", new DisconnectFlow("Goodbye."));
    }
View Full Code Here

TOP

Related Classes of org.speakright.core.AppEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.