import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.JsArrayMixed;
import com.google.gwt.core.client.JsArrayString;
+import com.google.gwt.core.client.ScriptInjector;
import com.google.gwt.dom.client.*;
import com.google.gwt.dom.client.Style.Display;
import com.google.gwt.dom.client.Style.HasCssName;
* '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.
*/
LazyGQuery<T> hover(Function fover, Function fout);
*/
LazyGQuery<T> trigger(int eventbits, int... keys);
+ /**
+ * Trigger a event in all matched elements.
+ *
+ * @param eventName An string representing the type of the event desired
+ * @param datas Additional parameters to pass along to the event handlers.
+ */
+ LazyGQuery<T> trigger(String eventName, Object... datas);
+
/**
* Removes all events that match the eventbits.
*/
*/
package com.google.gwt.query.client.plugins;
import com.google.gwt.dom.client.Element;
+import com.google.gwt.dom.client.FormElement;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.dom.client.Node;
import com.google.gwt.query.client.Function;
/**
* Trigger a html event in all matched elements.
*
- * @param htmlEvent An string representing the html event desired
+ * @param htmlEvent A string representing the desired html event.
* @functions a set of function to run if the event is not canceled.
*/
LazyEvents<T> triggerHtmlEvent(String htmlEvent, Function... functions);
+ /**
+ * Trigger a html event in all matched elements.
+ *
+ * @param htmlEvent An string representing the desired html event.
+ * @functions a set of function to run if the event is not canceled.
+ */
+ LazyEvents<T> triggerHtmlEvent(String htmlEvent, Object[] datas, Function... functions);
+
/**
* Removes all handlers, that matches the events bits passed, from each element.
*