@Override public void setFocus(boolean focused) { GQuery focusElement = getFocusableElement(); if (focused) { focusElement.focus(); } else { focusElement.blur(); } }
@Override public void setFocus(boolean focused) { GQuery focusElement = getFocusableElement(); if (focused) { focusElement.focus(); } else { focusElement.blur(); } }
@Override public void setFocus(boolean focused) { GQuery focusElement = getFocusableElement(); if (focused) { focusElement.focus(); } else { focusElement.blur(); } }
$(myEditor).blur(new Function() { @Override public boolean f(Event e) {
searchField.blur(new Function() { @Override public boolean f(Event e) {
searchField.blur(new Function() { @Override public boolean f(Event e) {
searchField.blur(new Function() { @Override public boolean f(Event e) {
@Override protected void resultsHide() { super.resultsHide(); if (getDropdown().hasClass(getCss().isOpen()) && getOptions().isMobileAnimation()) { final int windowHeight = Window.getClientHeight(); int speed = getOptions().getMobileAnimationSpeed(); getDropdown() .css("top", "0") .css("left", "0") .css("right", "0") .animate("top: 1000px, left: 0, right: 0", speed * 2, new Function() { public void f() { getDropdown() .css("bottom", "") .css(isRTL() ? "left" : "right", "") .css("top", windowHeight + 20 + "px") .css(isRTL() ? "right" : "left", "-9000px"); } }); } else { getDropdown().css("bottom", "").css(isRTL() ? "left" : "right", ""); } getDropdown().removeClass(getCss().isOpen()); getSearchField().blur(); }
@Override protected void resultsHide() { super.resultsHide(); if (getDropdown().hasClass(getCss().isOpen()) && getOptions().isMobileAnimation()) { final int windowHeight = Window.getClientHeight(); int speed = getOptions().getMobileAnimationSpeed(); getDropdown() .css("top", "0") .css("left", "0") .css("right", "0") .animate("top: 1000px, left: 0, right: 0", speed * 2, new Function() { public void f() { getDropdown() .css("bottom", "") .css(isRTL() ? "left" : "right", "") .css("top", windowHeight + 20 + "px") .css(isRTL() ? "right" : "left", "-9000px"); } }); } else { getDropdown().css("bottom", "").css(isRTL() ? "left" : "right", ""); } getDropdown().removeClass(getCss().isOpen()); getSearchField().blur(); }