Class lime.events.Event
Defined in: event.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
lime.events.Event(dispatcher)
Dfkit Event object
|
| Method Attributes | Method Name and Description |
|---|---|
|
clone()
Retunr new event with same parameters
|
|
|
release(opt_type)
Release all swllowed handlers.
|
|
|
startDrag(snapToCenter, box, opt_targetObject)
Start dragging sequence from current event
|
|
|
swallow(type, handler, opt_deny_shared)
Swallow an event.
|
Class Detail
lime.events.Event(dispatcher)
Dfkit Event object
- Parameters:
- {lime.events.EventDispatcher} dispatcher
- Dispatcher.
Method Detail
{lime.events.Event}
clone()
Retunr new event with same parameters
- Returns:
- {lime.events.Event} event.
release(opt_type)
Release all swllowed handlers.
- Parameters:
-
{string|Array.
} opt_type - Event types to release.
{lime.events.Drag}
startDrag(snapToCenter, box, opt_targetObject)
Start dragging sequence from current event
- Parameters:
- {boolean} snapToCenter
- Drag from center or not.
- {goog.math.Box} box
- Limited area where dragging is possible.
- {lime.Node=} opt_targetObject
- Different target object to drag.
- Returns:
- {lime.events.Drag} New Drag object.
swallow(type, handler, opt_deny_shared)
Swallow an event. This means that next event from the same
interaction will be sent directly to handler without any search
- Parameters:
-
{string|Array.
} type - Event types to swallow.
- {function(lime.events.Event)} handler
- Function to call on event.
- {boolean=} opt_deny_shared
- Deny further actions for same event.