Examples of focus()


Examples of com.sencha.gxt.widget.core.client.form.TextField.focus()

          f.setValue(sb.toString());
          f.setReadOnly(true);
          f.setWidth(350);
          w.setWidget(f);
          w.show();
          f.focus();
        }
      });
        referMenuItem.setIcon(Images.getImageResources().script());
      return referMenuItem;
    }
View Full Code Here

Examples of com.smartgwt.client.widgets.IButton.focus()

        if (propertyIsReadOnly) {
            memberValuesGrid.setCanEdit(false);
        } else {
            // put a cancel button in the footer strip to allow the user to exit without saving changes
            final IButton cancelButton = new EnhancedIButton(MSG.common_button_cancel());
            cancelButton.focus();
            cancelButton.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {
                public void onClick(ClickEvent clickEvent) {
                    popup.destroy();
                }
            });
View Full Code Here

Examples of com.smartgwt.client.widgets.Img.focus()

        bluePawn.setCanDragReposition(true);
        bluePawn.setCanDrop(true);
        bluePawn.setDragAppearance(DragAppearance.TARGET);
        bluePawn.addDrawHandler(new DrawHandler() {
      public void onDraw(DrawEvent event) {
        bluePawn.focus();
      }
        });
        bluePawn.addFocusChangedHandler(new FocusChangedHandler() {
      public void onFocusChanged(FocusChangedEvent event) {
        changeLabel(focusLabel, bluePawn.getID(), event.getHasFocus());
View Full Code Here

Examples of com.vaadin.testbench.TestBenchElement.focus()

        TestBenchElement cell = $(TableElement.class).first().getCell(3, 0);
        cell.click();

        TestBenchElement button = $(ButtonElement.class).first();
        button.focus();

        int buttonLocation = button.getLocation().getY();

        button.click();
View Full Code Here

Examples of com.vaadin.testbench.elements.ButtonElement.focus()

        cBox.openPopup();
        int i = 0;
        while (i < 3) {
            assertTrue("No item added on focus", cBox.getPopupSuggestions()
                    .contains("Focus" + i++));
            focusTarget.focus();
            ((TestBenchElement) cBox.findElement(By.vaadin("#textbox")))
                    .focus();
        }
        assertTrue("No item added on focus", cBox.getPopupSuggestions()
                .contains("Focus" + i));
View Full Code Here

Examples of com.vaadin.testbench.elements.ComboBoxElement.focus()

    private void openPopup() {
        ComboBoxElement combobox = $(ComboBoxElement.class).first();
        combobox.click();
        combobox.openPopup();
        combobox.focus();

        Actions actions = new Actions(getDriver());
        actions.moveToElement(
                getDriver().findElement(By.className("gwt-MenuItem"))).build()
                .perform();
View Full Code Here

Examples of com.vaadin.testbench.elements.MenuBarElement.focus()

                .perform();
    }

    private MenuBarElement selectMenuBar() {
        MenuBarElement menuBar = $(MenuBarElement.class).first();
        menuBar.focus();

        Actions actions = new Actions(getDriver());
        actions.moveToElement(menuBar).build().perform();

        return menuBar;
View Full Code Here

Examples of com.vaadin.testbench.elements.MenuBarElement.focus()

    @Test
    public void testEnableParentLayout() {
        openTestURL();

        MenuBarElement menu = $(MenuBarElement.class).get(0);
        menu.focus();
        menu.sendKeys(Keys.ARROW_RIGHT);
        menu.sendKeys(Keys.ENTER);

        List<WebElement> captions = driver.findElements(By
                .className("v-menubar-menuitem-caption"));
View Full Code Here

Examples of com.vaadin.testbench.elements.TextFieldElement.focus()

        openTestURL();

        waitForElementVisible(By.className("v-textfield"));

        TextFieldElement textfield = $(TextFieldElement.class).first();
        textfield.focus();
        textfield.sendKeys("test");

        $(ButtonElement.class).first().click();

        new Actions(getDriver()).contextClick(textfield).perform();
View Full Code Here

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

                    @Override
                    public void buttonClick(ClickEvent event) {
                        log.log("button click listener fired");
                    }
                });
        button.focus();

        addComponent(log);
        addComponent(button);
    }
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.