Examples of focus()


Examples of com.google.gwt.dom.client.Element.focus()

        boolean preventDefault = true;
        if (Element.is(target)) {
            Element ele = Element.as(target);
            //INPUT element will not get focus if default action is prevented.
            if (Utils.isHtmlFormControl(ele)) {
                ele.focus();
                preventDefault = false;
            }
        }
        if (preventDefault) {
            e.preventDefault();   //prevent default action of selecting text           
View Full Code Here

Examples of com.google.gwt.dom.client.Element.focus()

        boolean preventDefault = true;
        if (Element.is(target)) {
            Element ele = Element.as(target);
            //INPUT element will not get focus if default action is prevented.           
            if (Utils.isHtmlFormControl(ele)) {
                ele.focus();
                preventDefault = false;
            }
        }
        if (preventDefault) {
            e.preventDefault();   //prevent default action of selecting text           
View Full Code Here

Examples of com.google.gwt.dom.client.InputElement.focus()

  }

  protected String edit(Element parent, String value) {
    setValue(parent, value, value);
    InputElement input = (InputElement) parent.getFirstChild();
    input.focus();
    input.select();
    return value;
  }

  private String cancel(Element parent, String value) {
View Full Code Here

Examples of com.google.gwt.dom.client.InputElement.focus()

        valueUpdater.update(checked);
      }

      if (ignoreNextBlur) {
        ignoreNextBlur = false;
        input.focus();
      }
    }
  }

  @Override
View Full Code Here

Examples of com.google.gwt.dom.client.TableCellElement.focus()

        String cellMultipleValuesStyle = resources.cellTableCellMultipleValues();

        tce.removeClassName( cellMultipleValuesStyle );
        tce.removeClassName( cellOtherwiseStyle );
        tce.addClassName( cellSelectedStyle );
        tce.focus();
    }

    @Override
    void showColumn(int index) {
        if ( index < 0 ) {
View Full Code Here

Examples of com.google.gwt.query.client.GQuery.focus()

    @Override
    public void setFocus(boolean focused) {
        GQuery focusElement = getFocusableElement();
        if (focused) {
            focusElement.focus();
        } else {
            focusElement.blur();
        }
    }
View Full Code Here

Examples of com.google.gwt.user.client.Element.focus()

        elemStyle.setTop(-10, Unit.PX);
        elemStyle.setWidth(0, Unit.PX);
        elemStyle.setHeight(0, Unit.PX);

        contentPanel.getElement().appendChild(e);
        e.focus();
        contentPanel.getElement().removeChild(e);
    }

    private void setVaadinModality(boolean modality) {
        vaadinModality = modality;
View Full Code Here

Examples of com.google.gwt.user.client.ui.impl.FocusImpl.focus()

  public void setFocus(final boolean focused) {
    final FocusImpl support = this.getFocusSupport();
    final Element element = this.getElement();
    if (focused) {
      support.focus(element);
    } else {
      support.blur(element);
    }
  }
View Full Code Here

Examples of com.salas.bb.views.feeds.IFeedDisplay.focus()

            // Focus traversal is asynchronous. During the next article selection
            // it was moved to the next article, but when current article will be
            // removed the focus will be forwarded away from the display. We need
            // to get it back.
            feedDisplay.focus();
        }

        if (!articleWasSelected)
        {
            IArticleListNavigationListener nav = GlobalController.SINGLETON.getNavigationListener();
View Full Code Here

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

    event.stopPropagation();

    for (int i = 0; i < getWidgetCount(); i++) {
      Component c = (Component) getWidget(i);
      if (c.isEnabled() && !c.getFocusSupport().isIgnore()) {
        c.focus();
        break;
      }
    }
  }
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.