Package com.vaadin.ui

Examples of com.vaadin.ui.Button.click()


    @Test
    public void testClickDisabled() {
        Button b = getButton();
        b.setEnabled(false);
        b.click();
        Assert.assertFalse("Disabled button fires click events", clicked);
    }

    @Test
    public void testClickReadOnly() {
View Full Code Here


    @Test
    public void testClickReadOnly() {
        Button b = getButton();
        b.setReadOnly(true);
        b.click();
        Assert.assertFalse("Read only button fires click events", clicked);
    }

    @Test
    public void testClickConnectorDisabled() {
View Full Code Here

            }
        };
        UI ui = createUI();
        b.setParent(ui);
        addClickListener(b);
        b.click();
        Assert.assertFalse("Button with disabled connector fires click events",
                clicked);
    }

    private Button getButton() {
View Full Code Here

        });
        addComponent(roundTripTester);
        addComponent(start);

        if (request.getParameter("go") != null) {
            start.click();
        }
    }

    @Override
    protected String getTestDescription() {
View Full Code Here

        Button red, green;
        layout.addComponent(red = createButton("color:red"));
        layout.addComponent(createButton("color: blue"));
        layout.addComponent(green = createButton("color: green"));

        red.click();
        green.click();
        layout.addComponent(createMarginsToggle());
    }

    private Component createMarginsToggle() {
View Full Code Here

        String caseParameter = request.getParameter("case");
        if (caseParameter != null) {
            int caseIndex = Integer.parseInt(caseParameter);
            Button button = (Button) caseBar.getComponent(caseIndex);
            button.click();
        }
    }

    private void resetState() {
        for (int i = 0; i < sizeBar.getComponentCount(); i++) {
View Full Code Here

                "button200px");
        assertEquals("filteredTwice", button200px.getCaption());

        // simulate click
        assertFalse(controller.clicked);
        button200px.click();
        assertTrue(controller.clicked);
    }

    @Test
    public void testCreateMethod_controllerHasAlreadyAssignedField_assignedFieldIsUsedInsteadOfNew() {
View Full Code Here

                "button200px");
        assertEquals("filteredValue", button200px.getCaption());

        // simulate click
        assertFalse(controller.clicked);
        button200px.click();
        assertTrue(controller.clicked);
    }

    @Test
    public void testCreateMethod_usingOnlyController_controllerCalled() {
View Full Code Here

                "button200px");
        assertEquals("{i18n:test}", button200px.getCaption());

        // simulate click
        assertFalse(controller.clicked);
        button200px.click();
        assertTrue(controller.clicked);
    }

    @Test
    public void testCreateMethod_usingRelativeFilenameInClasspath_xmlReadCorrectly() {
View Full Code Here

           */
          private static final long serialVersionUID = -2425923923914266067L;

      @Override
            public void handleAction(Object sender, Object target) {
                signin.click();
            }
        };

        signin.addClickListener(new ClickListener() {
            /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.