|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odlabs.wiquery.core.javascript.helper.EventsHelper
public abstract class EventsHelper
$Id$
Helper to bind javascript scope and events
Constructor Summary | |
---|---|
EventsHelper()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventsHelper()
Method Detail |
---|
public static ChainableStatement bind(EventLabel eventLabel, JsScope jsScope)
eventLabel
- EventjsScope
- Scope to use
public static ChainableStatement blur()
public static ChainableStatement blur(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement change()
public static ChainableStatement change(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement click()
public static ChainableStatement click(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement dblclick()
public static ChainableStatement dblclick(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement die(EventLabel eventLabel, JsScope jsScope)
eventLabel
- EventjsScope
- Scope to use
public static ChainableStatement error()
public static ChainableStatement error(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement focus()
public static ChainableStatement focus(JsScope jsScope)
jsScope
- Scope to use
public 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 use
public static ChainableStatement keypress()
public static ChainableStatement keypress(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement keyup()
public static ChainableStatement keyup(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement live(EventLabel eventLabel, JsScope jsScope)
eventLabel
- EventjsScope
- Scope to use
public static ChainableStatement load(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement mousedown(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement mouseenter(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement mouseleave(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement mousemove(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement mouseout(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement mouseover(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement mouseup(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement one(EventLabel eventLabel, JsScope jsScope)
eventLabel
- EventjsScope
- Scope to use
public static ChainableStatement ready(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement scroll(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement select()
public static ChainableStatement select(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement submit()
public static ChainableStatement submit(JsScope jsScope)
jsScope
- Scope to use
public static ChainableStatement toggle(JsScope jsScope, JsScope jsScope2)
jsScope
- Scope to usejsScope2
- Scope to use
public static ChainableStatement toggle(JsScope jsScope, JsScope jsScope2, JsScope... jsScopes)
jsScope
- Scope to usejsScope2
- Scope to usejsScopes
- Additional functions
public static ChainableStatement trigger(EventLabel eventLabel)
eventLabel
- Event
public static ChainableStatement trigger(EventLabel eventLabel, CharSequence... data)
eventLabel
- Eventdata
- Data for the scope
public static ChainableStatement triggerHandler(EventLabel eventLabel)
eventLabel
- Event
public static ChainableStatement triggerHandler(EventLabel eventLabel, CharSequence... data)
eventLabel
- Eventdata
- Data for the scope
public static ChainableStatement unbind(EventLabel eventLabel, JsScope jsScope)
eventLabel
- EventjsScope
- Scope to use
public static ChainableStatement unload(JsScope jsScope)
jsScope
- Scope to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |