diff options
Diffstat (limited to 'src/com/vaadin/tests/tickets/Ticket1969.java')
-rw-r--r-- | src/com/vaadin/tests/tickets/Ticket1969.java | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/src/com/vaadin/tests/tickets/Ticket1969.java b/src/com/vaadin/tests/tickets/Ticket1969.java deleted file mode 100644 index 5e183beb78..0000000000 --- a/src/com/vaadin/tests/tickets/Ticket1969.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.vaadin.tests.tickets;
-
-import com.vaadin.terminal.UserError;
-import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
-import com.vaadin.ui.Button;
-import com.vaadin.ui.Label;
-import com.vaadin.ui.OrderedLayout;
-import com.vaadin.ui.TabSheet;
-import com.vaadin.ui.Table;
-import com.vaadin.ui.Window;
-import com.vaadin.ui.Button.ClickEvent;
-
-public class Ticket1969 extends com.vaadin.Application {
-
- @Override
- public void init() {
- final Window main = new Window(getClass().getName().substring(
- getClass().getName().lastIndexOf(".") + 1));
- setMainWindow(main);
-
- main.getLayout().setSizeFull();
-
- TabSheet ts = new TabSheet();
- ts.setSizeFull();
-
- final Table t = TestForTablesInitialColumnWidthLogicRendering
- .getTestTable(7, 2000);
- t.setSizeFull();
- ts.addTab(t, "Table, scrollins should not flash", null);
-
- final Label testContent = new Label(
- "TabSheet by default uses caption, icon, errors etc. from Components. ");
-
- testContent.setCaption("Introduction to test");
-
- ts.addTab(testContent);
-
- final OrderedLayout actions = new OrderedLayout();
-
- actions.setCaption("Test actions");
-
- ts.addTab(actions);
-
- Button b;
-
- b = new Button(
- "change introduction caption (should add * to tab name)",
- new Button.ClickListener() {
- public void buttonClick(ClickEvent event) {
- testContent.setCaption(testContent.getCaption() + "*");
- }
- });
- actions.addComponent(b);
-
- b = new Button("change tab caption (should add * to tab name)",
- new Button.ClickListener() {
- public void buttonClick(ClickEvent event) {
- actions.setCaption(actions.getCaption() + "*");
- }
- });
-
- actions.addComponent(b);
-
- final UserError e = new UserError("Test error");
-
- b = new Button("Toggle error", new Button.ClickListener() {
- public void buttonClick(ClickEvent event) {
- if (testContent.getComponentError() == null) {
- testContent.setComponentError(e);
- } else {
- testContent.setComponentError(null);
- }
- }
- });
- actions.addComponent(b);
-
- b = new Button("Change table caption", new Button.ClickListener() {
- public void buttonClick(ClickEvent event) {
- t.setCaption(t.getCaption() + "*");
- }
- });
- actions.addComponent(b);
-
- b = new Button("Toggle Table error", new Button.ClickListener() {
- public void buttonClick(ClickEvent event) {
- if (t.getComponentError() == null) {
- t.setComponentError(e);
- } else {
- t.setComponentError(null);
- }
- }
- });
-
- actions.addComponent(b);
-
- for (int i = 0; i < 20; i++) {
- Label l = new Label("Test Content");
- l.setCaption("Extra tab " + i);
- ts.addComponent(l);
- }
-
- main.addComponent(ts);
-
- }
-}
\ No newline at end of file |