public abstract class EventsHelper extends Object
Helper to bind javascript scope and events
| Constructor and Description |
|---|
EventsHelper() |
| Modifier and Type | Method and Description |
|---|---|
static ChainableStatement |
bind(EventLabel eventLabel,
JsScope jsScope)
Binds a handler to one or more events (like click) for each matched element.
|
static ChainableStatement |
blur()
Triggers the blur event of each matched element.
|
static ChainableStatement |
blur(JsScope jsScope)
Bind a function to the blur event of each matched element.
|
static ChainableStatement |
change()
Triggers the change event of each matched element.
|
static ChainableStatement |
change(JsScope jsScope)
Bind a function to the change event of each matched element.
|
static ChainableStatement |
click()
Triggers the click event of each matched element.
|
static ChainableStatement |
click(JsScope jsScope)
Bind a function to the click event of each matched element.
|
static ChainableStatement |
dblclick()
Triggers the dblclick event of each matched element.
|
static ChainableStatement |
dblclick(JsScope jsScope)
Bind a function to the dblclick event of each matched element.
|
static ChainableStatement |
die(EventLabel eventLabel,
JsScope jsScope)
This does the opposite of live, it removes a bound live event.
|
static ChainableStatement |
error()
Triggers the error event of each matched element.
|
static ChainableStatement |
error(JsScope jsScope)
Bind a function to the error event of each matched element.
|
static ChainableStatement |
focus()
Triggers the focus event of each matched element.
|
static ChainableStatement |
focus(JsScope jsScope)
Bind a function to the focus event of each matched element.
|
static ChainableStatement |
hover(JsScope over,
JsScope out)
Simulates hovering (moving the mouse on, and off, an object).
|
static ChainableStatement |
keydown()
Triggers the keydown event of each matched element.
|
static ChainableStatement |
keydown(JsScope jsScope)
Bind a function to the keydown event of each matched element.
|
static ChainableStatement |
keypress()
Triggers the keypress event of each matched element.
|
static ChainableStatement |
keypress(JsScope jsScope)
Bind a function to the keypress event of each matched element.
|
static ChainableStatement |
keyup()
Triggers the keyup event of each matched element.
|
static ChainableStatement |
keyup(JsScope jsScope)
Bind a function to the keyup event of each matched element.
|
static ChainableStatement |
live(EventLabel eventLabel,
JsScope jsScope)
Binds a handler to an event (like click) for all current - and future - matched element.
|
static ChainableStatement |
load(JsScope jsScope)
Bind a function to the load event of each matched element.
|
static ChainableStatement |
mousedown(JsScope jsScope)
Bind a function to the mousedown event of each matched element.
|
static ChainableStatement |
mouseenter(JsScope jsScope)
Bind a function to the mouseenter event of each matched element.
|
static ChainableStatement |
mouseleave(JsScope jsScope)
Bind a function to the mouseleave event of each matched element.
|
static ChainableStatement |
mousemove(JsScope jsScope)
Bind a function to the mousemove event of each matched element.
|
static ChainableStatement |
mouseout(JsScope jsScope)
Bind a function to the mouseout event of each matched element.
|
static ChainableStatement |
mouseover(JsScope jsScope)
Bind a function to the mouseover event of each matched element.
|
static ChainableStatement |
mouseup(JsScope jsScope)
Bind a function to the mouseup event of each matched element.
|
static ChainableStatement |
one(EventLabel eventLabel,
JsScope jsScope)
Binds a handler to one or more events to be executed once for each matched element.
|
static ChainableStatement |
ready(JsScope jsScope)
Binds a function to be executed whenever the DOM is ready to be traversed and manipulated.
|
static ChainableStatement |
scroll(JsScope jsScope)
Bind a function to the scroll event of each matched element.
|
static ChainableStatement |
select()
Triggers the select event of each matched element.
|
static ChainableStatement |
select(JsScope jsScope)
Bind a function to the select event of each matched element.
|
static ChainableStatement |
submit()
Triggers the submit event of each matched element.
|
static ChainableStatement |
submit(JsScope jsScope)
Bind a function to the submit event of each matched element.
|
static ChainableStatement |
toggle(JsScope jsScope,
JsScope jsScope2)
Toggle among two function calls every other click.
|
static ChainableStatement |
toggle(JsScope jsScope,
JsScope jsScope2,
JsScope... jsScopes)
Toggle among two or more function calls every other click.
|
static ChainableStatement |
trigger(EventLabel eventLabel)
Trigger an event on every matched element.
|
static ChainableStatement |
trigger(EventLabel eventLabel,
CharSequence... data)
Trigger an event on every matched element.
|
static ChainableStatement |
triggerHandler(EventLabel eventLabel)
Triggers all bound event handlers on an element (for a specific event type)
WITHOUT executing the browser's default actions, bubbling, or live events.
|
static ChainableStatement |
triggerHandler(EventLabel eventLabel,
CharSequence... data)
Triggers all bound event handlers on an element (for a specific event type)
WITHOUT executing the browser's default actions, bubbling, or live events.
|
static ChainableStatement |
unbind(EventLabel eventLabel,
JsScope jsScope)
This does the opposite of bind, it removes bound events from each of the matched elements.
|
static ChainableStatement |
unload(JsScope jsScope)
Bind a function to the unload event of each matched element.
|
public static ChainableStatement bind(EventLabel eventLabel, JsScope jsScope)
eventLabel - EventjsScope - Scope to usepublic static ChainableStatement blur()
public static ChainableStatement blur(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement change()
public static ChainableStatement change(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement click()
public static ChainableStatement click(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement dblclick()
public static ChainableStatement dblclick(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement die(EventLabel eventLabel, JsScope jsScope)
eventLabel - EventjsScope - Scope to usepublic static ChainableStatement error()
public static ChainableStatement error(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement focus()
public static ChainableStatement focus(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement hover(JsScope over, JsScope out)
over - Scope to use on "over"out - Scope to use on "out"public static ChainableStatement keydown()
public static ChainableStatement keydown(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement keypress()
public static ChainableStatement keypress(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement keyup()
public static ChainableStatement keyup(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement live(EventLabel eventLabel, JsScope jsScope)
eventLabel - EventjsScope - Scope to usepublic static ChainableStatement load(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement mousedown(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement mouseenter(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement mouseleave(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement mousemove(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement mouseout(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement mouseover(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement mouseup(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement one(EventLabel eventLabel, JsScope jsScope)
eventLabel - EventjsScope - Scope to usepublic static ChainableStatement ready(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement scroll(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement select()
public static ChainableStatement select(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement submit()
public static ChainableStatement submit(JsScope jsScope)
jsScope - Scope to usepublic static ChainableStatement toggle(JsScope jsScope, JsScope jsScope2)
jsScope - Scope to usejsScope2 - Scope to usepublic static ChainableStatement toggle(JsScope jsScope, JsScope jsScope2, JsScope... jsScopes)
jsScope - Scope to usejsScope2 - Scope to usejsScopes - Additional functionspublic static ChainableStatement trigger(EventLabel eventLabel)
eventLabel - Eventpublic static ChainableStatement trigger(EventLabel eventLabel, CharSequence... data)
eventLabel - Eventdata - Data for the scopepublic static ChainableStatement triggerHandler(EventLabel eventLabel)
eventLabel - Eventpublic static ChainableStatement triggerHandler(EventLabel eventLabel, CharSequence... data)
eventLabel - Eventdata - Data for the scopepublic static ChainableStatement unbind(EventLabel eventLabel, JsScope jsScope)
eventLabel - EventjsScope - Scope to usepublic static ChainableStatement unload(JsScope jsScope)
jsScope - Scope to useCopyright © 2009-2012. All Rights Reserved.