diff options
author | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2008-05-16 07:20:01 +0000 |
---|---|---|
committer | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2008-05-16 07:20:01 +0000 |
commit | cd20c16a2a2f38ec97434b8db627bd0d7ff2b38f (patch) | |
tree | a0daad107a6fe1c7b7fc641cbd56bef2782ed90c /src/com/itmill/toolkit/tests/tickets/Ticket1659.java | |
parent | b7542659d89506ad9b1dfc2ee37636123822c8b8 (diff) | |
download | vaadin-framework-cd20c16a2a2f38ec97434b8db627bd0d7ff2b38f.tar.gz vaadin-framework-cd20c16a2a2f38ec97434b8db627bd0d7ff2b38f.zip |
Testcase for #1659
svn changeset:4519/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/tests/tickets/Ticket1659.java')
-rw-r--r-- | src/com/itmill/toolkit/tests/tickets/Ticket1659.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/tests/tickets/Ticket1659.java b/src/com/itmill/toolkit/tests/tickets/Ticket1659.java new file mode 100644 index 0000000000..77978293d3 --- /dev/null +++ b/src/com/itmill/toolkit/tests/tickets/Ticket1659.java @@ -0,0 +1,26 @@ +package com.itmill.toolkit.tests.tickets; + +import com.itmill.toolkit.Application; +import com.itmill.toolkit.terminal.ExternalResource; +import com.itmill.toolkit.ui.Button; +import com.itmill.toolkit.ui.Window; +import com.itmill.toolkit.ui.Button.ClickEvent; + +public class Ticket1659 extends Application { + + public void init() { + final Window mainWin = new Window(); + setMainWindow(mainWin); + mainWin.addComponent(new Button("Change URI using Application.getURL()", new Button.ClickListener() { + + public void buttonClick(ClickEvent event) { + mainWin.open(new ExternalResource(getURL() + "#"+System.currentTimeMillis())); + }})); + mainWin.addComponent(new Button("Change URI uring Window.getURL()", new Button.ClickListener() { + + public void buttonClick(ClickEvent event) { + mainWin.open(new ExternalResource(mainWin.getURL() + "#"+System.currentTimeMillis())); + }})); + } + +} |