本文整理了Java中com.google.gwt.dom.client.Element.blur()
方法的一些代码示例,展示了Element.blur()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.blur()
方法的具体详情如下:
包路径:com.google.gwt.dom.client.Element
类名称:Element
方法名:blur
[英]Removes keyboard focus from this element.
[中]从此元素中删除键盘焦点。
代码示例来源:origin: com.google.gwt/gwt-servlet
public void blur(Element elem) {
elem.blur();
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Call this method when editing is complete.
*
* @param parent the parent Element
* @param value the value associated with the cell
* @param key the unique key associated with the row object
* @param valueUpdater the value update to fire
*/
protected void finishEditing(Element parent, C value, Object key,
ValueUpdater<C> valueUpdater) {
focusedKey = null;
getInputElement(parent).blur();
}
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void setFocus(boolean focused) {
Element elem = getKeyboardSelectedElement();
if (elem != null) {
if (focused) {
elem.focus();
} else {
elem.blur();
}
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void setFocus(Element parent, boolean focused) {
Element focusable = parent.getFirstChildElement().cast();
if (focused) {
focusable.focus();
} else {
focusable.blur();
}
}
}
代码示例来源:origin: net.wetheinter/gwt-user
public void blur(Element elem) {
elem.blur();
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
public void blur(Element elem) {
elem.blur();
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Call this method when editing is complete.
*
* @param parent the parent Element
* @param value the value associated with the cell
* @param key the unique key associated with the row object
* @param valueUpdater the value update to fire
*/
protected void finishEditing(Element parent, C value, Object key,
ValueUpdater<C> valueUpdater) {
focusedKey = null;
getInputElement(parent).blur();
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Call this method when editing is complete.
*
* @param parent the parent Element
* @param value the value associated with the cell
* @param key the unique key associated with the row object
* @param valueUpdater the value update to fire
*/
protected void finishEditing(Element parent, C value, Object key,
ValueUpdater<C> valueUpdater) {
focusedKey = null;
getInputElement(parent).blur();
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public void setFocus(boolean focused) {
Element elem = getKeyboardSelectedElement();
if (elem != null) {
if (focused) {
elem.focus();
} else {
elem.blur();
}
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public void setFocus(boolean focused) {
Element elem = getKeyboardSelectedElement();
if (elem != null) {
if (focused) {
elem.focus();
} else {
elem.blur();
}
}
}
代码示例来源:origin: com.googlecode.gwtquery/gwtquery
/**
* Bind a set of functions to the blur event of each matched element. Or trigger the blur event if
* no functions are provided.
*/
public GQuery blur(Function... f) {
bindOrFire(Event.ONBLUR, null, f);
if (!isEmpty() && f.length == 0) {
get(0).blur();
}
return this;
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public void setFocus(Element parent, boolean focused) {
Element focusable = parent.getFirstChildElement().cast();
if (focused) {
focusable.focus();
} else {
focusable.blur();
}
}
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public void setFocus(Element parent, boolean focused) {
Element focusable = parent.getFirstChildElement().cast();
if (focused) {
focusable.focus();
} else {
focusable.blur();
}
}
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
@Override
public void setFocus(boolean focused) {
if (focused) {
getFileInputElement().focus();
} else {
getFileInputElement().blur();
}
}
代码示例来源:origin: dennisjzh/GwtMobile-UI
/**
* Go home and clear the stack. Just pass "this" from the calling page.
* </br>
* By Frank Mena 2012-04-11
*
* @param fromPage the from page
*/
public void goHome(Page fromPage) {
if (false == _history.empty()) {
Page homePage = _history.firstElement();
_history.clear();
Element focus = Utils.getActiveElement();
focus.blur();
final Transition transition = Transition.SLIDE;
transition.start(fromPage, homePage, RootLayoutPanel.get(), true);
}
}
代码示例来源:origin: dennisjzh/GwtMobile-UI
public void collapse() {
this.addStyleName(Secondary.Collapsed);
this.removeStyleName(Secondary.Expanded);
Element focus = Utils.getActiveElement();
focus.blur();
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {
if (_content != null)
_content.setHeight("0px");
}
});
}
代码示例来源:origin: dennisjzh/GwtMobile-UI
@Override
public void goTo(Page toPage, Object params, Transition transition) {
Element focus = Utils.getActiveElement();
focus.blur();
final Page fromPage = current();
setNavigateInfo(fromPage, params, false);
add(toPage);
toPage.setTransition(transition);
if (transition != null) {
transition.start(fromPage, toPage, RootLayoutPanel.get(), false);
} else {
Transition.start(fromPage, toPage, RootLayoutPanel.get());
}
}
代码示例来源:origin: dennisjzh/GwtMobile-UI
@Override
public void goBack(Object returnValue) {
Page fromPage = back();
setNavigateInfo(fromPage, returnValue, true);
final Page toPage = current();
if (toPage == null) {
// exit app here.
return;
}
Element focus = Utils.getActiveElement();
focus.blur();
final Transition transition = fromPage.getTransition();
if (transition != null) {
transition.start(fromPage, toPage, RootLayoutPanel.get(), true);
}
else {
Transition.start(fromPage, toPage, RootLayoutPanel.get());
}
}
内容来源于网络,如有侵权,请联系作者删除!