Package com.google.gwt.event.dom.client

Examples of com.google.gwt.event.dom.client.FocusHandler


      @Override
      public void onClick(final ClickEvent event) {
        doCreateGroup();
      }
    });
    addNew.addFocusHandler(new FocusHandler() {
      @Override
      public void onFocus(FocusEvent event) {
        // unregister the keys for the 'groups' table so that pressing ENTER
        // when the 'addNew' button has the focus triggers the button (if the
        // keys for the 'groups' table would not be unregistered the 'addNew'
View Full Code Here


    // Resetting the "original text" on focus ensures that we are
    // up to date with non-user updates of the text (calls to
    // setText()...) and also up to date with user changes which
    // occured after enabling "widget".
    tb.addFocusHandler(new FocusHandler() {
        @Override
        public void onFocus(FocusEvent event) {
          strings.put(tb, tb.getText());
        }
      });
View Full Code Here

        // use normal textfield styles as a basis
        text.setStyleName(VTextField.CLASSNAME);
        // add datefield spesific style name also
        text.addStyleName(CLASSNAME + "-textfield");
        text.addChangeHandler(this);
        text.addFocusHandler(new FocusHandler() {
            public void onFocus(FocusEvent event) {
                text.addStyleName(VTextField.CLASSNAME + "-"
                        + VTextField.CLASSNAME_FOCUS);
                if (prompting) {
                    text.setText("");
View Full Code Here

          changeListeners.fireChange(DatePicker.this);
        if(hideOnSelect)
          hideCalendar();
      }
    });
    textbox.addFocusHandler(new FocusHandler() {
     
      @Override
      public void onFocus(FocusEvent event) {
        if (showOnFocus)
          showCalendar();
View Full Code Here

  private transient boolean promptVisibility = true;

  public TextBox() {
    initWidget(uiBinder.createAndBindUi(this));

    textBox.addFocusHandler(new FocusHandler() {
      @Override
      public void onFocus(FocusEvent event) {
        focused = true;
        showPrompt(false);
      }
View Full Code Here

    deckPanel.showWidget(LABEL_INDEX);

    // When we receive focus, switch to edit mode.
    focusPanel.addFocusHandler(
        new FocusHandler() {
          @Override
          public void onFocus(FocusEvent event) {
            switchToEdit();
          }
        });
View Full Code Here

        Label headerSignalRef = new Label("Signal ref");
        headerSignalRef.setStyleName("bpm-label-header");
        layout.add(headerSignalRef, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));

        signalRef = new TextBox();
        signalRef.addFocusHandler(new FocusHandler() {
     
      @Override
      public void onFocus(FocusEvent event) {
        if (listBox.getSelectedIndex() != -1) {
          listBoxTokens.setItemSelected(listBox.getSelectedIndex(), false);
View Full Code Here

        event.isMetaKeyDown();
        assert event.getCharCode() > 0;
        passTest(event.getNativeEvent());
      }
    });
    textBox.addFocusHandler(new FocusHandler() {
      public void onFocus(FocusEvent event) {
        passTest(event.getNativeEvent());
      }
    });
    textBox.addBlurHandler(new BlurHandler() {
View Full Code Here

    }

    ++row;
    for (int i = 0; i < 5; i++) {
      final CheckBox box = new CheckBox("eventful cell(1," + i + "</b>)");
      box.addFocusHandler(new FocusHandler() {
        public void onFocus(FocusEvent event) {
          Window.setTitle(box.getText() + " has focus");
        }
      });
      final int index = i;
View Full Code Here

        // use normal textfield styles as a basis
        text.setStyleName(VTextField.CLASSNAME);
        // add datefield spesific style name also
        text.addStyleName(CLASSNAME + "-textfield");
        text.addChangeHandler(this);
        text.addFocusHandler(new FocusHandler() {
            public void onFocus(FocusEvent event) {
                text.addStyleName(VTextField.CLASSNAME + "-"
                        + VTextField.CLASSNAME_FOCUS);
            }
        });
View Full Code Here

TOP

Related Classes of com.google.gwt.event.dom.client.FocusHandler

Copyright © 2018 www.massapicom. 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.