diff options
Diffstat (limited to 'src/com/vaadin/tests/components/window/WindowStyleNames.java')
-rw-r--r-- | src/com/vaadin/tests/components/window/WindowStyleNames.java | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/com/vaadin/tests/components/window/WindowStyleNames.java b/src/com/vaadin/tests/components/window/WindowStyleNames.java deleted file mode 100644 index 3a36926b42..0000000000 --- a/src/com/vaadin/tests/components/window/WindowStyleNames.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.vaadin.tests.components.window; - -import com.vaadin.tests.components.TestBase; -import com.vaadin.ui.Button; -import com.vaadin.ui.Button.ClickEvent; -import com.vaadin.ui.Button.ClickListener; - -public class WindowStyleNames extends TestBase { - - @Override - protected String getDescription() { - return "Click 'add style' to add a 'new' style to the window. The 'old' style should disappear and only the 'new' style should be set. Verify using e.g. firebug"; - } - - @Override - protected Integer getTicketNumber() { - return 3059; - } - - @Override - protected void setup() { - setWindowStyle("old"); - addComponent(new Button("Set style to 'new'", new ClickListener() { - - public void buttonClick(ClickEvent event) { - setWindowStyle("new"); - } - - })); - - addComponent(new Button("Set style to 'custom'", new ClickListener() { - - public void buttonClick(ClickEvent event) { - setWindowStyle("custom"); - } - - })); - - addComponent(new Button("Add 'foo' style", new ClickListener() { - - public void buttonClick(ClickEvent event) { - getMainWindow().addStyleName("foo"); - } - - })); - - } - - protected void setWindowStyle(String string) { - getMainWindow().setStyleName(string); - - } - -} |