From 20af2f5623d264a418f73cd9cd053462227d0eb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Fri, 3 Aug 2012 16:26:51 +0300 Subject: [PATCH] Support getting translated urls in javascript (#9209) --- .../terminal/AbstractJavaScriptExtension.java | 4 ++ .../gwt/client/JavaScriptConnectorHelper.java | 14 +++-- .../ui/AbstractJavaScriptComponent.java | 4 ++ .../BasicJavaScriptComponent.html | 62 +++++++++++++++++++ .../BasicJavaScriptComponent.java | 15 +++++ .../BasicJavaScriptComponentConnector.js | 3 + 6 files changed, 97 insertions(+), 5 deletions(-) create mode 100644 tests/testbench/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponent.html diff --git a/src/com/vaadin/terminal/AbstractJavaScriptExtension.java b/src/com/vaadin/terminal/AbstractJavaScriptExtension.java index ef90d8b23a..df44c3edd5 100644 --- a/src/com/vaadin/terminal/AbstractJavaScriptExtension.java +++ b/src/com/vaadin/terminal/AbstractJavaScriptExtension.java @@ -5,6 +5,7 @@ package com.vaadin.terminal; import com.vaadin.shared.JavaScriptExtensionState; +import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.ui.JavaScriptCallback; /** @@ -63,6 +64,9 @@ import com.vaadin.ui.JavaScriptCallback; * exception when called. The scheme for conversion between Java types in the * RPC interface and the JavaScript values that should be passed to the * functions is described bellow. + *
  • translateVaadinUri(uri) - Translates a Vaadin URI to a URL + * that can be used in the browser. This is just way of accessing + * {@link ApplicationConnection#translateVaadinUri(String)}
  • * * The connector wrapper also supports these special functions: * * The connector wrapper also supports these special functions: *