Package com.google.gwt.language.client.translation

Examples of com.google.gwt.language.client.translation.Language


   */
  private Button createTranslateButton() {
    Button translateButton = new Button("Translate");
    translateButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        Language src = Language.valueOf(sourceLanguages.getItemText(sourceLanguages.getSelectedIndex()));
        Language dest = Language.valueOf(destinationLanguages.getItemText(destinationLanguages.getSelectedIndex()));

        // Translation API call to translate text
        Translation.translate(inputTextArea.getText(), src, dest,
            new TranslationCallback() {
              @Override
View Full Code Here

TOP

Related Classes of com.google.gwt.language.client.translation.Language

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.