summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-11-23 10:14:28 +0000
committerVaadin Code Review <review@vaadin.com>2012-11-23 10:14:28 +0000
commit325f9e8310fae51591245b1cc373e22a43b4d9d2 (patch)
tree787ed47428391768ce93d64fbf28023299b92576 /client
parent384e57121472afe34b9acecc2ea742e0f6749f34 (diff)
parent9f97638b0f75b882b76eeb5d2b95f87bb5263a73 (diff)
downloadvaadin-framework-325f9e8310fae51591245b1cc373e22a43b4d9d2.tar.gz
vaadin-framework-325f9e8310fae51591245b1cc373e22a43b4d9d2.zip
Merge "Refactor BrowserPopupOpener API (#10241)"
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/extensions/BrowserWindowOpenerConnector.java (renamed from client/src/com/vaadin/client/extensions/BrowserPopupOpenerConnector.java)16
1 files changed, 8 insertions, 8 deletions
diff --git a/client/src/com/vaadin/client/extensions/BrowserPopupOpenerConnector.java b/client/src/com/vaadin/client/extensions/BrowserWindowOpenerConnector.java
index 2615444832..63915af1bd 100644
--- a/client/src/com/vaadin/client/extensions/BrowserPopupOpenerConnector.java
+++ b/client/src/com/vaadin/client/extensions/BrowserWindowOpenerConnector.java
@@ -22,18 +22,18 @@ import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.client.ComponentConnector;
import com.vaadin.client.ServerConnector;
-import com.vaadin.server.BrowserPopupOpener;
-import com.vaadin.shared.ui.BrowserPopupExtensionState;
+import com.vaadin.server.BrowserWindowOpener;
+import com.vaadin.shared.ui.BrowserWindowOpenerState;
import com.vaadin.shared.ui.Connect;
/**
- * Client-side code for {@link BrowserPopupOpener}
+ * Client-side code for {@link BrowserWindowOpener}
*
* @author Vaadin Ltd
* @since 7.0.0
*/
-@Connect(BrowserPopupOpener.class)
-public class BrowserPopupOpenerConnector extends AbstractExtensionConnector
+@Connect(BrowserWindowOpener.class)
+public class BrowserWindowOpenerConnector extends AbstractExtensionConnector
implements ClickHandler {
@Override
@@ -44,13 +44,13 @@ public class BrowserPopupOpenerConnector extends AbstractExtensionConnector
}
@Override
- public BrowserPopupExtensionState getState() {
- return (BrowserPopupExtensionState) super.getState();
+ public BrowserWindowOpenerState getState() {
+ return (BrowserWindowOpenerState) super.getState();
}
@Override
public void onClick(ClickEvent event) {
- String url = getResourceUrl("popup");
+ String url = getResourceUrl(BrowserWindowOpenerState.locationResource);
if (url != null) {
Window.open(url, getState().target, getState().features);
}