/**
  * Gets whether the component is currently performing autocomplete lookups as keystrokes are
  * performed.
  *
  * @return True or false.
  */
 public boolean getAutoComplete() {
   return autoComplete && app.isAutoCompletePossible();
 }
  /**
   * Sets whether the component is currently performing autocomplete lookups as keystrokes are
   * performed.
   *
   * @param val True or false.
   */
  public void setAutoComplete(boolean val) {
    autoComplete = val && app.isAutoCompletePossible();

    if (autoComplete) app.initTranslatedCommands();
  }