/** * Attach an event handler function for one or more events to the selected elements. */ public GQuery on(String eventName, Object data, Function... funcs) { return bind(eventName, data, funcs); }
/** * Attach an event handler function for one or more events to the selected elements. */ public GQuery on(String eventName, Function... funcs) { return bind(eventName, funcs); }
/** * Bind a function to the mouseover event of each matched element. A method for simulating * hovering (moving the mouse on, and off, an object). This is a custom method which provides an * 'in' to a frequent task. Whenever the mouse cursor is moved over a matched element, the first * specified function is fired. Whenever the mouse moves off of the element, the second specified * function fires. * * Since GQuery 1.4.0, this method binds handlers for both mouseenter and mouseleave events. */ public GQuery hover(Function fover, Function fout) { return bind("mouseenter", fover).bind("mouseleave", fout); }
/** * Bind a function to the load event of each matched element. */ @Deprecated public GQuery load(Function f) { return bind(Event.ONLOAD, f); }
/** * Bind Handlers or fire Events for each matched element. */ private GQuery bindOrFire(int eventbits, final Object data, final Function... funcs) { if (funcs.length == 0) { return trigger(eventbits); } else { return bind(eventbits, data, funcs); } }
@Override protected void setupEnabledSearchField() { super.setupEnabledSearchField(); getSelectedItem().bind("focus", activateAction); }
/** * Bind Handlers or fire Events for each matched element. */ private GQuery bindOrFire(String eventname, final Object data, final Function... funcs) { if (funcs.length == 0) { return as(Events).triggerHtmlEvent(eventname); } else { return bind(eventname, data, funcs); } }
@Override protected void setupEnabledSearchField() { super.setupEnabledSearchField(); getSelectedItem().bind("focus", activateAction); }
private void searchFieldDisabled() { isDisabled = selectElement.isDisabled(); if (isDisabled) { container.addClass(css.chznDisabled()); InputElement.as(searchField.get(0)).setDisabled(true); if (!isMultiple) { selectedItem.unbind("focus", activateAction); } } else { container.removeClass(css.chznDisabled()); InputElement.as(searchField.get(0)).setDisabled(false); if (!isMultiple) { selectedItem.bind("focus", activateAction); } } }