Examples of focus()


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

        Button focusButton = new Button("Set focus on TextField");
        focusButton.addClickListener(new Button.ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                testField.focus();

            }
        });
        addComponent(focusButton);
View Full Code Here

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

        addComponent(select);
        addComponent(text);
        Button focusText = new Button("Focus text", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                text.focus();
            }
        });
        focusText.setClickShortcut(KeyCode.T, ModifierKey.ALT);

        addComponent(focusText);
View Full Code Here

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

                            }
                            tfs[idx].setValue("");
                            tfs[idx].setValue(txt.substring(0, 4));
                            if (idx < tfs.length - 1) {
                                TextField next = tfs[idx + 1];
                                next.focus();
                                if (len > 4) {
                                    next.setValue(txt.substring(4, len > 8 ? 8
                                            : len));
                                } else {
                                    next.selectAll();
View Full Code Here

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

            @Override
            public Component getPopupComponent() {
                VerticalLayout vl = new VerticalLayout();
                TextField field1 = new TextField();
                field1.setValue("one");
                field1.focus();
                vl.addComponent(field1);
                TextField field2 = new TextField();
                field2.setValue("two");
                vl.addComponent(field2);
                vl.setWidth("600px");
View Full Code Here

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

                        new ClickListener() {
                            @Override
                            public void buttonClick(ClickEvent event) {
                                getUI().addWindow(win);
                                win.center();
                                win.focus();
                                event.getButton().setEnabled(false);
                            }
                        });
                show.addStyleName("primary");
                addComponent(show);
View Full Code Here

Examples of com.zaranux.os.client.ui.View.focus()

    Window.enableScrolling(false);
    //setShortKeys();
    View view = new View(0);
    views.add(0, view);
    view.show();
    view.focus();
    //background.setSize("100%", "100%");
  }
 

 
View Full Code Here

Examples of de.willuhn.jameica.gui.input.TextInput.focus()

    zweck.setValidChars(HBCIProperties.HBCI_DTAUS_VALIDCHARS);

    // Das erste Feld ohne Inhalt kriegt den Fokus
    if (!haveFocus && (text == null || text.length() == 0))
    {
      zweck.focus();
      haveFocus = true;
    }
    container.addInput(zweck);
    this.fields.add(zweck);
  }
View Full Code Here

Examples of elemental.dom.Element.focus()

  public final void setActive(boolean isActive, Css css) {
    // Show the selection on the element returned by the node renderer
    Element selectionElement = getSelectionElement();
    CssUtils.setClassNameEnabled(selectionElement, css.active(), isActive);
    if (isActive) {
      selectionElement.focus();
    }
  }

  /**
   * Sets whether or not this node has the selected styling applied.
View Full Code Here

Examples of elemental.html.Element.focus()

  public final void setActive(boolean isActive, Css css) {
    // Show the selection on the element returned by the node renderer
    Element selectionElement = getSelectionElement();
    CssUtils.setClassNameEnabled(selectionElement, css.active(), isActive);
    if (isActive) {
      selectionElement.focus();
    }
  }

  /**
   * Sets whether or not this node has the selected styling applied.
View Full Code Here

Examples of elemental.html.InputElement.focus()

    // Wipe the content from the element.
    element.setTextContent("");

    // Attach the temporary input box.
    element.appendChild(input);
    input.focus();
    input.select();

    // If we hit enter, commit the action.
    input.addEventListener(Event.KEYUP, keyListener, false);
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.