summaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-11-23 11:46:14 +0200
committerLeif Åstrand <leif@vaadin.com>2012-11-23 11:46:14 +0200
commit9f97638b0f75b882b76eeb5d2b95f87bb5263a73 (patch)
tree4efd1ee49bb6d7322124e8c8bcf9c2ed7a51f042 /client/src
parentb73ac55836d0d6a56af615572a3d7f29afc3fe5c (diff)
downloadvaadin-framework-9f97638b0f75b882b76eeb5d2b95f87bb5263a73.tar.gz
vaadin-framework-9f97638b0f75b882b76eeb5d2b95f87bb5263a73.zip
Refactor BrowserPopupOpener API (#10241)
* Rename BrowserPopupOpener to BrowserWindowOpener * Rename setPopupName -> setWindowName * Rename BrowserPopupUIProvider -> BrowserWindowUIProvider * Make BrowserWindowUIProvider a private static inner class Change-Id: Id839b274762424bb50fe3590d7cd1187e92baa6c
Diffstat (limited to 'client/src')
-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);
}