Class GoogleTranslate
java.lang.Object
com.iizix.translate.google.GoogleTranslate
com.iizigo.translate.google.GoogleTranslate
- All Implemented Interfaces:
IEditorTranslator, ITranslator
The Editor version of the Google Translate translator implementation.
- Author:
- Christopher Mindus
Field Summary
Fields inherited from class GoogleTranslate
serverLockedIP_API_KeyConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbooleanConfigures the translator with a property container.voidDeconfigures the translator.static voidsetDemo()Sets the demo mode.Methods inherited from class GoogleTranslate
canTranslate, detectLanguages, getLanguageCode, getLanguageDescription, getLanguages, getLanguages, getLanguages, getName, getReadyState, isLanguageHandled, translate, translate, updateSupportedLanguagesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ITranslator
canTranslate, getLanguageCode, getLanguageDescription, getName, getReadyState, isLanguageHandled, translate, updateSupportedLanguages
Constructor Details
GoogleTranslate
public GoogleTranslate()Constructor.
Method Details
configure
Configures the translator with a property container.- Specified by:
configurein interfaceIEditorTranslator- Parameters:
shell- The shell.- Returns:
- true for OK, false for cancel.
setDemo
public static void setDemo()Sets the demo mode.deconfigure
public void deconfigure()Deconfigures the translator.- Specified by:
deconfigurein interfaceITranslator- Overrides:
deconfigurein classGoogleTranslate